NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
ksck20
Posts: 4
0 Kudos

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

 

Active Participant
SnowMule
Posts: 687
0 Kudos

Re: how to send a binary output from ni daq 6009

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

Member
ksck20
Posts: 4
0 Kudos

Re: how to send a binary output from ni daq 6009

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.

Proven Zealot
johnsold
Posts: 7,708
0 Kudos

Re: how to send a binary output from ni daq 6009

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

Member
ksck20
Posts: 4
0 Kudos

Re: how to send a binary output from ni daq 6009

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.

Active Participant
SnowMule
Posts: 687
0 Kudos

Re: how to send a binary output from ni daq 6009

[ Edited ]

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.

 

Knight of NI
Dennis_Knutson
Posts: 29,306
0 Kudos

Re: how to send a binary output from ni daq 6009

[ Edited ]

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.

 

Active Participant
apok
Posts: 600

Re: how to send a binary output from ni daq 6009

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

Member
ksck20
Posts: 4
0 Kudos

Re: how to send a binary output from ni daq 6009

Thank you so much

Member
camow7
Posts: 2
0 Kudos

Re: how to send a binary output from ni daq 6009

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?

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page