Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-ENET/100 Maximum readings per second

hi Dennis,

I tried to use Visa write and read, but the reading speed is even slower than using I/O instrument. I am sure i have set the two devices to the fastest responding time possible. I hope you can point out where i did wrong.

Sorry i had trouble saving it to 7.1:

0 Kudos
Message 11 of 15
(1,568 Views)
It looks like a big part of your loop is saving the data to a spreadsheet file with each iteration. This can be pretty time consuming. Try taking out the file write and see what kind of speed you can obtain. If you are going to run for a fairly limited time, you can accumulate the readings into a a shift register and then do a single write when the program completes.
0 Kudos
Message 12 of 15
(1,560 Views)
I took out the writing to spreadsheet but it still runs slowly.
I tried to find which part slows me down and it seems like the VISA read can't give me the data fast enough.
Do you have any suggestions? Maybe i need to use advanced Visa functions?
 
thanks.
0 Kudos
Message 13 of 15
(1,559 Views)
The other part in the code that might be causing a problem is the Insert Into Array and Build Array that you do every time. Also, You might need a faster instrument. The max data transfer rate for standard GPIB is 1Mbyte/sec but few older instruments came close to this. Your 900Kb/sec for two instruments works out to 450Kb/sec each and that kind of speed was not untypical at the time your instrument was made. If you strip everything down to nothing but the VISA Write and VISA Read with every iteration (no build arrays, no graphs, file write, etc.) and it's still not fast enough, then my guess you've simply run into a limitiation of the instrument itself.
Message 14 of 15
(1,545 Views)
I see, thank you for your explanations.
0 Kudos
Message 15 of 15
(1,520 Views)