LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Binary using DAQmx

Hi all,
 
I am trying to create a program so that I can enter a number and a given step size and have labview send the digital output to an instrument using DAQmx.  I am working with a machine that reads 15 bit binary (bit 0 - bit 14).  I am able to make the desired binary number with the given step size, the problem I am having is that I am not too familiar with DAQmx and don't know how I should go about sending the corresponding 0 or 1 signal voltage from the correct element of the binary number.  For example if my binary is 100111001110001 i want to send the first pin on my instrument that signal (+5v) and the second pin (0v) and so on.  Should i be making my binary into an array or a string format?  Any input would greatly help out.
 
Thanks 
0 Kudos
Message 1 of 2
(2,506 Views)
You should take a look at the shipping example called Write Dig Port. This example sends a U32 number to DAQmx Write. The data to write in the example is displayed as hex but that doesn't make a difference. You don't have to do any conversion. Port0/line0 is the least significant bit, port0/line1 is the next, etc.
0 Kudos
Message 2 of 2
(2,502 Views)