Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buffer overflow serial communication: ThorLabs PM100

Status
Not open for further replies.

mqamar

Electrical
Jul 13, 2005
8
hi,
i have been having a buffer overflow problem with my a power meter by Thorlabs PM100. it says that there is some kind of buffer overflow when reading the data from the comm port. I used the NI website for help and tried to reduce the tranfer information using the Instrumentation and Automation program. However, the problem still persists. Also, just for more info. i am using the serial communication example vi from the labview 5.1 . I was wondering if anyone has any kind of solution to this problem. Any links to help get rid of this buffer overflow will be greatly appreciated. OH and the device is being detected, the only problem is that at the very last step when the data is being read, LabVIEW reports a buffer overflow error. THANKS!
 
Replies continue below

Recommended for you

If Labview is overflowing, increase the size of your buffer in Labview. If your instrument buffer is overflowing, increase the communication throughput. (Is GPIB faster than serial?)
 
Hey,
Thanks for ur reply melone, here's something else im adding, so that you are able to see my problem more clearly:

I input a command (ex: *TST?) in labVIEW and run the serial communication VI. The output after a clean run should be '0'. But, it says that there is some kind of buffer overflow. My bytes to read is set to 4. I change this to many different numbers, and i still get the same error. Now, if i change this byte read number to 0, the simulation runs fine, with no error. What does this mean???!

Also, do my labVIEW "baud rate" and device "baud rate" have to be the same? i am new to labVIEW altogether, so i dont even know what baud rate is.

My other guess was that the buffer/register of my device (power meter) might have information in it already, so i tried to clear it by the clear commands using the device's manual, that didnt do anything either.

Also, does it make a difference if the termintion character is ON or OFF under the subVI of "VISA Serial" ? i mean, either way, i get the same buffer overflow error.

Anyway, this is all the stuff i have done and make gotten the same error. After reading this, do you have any other suggestion? i am kinda stumped at this point. Do you think that i shouldnt be even using that example serial comm.VI. Any kind of suggestion that might give me any insight will be greatly appreciated. THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor