Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

12Bit Binary Output separated

Hi!

I'm new to Labview. I know just the basics.

I'm having a problem (maybe its a simple question). I have a NI PCI-6601 board and i want to output 12 bits to a DAC. I want to have 0 to 3.3V in the DAC output so in Labview, I select wich voltage I want.

My ideia was to do this:

3.3V corresponds to 4095 divisions, so  xV corresponds to y. Then, i represent that y in binary and i would send the bits individually to the dac.

But I cant do this, i tried everything.

Can someone help me?

Sorry for my english.

Thanks
0 Kudos
Message 1 of 6
(3,660 Views)

Try this. It will output a Boolean array that you can wire to a DAQmx write.

Message Edited by Dennis Knutson on 05-08-2006 03:55 PM

0 Kudos
Message 2 of 6
(3,655 Views)
Thanks!!!!

It's that! It works perfectly.

Thank you Smiley Wink
0 Kudos
Message 3 of 6
(3,644 Views)
Hi again!

That helped a lot but i now have another problem. The thing is that i just want to send 12 bits and in labview I use the "To Word Integer" that is 16bit. What happens is that when i put 0V in Labview i have 3.3v in the dac output and when i put 0V i have 0V in the dac. But, for example, when i put 1.15V in labview i get 2,60V in the dac, instead of the 1.15V.

I think its something related with the 12-16 bits problems, but i cant get it.

Any clues?

Thanks in advance
0 Kudos
Message 4 of 6
(3,632 Views)
Sounds like you might have the bits backward. The output for 2.6 is the complement of the output for 1.15. Is the Boolean array driving the digital outputs of the DAQ board? When you look at the Boolean array, the LSB is the first element or the one on the left. If you are driving the digital outputs, what is your channel list and how do you have each channel connected to the dac?
0 Kudos
Message 5 of 6
(3,630 Views)
Hi Dennis. You're right. I don't know why but i made the connections the wrong way.

Thanks
0 Kudos
Message 6 of 6
(3,626 Views)