Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

generating and displaying digital output using USB 6008

Hallo all,

 

I am new to LabVIEW 🙂

I m having LabVIEW 2010 and LabVIEW SignalExpress für DAQ (in German) on my computer.

I would like to create a digital output of 2.1V voltage using USB 6008. What I have done so far is that I have added "DAQ Assistant" on Block Diagram and I have selected 2 digital output

 

What I want is to have the value of the digital out shown on a number indicator. Secondly I would like to fix the digital out to 2.1 Volt. How can it be done?

 

Any suggestion is appreciated

0 Kudos
Message 1 of 6
(4,479 Views)

Digital is either 0 (closer to 0.3v) for a low or 5v for a high.  

 

If you want something else, either use the analog outputs or do some signal conditioning after the DIO ports.

0 Kudos
Message 2 of 6
(4,473 Views)

Unfortunately digital output is my only option. It would be great if you could show me what function do i need (i.e. from the palette) that i need to do the conditioning. All I want is to limit it to 2.1 V

 

And how do I display (or rather, check) the output value on LabVIEW VI itself?

0 Kudos
Message 3 of 6
(4,462 Views)

Labview does not have any functions that will change the output voltage of the USB-6008.  You will need to add an additional circuit to do this.  The digital output of the USB-6008 has a pull-up resistor (4.7K) to 5V.  A simple voltage divider should work.  You may want to add a voltage follower to minimize the effects of the circuitry after the divider on the output voltage.  See attached circuit for reference.

 

 

0 Kudos
Message 4 of 6
(4,458 Views)

Thanks for the suggestion.

And what abut displaying the digital output? i tried to wire it to a numerical display on labVIEW but it did not work.

 

And I would like to ask for some explanation in reference to the screenshot below. What are all the circles for the binary value for? I can switch on or off the circle but i dont understand the effect of it. Is it controlling the digital output? If so i would like to know how to show the current output value

 

scrshot_1.png

0 Kudos
Message 5 of 6
(4,449 Views)

You seem to have some basic misunderstanding about digital logic. An output is either a 0/1  or True/False. This is indicated normally with a Boolean indicator. A digital control like you show, is set with Booleans - True/False for each line.

0 Kudos
Message 6 of 6
(4,443 Views)