09-02-2009 08:08 PM
09-02-2009 09:21 PM
I want to get the reading as soon as it scans.. so i set the trigger such tht it scans once and wait for instrument to finish scan and then read it... i want to repeat this...so i used a for loop...each time the reading goes into a 1d array and i did necessary action on the readings in the 1d array.
09-02-2009 09:22 PM
09-02-2009 09:51 PM
09-03-2009 11:40 AM
Waiting for the OPC bit to be set is a standard way to do it, but there is an alternative that uses less code and is also standard. That is, using the *OPC? query appended to your command. Instead of having to loop to read the OPC bit, it simply waits until anything (usually a "1") is sent to the read buffer. As far as I know, any equipment that can do the OPC bit set can do the *OPC? query as well.
Here is a picture and a VI with connected terminals.
Bill