01-28-2009 02:17 PM
I am attempting to sample both current and voltage from 2 different Agilent E3644A power supplies using the same VI, and then write the data to a file. Using the either the basic serial VIs or the instrument input/output assistant I can take the measurements and create a file. However, the maximum sampling rate I am able to achieve doign this is about 4-5 Hz. Idealy I would like to take the measurements at a rate of 20Hz. The VI that i wrote simply sets up the serial port, then in a loop queries the devices, reads the responses, and then writes the data to a file.
Is there a better method for getting data over an RS-232 connection? Also, if I used the device driverrs to control the power supply, would that speed up the data aquisition process? Or does it sound like it is an issue with the device instead of the VI?
01-28-2009 04:04 PM
I'm assuming you don't have the serial port configuration in the loop or the file write. Based on what you're saying it does not appear to be. What baud rate are you running at? I'm not sure what you mean by a "better method for getting data over an RS-232 connection". There really is only one method. As for using the device drivers, they basically save you the trouble of figuring out what commands to send and how to perform the communication.
If you post your VI a better analysis can be done.