Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean to single boolean array

I am using DAQmx to send digital output for a line (not a port).  The input requires a boolean array of one element.

 

I want to use a T/F boolean from an On/Off button as inpuit to the DAQmx digital out.

 

How does one get a Boolean to a 1-D, single member, boolean array?  (I can make an 8 or 16-member array, but the DAQmx does not take it)

 

My version is 8.6.

 

This seems like a very common thing to do and I'm just not getting it.

 

Thanks you,

MRMDry

0 Kudos
Message 1 of 2
(3,206 Views)
First, if you want to use a single Boolean, then the DAQmx Write Digital>Single Channel>Single Sample>Boolean will allow you to wire a Boolean directly and you do not need an array. Second, if you don't want to change the DAQmx Write, then just wire the Boolean to the Build Array function.
0 Kudos
Message 2 of 2
(3,196 Views)