LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming DAQ relay

Hi,
 
I am a LabView newbie.  I am trying to set up a data acquisition for some of the instrumentation in the lab.  One of my tasks is to use a relay to turn on a switch that operates a pump.  I have purchased the 9481 module and was able to trigger the 0/1 in the MAX task (Generate Signals - > Digital output -> Port output).  I have set up two tasks, one for on (1) and the other for off(0).  However, I was not able to trigger the relay by linking a task constant to DAQmx Start function.  Do you have any suggestion?  Thanks in advance!
 
wkc
0 Kudos
Message 1 of 4
(2,639 Views)

Hi wkc,

you need only one task. Did you already see the shipped DAQmx examples?

Mike

0 Kudos
Message 2 of 4
(2,618 Views)
Hi wkc,

To access the shipped examples, launch the NI Example Finder by going to Help»Find Examples.  Browse to Hardware Input and Output»DAQmx»Digital Generation.  You can also indicate which examples will work with the NI 9481.  Take a look at the attached image.
Rod T.
0 Kudos
Message 3 of 4
(2,590 Views)

Thanks for the link.  I have figured the problem out.  Attached is the screenshot of my vi.

 

wkc

0 Kudos
Message 4 of 4
(2,567 Views)