Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send a binary output from ni daq 6009

I am trying to get a binary output from ni daq 6009 to make the selections of a multiplexer.

I am trying to make the selection directly from the labview program.

 

Please help me in getting this binary output from ni daq 6009 to do the selection

 

0 Kudos
Message 1 of 13
(6,601 Views)

Have you looked at any of the DAQmx digital output examples?

0 Kudos
Message 2 of 13
(6,598 Views)

yes i went through many examples.

I have implemented few aswell, but not able to get the binary output from the pins selected.

Can you please provide me some links where i can look into the examples for such kind of outputs.

0 Kudos
Message 3 of 13
(6,595 Views)

You need to show us what you have tried.  Tell us what you want it to do (with specific examples showing the binary input and the levels to which the pins should be driven).  Tell us exactly what does not work with what you have tried.

 

"not able to get binary output.." just does not tell us enough to help you.

 

Lynn

0 Kudos
Message 4 of 13
(6,587 Views)

Hi, here is my attachment code.

 

I want a specific binary output from the ni daq 6009, when a selection in enum is done.

I know i am missing a very simple and silly thing over here, but not able to figure it out.

 

I have selected 4 pins in the digital port output during the configuration of the daq.

i want the daq to send 0001, 0010, 0011 and so on from the pins when a selection is done in the enum.

0 Kudos
Message 5 of 13
(6,576 Views)

Try something like this. 

 

I'm not a fan of daq-assistant express vi's... use the primitives.  Create the task outside the main structure, pass that task inside the loop and do a write where needed.  Close the task after the main loop.  This improves speed and labview performance.

 

Download All
0 Kudos
Message 6 of 13
(6,572 Views)

The problem with both of these examples is that the conversion of the enum to a Boolean array will create an array with 8 elements and that will cause an error since there are not 8 channels defined. Here is a simpler way and it uses the enum directly. You could also change the write type to U32 to support up to 32 digital lines.

 

0 Kudos
Message 7 of 13
(6,554 Views)

you should also add a couple more bits to control the "ENABLE" on the ic....

Message 8 of 13
(6,542 Views)

Thank you so much

0 Kudos
Message 9 of 13
(6,533 Views)

Okay so whats an efficient way to re-work this so you can send binary data to a SERIAL->PARALELL shift register? I have one serial data line and 2 clock lines (LATCH and SHIFT). How can I tell the DAQ to clock/pulse on one DIO while sending 1's and 0's on the data line?

0 Kudos
Message 10 of 13
(6,160 Views)