Discussion:
4-bit binary number for Digital Output using only 4 Channels of DAQ
(too old to reply)
Fab2603
2007-10-11 20:10:09 UTC
Permalink
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
Dennis Knutson
2007-10-11 21:10:10 UTC
Permalink
You can use the Array Subset function on the output of the Number to Boolean Array.
<img src="Loading Image..."> Message Edited by Dennis Knutson on 10-11-2007 02:43 PM


Array Subset.PNG:
http://forums.ni.com/attachments/ni/70/7580/1/Array Subset.PNG

Loading...