LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending digital output

HI, I have just started using labview.

I want to send [0,0] [0,1] [1,0] and [1,1] thorugh two digital output lines, 1 and 2 respectively generated through loop number 0 to 3. The image is attached.
i have tried using diffrent things but no success. Please guide

 

0 Kudos
Message 1 of 5
(3,237 Views)

Hi,

 

There are several examples for writing to a digital port and to digital line.  I hope this helps.  You will need to modify the write for multiple channels.  But it is currently set to 1 channel and that should help you get started.

 

Let me know if that helps.

Example for writing to digital Port

https://forums.ni.com/t5/NI-DAQmx-Examples/DAQmx-Write-Digital-Port/td-p/3501596

 

Example writing to digital Line

http://www.ni.com/example/30006/en/ 

 

 

 



-Matt
0 Kudos
Message 2 of 5
(3,214 Views)

HI Matt, 

Thanks for the reply. 
Although I am trying to understand what u have send, but lt is even more difficult to convert it and link with my VI 😞 Isnt there any simple block that converts boolean array to number to a from that can be sent to output?

0 Kudos
Message 3 of 5
(3,191 Views)

On the digital output for line do this.click  On the bottom of the digital write and select digital output/multiple channels/multiple samples. Then create a control for the input to that block ad you can send a 2d array of Boolean. Then simply input the output you want into the Boolean control and select the channels you'd like to output to



-Matt
0 Kudos
Message 4 of 5
(3,184 Views)

Alright. Thanks!

0 Kudos
Message 5 of 5
(3,180 Views)