Discussion:
read the state of the output pins of the USB 6501
(too old to reply)
stefan.henke
2007-04-19 08:40:13 UTC
Permalink
Hi Baptiste,
 
first i would recommend to use DAQmx instead of DAQmx Base. It will be easier to program that way.
2nd I would like to ask, what to you meanwith checking the current state? Do you want to use one line as a output and measure this signal parallel on a second line as a input?
 
Regards,
Stefan Henke
NIG
stefan.henke
2007-04-19 13:40:20 UTC
Permalink
Hi,
 
I think, I know what you want to do, but not really why.
If you write a High to a digital Line, than you have this Information in your Program. You can use this Information again later if you save it in a Flag.
If it is important to know, what state the Line physically has, I would read this information back by another Inputline.
 
I dont know of a Property which gives back the current state. But you could attach the 2 VIs, which are realizing this functions and I could take a look on how they do it.
 
Regards,
Stefan Henke
NIG
stefan.henke
2007-04-20 09:40:12 UTC
Permalink
Hi Baptist,
 
the best way to read the status back is to perform a DAQmx Read or a DAQmx Base Digital read (U32) on the DAQ Task for your Device, without starting the Task with DAQmx Start Task.VI before. The Read VI gives the current status of the DO of the device back.
 
 
Hope this is what you wanted to do?
 
Regards,
Stefan Henke
NIG

Continue reading on narkive:
Loading...