Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW producing wrong sampling rate of sinewave

Hi,

I am using USB-6211 for checking if this DAQ device produces some scaling and/or offset. To check this, I am providing a 1KHz sine wave with 5Vpp and no offset. When I check using the attached vi (please refer to image) I am getting a sine wave with only 1.5V to -1.5V instead of 2.5V to -2.5V with a little bit of offset. Can someone help me why I am unable to see the full signal? And how this scaling and offset is set? So I can add/subtract the offset and multiply/divide the scaling factor to get a proper signal? Thanks.   

Capture.PNG

0 Kudos
Message 1 of 4
(1,164 Views)

The problem with pictures of code containing express VIs and dynamic data is that we cannot tell at all how things are configured. How is everything configured, connected, and terminated. Looks like you are sampling at a few kHz. Did you verify that the signal is accurate (e.g. using an oscilloscope). Does things look better using the test panels?

 

And why do you say in the subject that the sampling rate is wrong (x-axis)? While in the body you say the voltage is wrong (Y-axis). Which is it?

0 Kudos
Message 2 of 4
(1,145 Views)

Along with the DAQ settings, we also need to know exactly how you have the source attached.

 

My guess is you are wired for a Reference Single Ended but configured the DAQ to use a Differential (the default) setup.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(1,130 Views)

Hi,

Thank you for your replies and my bad, I forgot to give the details. For the signal, I am using a waveform generator and I checked the signal on oscilloscope before providing to the DAQ device. I have connected +ive of the probe to pin 17 (input) and connected -ive of the probe to pin 28 (ground) to provide a  common ground. I am sampling at 5KHz (5 times the actual signal freq. which is 1 KHz) and my inputs are from -2.5V to 2.5V and RSE configuration.

@altenbach, what do you mean by test panels?

0 Kudos
Message 4 of 4
(1,127 Views)