01-08-2013 03:59 AM
Hello,
I am using an Agilent N3300A connected via Serial -> USB to a PC running LabVIEW 2012.
During my tests, I found that the time required to retrieve the data from is very long. With the example below, provided with the drivers, I measured that each of the 3 subVIs that read the instantaneous measures takes about 11.7 s to complete.
As a consequence, this example VI does not work out of the box, I need to increase the Maximum Time constant and to wire it also to the two following subVIs. Otherwise, a timeout happen, the device become unresponsive and needs a restart to be controlable again by the PC (haven't found another, more elegant way to get control).
Is it possible to speed up the process of retreiving the data? And as a bonus question, how to remotely control again the instrument after a timeout occures?
Thank you for your time
Solved! Go to Solution.
01-08-2013 07:09 AM
How much data are you getting with each read? What is the baud rate? It is very likely it is purely due to the fact that serial ports are pretty darn slow.
01-08-2013 07:27 AM - edited 01-08-2013 07:27 AM
Instead of blindly connecting subVIs together, perhaps you should understand actually what you are asking the instrument to do.
Instantaneous measurements and yet 1000 measurement points?
01-08-2013 07:27 AM
01-08-2013 07:37 AM
01-08-2013 08:02 AM
What is the data format? Instruments can usually transfer using ASCII or binary. Binary would be more efficient.
GPIB would perform a lot faster (can approach 1MB/s). At 9600 baud, you are running at 1200B/s, not including the start and stop bits.
Assuming binary format at 4bytes/data point, your serial communications should be taking around 3.3 seconds. Assuming ASCII with 12 bytes/data point (pure guessing here), that's 10 seconds. So 11 seconds for a transfer is not out of the question.
01-08-2013 08:19 AM