06-20-2012 03:18 PM
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
06-20-2012 05:02 PM
Have you looked at any of the DAQmx digital output examples?
06-20-2012 05:58 PM
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.
06-21-2012 08:31 AM
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
06-21-2012 02:01 PM
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.
06-21-2012 02:20 PM - edited 06-21-2012 02:20 PM
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.
06-22-2012 11:13 AM - edited 06-22-2012 11:15 AM
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.
06-22-2012 05:30 PM
you should also add a couple more bits to control the "ENABLE" on the ic....
06-22-2012 06:01 PM
Thank you so much
04-10-2013 07:31 PM
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?