LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D U16 vs 1D Wfm in Nchnl Nsamp

Solved!
Go to solution

Hi,

 I was trying to do a multiple channel data acquisition job using PCI 6229 with BNC 2090A board. After creating the virtual channel and starting the DAQ task when I acquire the signal I am getting a strange behavior. I am giving an input square wave of 1volt and zero volt.

 

 When I use the 2D U16 Nchnl Nsamp : I am getting spikes of constant magnitude for the zero volt portion, where are it reads the 1 volt portion correctly.

 

Where as when I use the 1D Wfm Nchnl Nsamp: I get approximately the signal that is input to the system with a square wave behavior and appropriate voltage range.

 

Please suggest as to what is the difference in the two conditions, and possibly Why am I getting spikes for the zero volt portion.

 

Regards

Amanmeet Garg

Graduate Student

Simon Fraser University

Burnaby,Canada. 

0 Kudos
Message 1 of 5
(3,057 Views)
Do you realize that the U16 is unscaled? You would need to get the polynomial scale with a DAQmx property node and apply it to the raw data.
0 Kudos
Message 2 of 5
(3,050 Views)

Thank you Dennis for your prompt response,

 

Could you elaborate on what do you imply by the polynomial scale.

 

Because from what understand for the U16 is that it is the property for the A/D conversion that the analog voltage of +- 10 volts is being converted to unsigned 16 bit number.

 

an example picture or any reference might be useful.

 

Regards

Amanmeet Garg 

0 Kudos
Message 3 of 5
(3,044 Views)

Did you try doing a search? You might have turned up this reference to the DAQmx help.

 

What it all means is that the U16 values are unscaled and not calibrated.

0 Kudos
Message 4 of 5
(3,023 Views)
Solution
Accepted by topic author Amanmeet

Thank you Dennis, 

 Your reference is a good information. I was able to solve my issue by keeping the acquisition as a 16bit signed integer as I am measuring the negative voltages as well.

 

so in the zero/-ve volt region the system was giving it a value of 65535 in case of unsigned 16 bit sampling. 

 

I am correcting for the scale and filtering outside in MATLAB and am getting reasonable outputs.

 

Regards

Amanmeet Garg 

0 Kudos
Message 5 of 5
(3,020 Views)