Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

4-bit binary number for Digital Output using only 4 Channels of DAQ

Hi I am very new in Labview.
 
My problem is that I am using an index array to produce a boolean array with 4 Elements. But I don't know how to use only 4bit, because there is only a 8-bit Integer Representation. This results in the fact, that I have to use 8 channels of my NI 9477. But I only want to use 4 Channels.
 
Array Constant ([10]/[2]/[6]/[4]/[5]/[1]/[9]/[8]) ------------------- Index Array -------------------  Number To Boolean Array ------------------ NI DAQ Assistant (4 Channels)
 
 
Error message is always number of channels does not match number of Tasks.
 
How can I solve the problem....
 
Thanks
0 Kudos
Message 1 of 3
(3,249 Views)

You can use the Array Subset function on the output of the Number to Boolean Array.

Message Edited by Dennis Knutson on 10-11-2007 02:43 PM

Message 2 of 3
(3,249 Views)
That was a very quick answer and exactly what  I needed
 
Thank you very much
0 Kudos
Message 3 of 3
(3,241 Views)