From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Bad drift with USB-6259 and PCI-6259 DAQ devices

Solved!
Go to solution

We have both, a USB-6259 and PCI-6259 installed on a single computer, tied to an SBC-68, along with Matlab and the Data Acquisiution toolbox.

 

For basic testing purposes, I have written a script that outputs a basic sine wave from Matlab, to a single DAC output.  I have wired this single DAC output to two channels of the ADC input.  For every DAC output sample, the script also takes one ADC input sample on each channel. 

 

--> Ideally, if everything is working correctly, after running the script, I should see two ADC input vector channels.  Plotting each channel should give me a nice sine wave in Matlab.

 

--> When I actually plot the data, here's what I get (see attachment).

 

--> I have looked at the DAC output with an oscilloscope, and the DC offset is very close to 0 (this tells me that the DAC output part is working fine).

 

Why is there this negative DC drift on the two inputs?

Download All
0 Kudos
Message 1 of 6
(3,142 Views)

You need to provide some critical information such as what pins (input and output) you have wired up and the configuration (RSE, Diff) that you are using. It seems the configuration does not match the wiring. If you are acquiring two channels, why does only one appear in your plot?

0 Kudos
Message 2 of 6
(3,118 Views)

Sorry about my explanation!

 

--> I am using AI0 (pin 68 on SBC-80) and AI1 (pin 33) as my ADC channels, and AO0 (pin 22) as my DAC channel.  I have tied AI-GND (pin 67) and AO-GND (pin 22) together with the oscilloscope probe ground, as a common ground point. 

 

 

If you look very closely at the two plots (one is for the USB-6259, the other is for the PCI-6259), there are actually two plots that are overlapping (as expected).  This is good - in a sense - because it shows that both ADC channels are tracking each other very closely, BUT both ADC channels suffer from the same drift problem.  It leads me to believe that it could be an internal hardware problem with the computer?

0 Kudos
Message 3 of 6
(3,110 Views)

You only answered half of my questions.Cat Frustrated You did not mention how you have the analog in configured. Explicitly set it for RSE and see if that makes a difference.

0 Kudos
Message 4 of 6
(3,099 Views)
Solution
Accepted by topic author rt54321

Forgive my lack of knowledge - I know the difference between the DIFF and RSE connections, but I'm not sure where the "setting" for DIFF/RSE is (is it a button/toggle switch on the USB-6259?  Is it a software command in the code?)

0 Kudos
Message 5 of 6
(3,089 Views)

It's a software command. I don't use matlab but it should be part of the Create Analog Channel function.

0 Kudos
Message 6 of 6
(3,079 Views)