LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn on/off a device (120VAC/1.2A) using NI 9481 module with labview?

Hi,

I am so beginner. And would like to perform the above task, can I do such action using the above mentioned module for this application?  If yes the why when I tried to use a Daq assistant and a Boolean toggle switch, I could not connect the Bolean to any of the wiring points on the Daq assist?

 

Please help,

thanks

0 Kudos
Message 1 of 4
(3,036 Views)

You'll have to show us your VI.

 

My guess is that the DAQ assistant wasn't configured properly for a single point digital output.  What did the error message say when you tried to connect it?

0 Kudos
Message 2 of 4
(3,034 Views)

here is the code, you are probably right, the error says the two terminals you are trying to connect do not match, Boolean is a false/tru 1D, while Data is an array. I totally agree but where ele I can connect my switch to give the command on or off. (0,1)?

0 Kudos
Message 3 of 4
(3,028 Views)

Try putting in a Build Array on that wire so that it takes the scalar value and builds it into a 1 element 1-D array.

0 Kudos
Message 4 of 4
(3,026 Views)