Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6259 Labview 8.2: how to create DC 5V

Hi,

I'd like to create a constant analog DC +5V voltage to provide for my external circuit from USB 6259 (with Labview 8.2)
I have searched and followed some of the advices and able to create such kind of signal (use the circuit below)

-Link: DC +5V Circuit

However, when I viewed the analog output with oscilloscope, it showed a kind of sawtooth waveform (not straight line as I expected)
In addition, when I used multi-meter [in DC V mode] to measure the ouput voltage (direct from DAQ), what I've got was just about +4V.
Please advice me for how to create 5V analog voltage.

Thank you and have a nice day,

Rgds,
Hai Linh

0 Kudos
Message 1 of 12
(8,131 Views)
Just perform a single point Update.
That should do
 
Look at'Gen Voltage Update.vi, in examples shipped with LabVIEW
 
Find Examples>>Hardware input and output>>DAQmx>>Analog Generation>>Voltage Folder will have this example vi
 
0 Kudos
Message 2 of 12
(8,128 Views)
Thank devchander for your advice,

I have tried that example, with the output voltage set to +5V - however what I get is a kind of square wave form with DC -measure of about +4V Smiley Indifferent
0 Kudos
Message 3 of 12
(8,111 Views)
Have you verified that your measuring between the correct AO channel and AO Gnd points??
0 Kudos
Message 4 of 12
(8,101 Views)

Another good troubleshooting step would be to use the test panels in Measurement & Automation Explorer (MAX). Open a test panel for your USB 6259 and use the Analog Output tab to generate a DC voltage.

Jared T.
0 Kudos
Message 5 of 12
(8,088 Views)
Hi devchander, I checked the measure points, mine is from AO2 - so for USB 6259 it's equivalent to pin 47 and 48.

0 Kudos
Message 6 of 12
(8,067 Views)
Hi Thomas, I have looked into the MAX but found a difficulty in follow your guide. I'm sorry, I'm quite new with LabView so maybe I don't understand your point clear enough, could u guide me in more detail? Thanks 🙂
0 Kudos
Message 7 of 12
(8,066 Views)
Hi Thomas, I was able to follow the guide and generate DC signal but the result was the same 😞
0 Kudos
Message 8 of 12
(8,064 Views)

Hi TrH_Linh,

It is beginning to sound like your board may need to be sent in for repair.  Before going through that process, let’s try doing a loopback test.  The loopback test makes use of your board’s internal channels and so no external wiring will be necessary.  Go ahead and disconnect any wires or other connections you have made prior to starting the test, and also close any NI software programs that you may have open.

Directions for Loopback Test:

Purpose:  Read an analog output signal on an analog input channel using internal connections.

  1. Open Measurement & Automation Explorer (MAX) and find the entry for your device.  It can be located by looking under My System >> Devices and Interfaces >> NI-DAQmx Devices >> NI USB-6259.  Right-Click on the entry for the NI USB-6259 and select Test Panels.
  2. In the Test Panel, go to the Analog Output tab and choose the following settings:
    1. Channel Name - Dev1/ao0     (your device number maybe different)
    1. Mode - DC Value
    1. Output Value - 5
  3. Click "Update" to begin outputting a DC voltage at 5 volts
  4. Open LabVIEW 8.2.  Go to Help >> Find Examples.  In the Example Finder, use the folders on the right hand side to find the following example:  Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage >> Acq&Graph Voltage-Int Clk.vi
  5. On the front panel of the Acq&Graph Voltage-Int Clk VI right-click on the drop down box for “Physical Channel” and select “I/O Name Filtering…” 
  6. In the Filter Names dialog box, check the box next to “Internal Channels” and then click ok.
  7. In the drop down box for “Physical Channel” select “Dev1/_ao0_vs_aognd” (Again, your device number maybe different).  Selecting Dev1/_ao0_vs_aognd will allow us to make an internal connection to the analog output channel.
  8. Run the VI.

 


In the graph on the front panel of the Acq&Graph Voltage-Int Clk VI you should now see a reading of 5 volts.  If you can read 5 volts, you might try a sine wave by going back to the Test Panel and changing the mode to “Sinewave Generation.”

If you cannot get a reading of 5 volts, then most likely your board needs to be sent in for repair.  Please go to http://www.ni.com/support/ and click “Ask an Engineer” to generate a service request and get the repair process started.

Jared T.
Message 9 of 12
(8,045 Views)
Hi Thomas,
Tks for the guide, and sorry for the late reply. I have conducted a loopback test and get the graph as follow:
http://edventure.ntu.edu.sg/bbcswebdav/users/tr0001nh/Vol-gen-ques-loopsback-test.JPG
This result is also the same as I got from previous experiments. So, now I need to send the DAQ for repair?
0 Kudos
Message 10 of 12
(7,961 Views)