Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

the same resolution for different input range in DAQ mx (USB 6251)

My input signal range is  - 0.95 ~ + 0.95. I have two problems about that.

 

1)  When I set the input range as ( - 0.1 ~ + 0.1 ), the resolution is 1mV. When I set the input range as ( - 10 ~ + 10 ), the resolution is also 1mV. What's wrong with that?

 

2) If the input range is  ( - 10 ~ + 10 ), then the resolution should be 20 volts (total voltage swing) divided by 65536 (16 bits). It shoud be 305 uV. But the smallest voltage that can be detected is 1 mV. What's wrong with that?

 

Thank you,

0 Kudos
Message 1 of 10
(4,636 Views)

Jaseon,

 

How are you measuring your signal? Is it possible that the indicator you are veiwing the voltage from is only displaying three decimal places? If you attach your code or a screenshot that would be helpful.

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 2 of 10
(4,635 Views)

Yes, you are right. I find that the data that I collected just has three decimal places. How could I set it and make it could have more decimal places?

 

Thank you so much!

0 Kudos
Message 3 of 10
(4,629 Views)

data=importdata('G:\data\01302014\P007.bin');
rmax=numel(data);

 

for i=1:rmax

      volt_1(i)=data(i);

end


figure

plot(timepid,volt_1,'b');

xlabel('Time (s)');
ylabel('Voltage (V)');

0 Kudos
Message 4 of 10
(4,621 Views)

I'm not familiar with the Matlab programming aspect of the card, I'm guessing the problem is with that and how it's returning data back. I would view the signal in Measurement and Automation Explorer (MAX). Also, where is the second screenshot from? That looks like the DAQ Assistant in LabVIEW, or is this how the acquisition is configured in Matlab? If you are using the Data Acquisition Toolbox it might be a good idea to go over to Mathworks' site and post the question there as they write that software.

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 5 of 10
(4,620 Views)

 You are right.

 

I find that the data that I collected just has three decimal places. How could I set it and make it could have more decimal places?

0 Kudos
Message 6 of 10
(4,616 Views)

I see you are importing data from a .bin file. How are you creating that .bin file?

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 7 of 10
(4,614 Views)

this is the vi program

Download All
0 Kudos
Message 8 of 10
(4,601 Views)

It's with how you are saving the bin file. By default the Write to Spreadsheet File VI uses the format of %.3f which means three decimal places. Try using %.6f as shown below.

 

write to spreadsheet.png

 

This should fix things right up.

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 9 of 10
(4,592 Views)

Thank you so so so much! You are such a nice guy.

0 Kudos
Message 10 of 10
(4,588 Views)