Discussion:
Programming DAQ relay
(too old to reply)
wkc3348
2008-08-12 17:40:07 UTC
Permalink
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
MikeS81
2008-08-13 10:10:05 UTC
Permalink
Hi wkc,you need only one task. Did you already see the shipped DAQmx examples?Mike
RT4CY
2008-08-14 21:40:10 UTC
Permalink
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.


9481_examples.jpg:
Loading Image...
wkc3348
2008-08-15 16:10:08 UTC
Permalink
Thanks for the link.  I have figured the problem out.  Attached is the screenshot of my vi. wkc


relay_pump.JPG:
Loading Image...
Continue reading on narkive:
Search results for 'Programming DAQ relay' (Questions and Answers)
3
replies
Serial Port Interfacing?
started 2014-01-18 04:57:52 UTC
engineering
Loading...