LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read timeout error at high sampling rate

I use VISA Write to send the command "FAST2" to an SR830 lock-in amplifier, which then send data to a GPIB-USB-HS cable connecting to the computer. I use a loop to performing VISA Read again and again to receive data from the cable. Each time 4 bytes data are received.

 

The program performs well if the sampling rate of SR830 is set to 256Hz. However, when using 512Hz, I got "error -1073807339: VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

 

Any comments will be appreciated.

 

ViSnap.jpg

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

The 4 bytes you are looking for did not arrive at your port before it timed out passed.

 

You are reading faster than the stuff is getting to the com port

  • Check for bytes at port before reading.
  • Set the time out longer

 

 

Omar
0 Kudos
Message 2 of 4
(2,983 Views)

Have  you solved the problem? I meet the same problem now.

 

WT

LV2013

0 Kudos
Message 3 of 4
(2,613 Views)

Dear Weitong,

 

This thread is 7 years old and has only two previous posts - you might receive better help by creating a new thread of your own. When you do so, please describe the problem you're having and upload your VI so that we can take a look at what you're doing.

 

 


GCentral
0 Kudos
Message 4 of 4
(2,608 Views)