Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read Byte Count

Hello all,

I have written Tektronix sub VI that acquires 2500 data points from Tektronix TDS210 Oscilloscope using serial communication. I set enough timeout (20sec) and buffer size (more than 4K) and VISA Read reads all the required data points successfully. I can also write the 2500 data points to file successfully using Write Characters to File.VI. I used For loop to convert Binary to string before saving to file.

However, when I put the above sub VI under another bigger VI (that reads and writes field point, load box, and other instruments) the Tektronix Sub VI does either of the following strange things:
1) VISA Read reads about 700 byte count instead of 2500, or sometimes
2) VISA Read reads 2500 but Write Character to File.VI
does write only 700 or less data points to the file.

Can any one help me in sorting out this problem please.
Thanks in advance
Nur
0 Kudos
Message 1 of 2
(3,440 Views)
Hi,

I can't understand what the VI is doing. Are you using VISa directly to talk to the instrument? or are you using the instrument driver?.

If you can, post a simple example that reproduces the problem.

DiegoF
National Instruments.
0 Kudos
Message 2 of 2
(3,440 Views)