11-14-2006 03:36 PM
11-14-2006 04:10 PM
11-16-2006 09:20 AM
11-17-2006 10:30 AM
11-17-2006 02:01 PM
11-17-2006 02:09 PM - edited 11-17-2006 02:09 PM
Do NOT send write commands at the same time. You have to do things sequentially. Doing these in parallel is just the opposite of what I said to do and is the cause of your error. Your VI should look something like the picture below. You have to use the error in/out connections to enforce dataflow and since LabVIEW is a dataflow language, this is basic to understanding how it works and how to write programs that work.
Message Edited by Dennis Knutson on 11-17-2006 01:10 PM
11-28-2006 10:52 AM
11-28-2006 11:33 AM
That error is "Timeout expired before operation completed" and is quite a bit different than I/O Operation Aborted. In most cases, with a GPIB instrument, you get this error during a read when the instrument has no data as a result from a measurement. The buffer is empty so the VISA Read times out when attempting to do the transfer. Why the instrument has no data could be the result of a couple different things. In hardware triggered measurements, the trigger condition might not be present. It could also be possible that you are requesting data too fast for the instrument to acquire it. You might want to put a delay in the while loop to see whether that fixes the problem.
You haven't mentioned the make and model of the instrument you are using. That type of information is helpful. Someone on the forum may have experience with it and could provide additional help. Have you searched http://www.ni.com/devzone/idnet/default.htm to see if there is a driver already written for your instrument?
11-28-2006 12:31 PM
I am using a UDT Instruments S380 Dual Channel Optometer. I believe I found the reason for the error. I was sending "F1AG" as the write command, which asks for data from channel 1, sets the autorange, and go. I changed it to simply "F1".