Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

can not read correct data and enough data from the controlled instrument by rs232?

I am trying to read data from a light monitor via rs232. By the executive program attached by product, we can get correct data and enough data(2424 bytes every time), but by the labview program, we can only get 224 bytes or 194 bytes every time, and the data seems incorrect.  the program is that, fist configure the port(data bits:8,BR:115200,stop bits:2.0,parity:none) by VISA configure serial port.vi, then send a command by VISA write.vi, then have a loop including bytes at port.vi and VISA read.vi, finally a VISA close.vi. it seems the program works well, but data were read is incorrect and not enough, I wonder if the data needed to read are larger than the serial buffer or reading a large scale data can not be execute properly by the above serial sub vi?

帖子被ybz在06-20-2006 04:09 AM时编辑过了

0 Kudos
Message 1 of 4
(3,227 Views)

Hi,

If your data is not only ASCII remember to disable the termination character (VISA conf. ser. port)

0 Kudos
Message 2 of 4
(3,221 Views)
Thank for your reply, I try to disable the termination character, but no any hepl. are there any other set for large scale data transfer?
 
The following attachment is a serial open vi by the product provider, but it always has error 37. I did not understand this program and the open device sub vi, an important sub vi. can you explain for me?
0 Kudos
Message 3 of 4
(3,198 Views)
Can you have a look here   Your VI is somewhat dated. There is no time between sending and receiving data.
 
0 Kudos
Message 4 of 4
(3,193 Views)