LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert binary data to scaled data

Solved!
Go to solution

Hi,

 

If I got a binary data from DAQmx Read.VI (Analog 2D I16 Nchan Nsamp), how can I convert this to scaled data?

 

Best,

Jay

0 Kudos
Message 1 of 8
(3,639 Views)

Depends. If you have a new M series board, with it's advanced calibration technique, you have to apply the scaling coefficients. There is are examples called Cont Acq&Graph Voltage-To File(Binary).vi and Graph Acquired Binary Data.vi that show how top obtain the property and how to scale data with the coefficients.

 

If you are converting to scaled data in your acquisition VI, why acquire as I16?

0 Kudos
Message 2 of 8
(3,634 Views)

Dear Dennis,

 

Thanks for your reply. I have E series board. In this case, I can't ues the property node, can I? Is there any alternate way?

 

I am acquiring as I16 since I need bouth I16 and scaled data.

 

Thanks,

Jay

0 Kudos
Message 3 of 8
(3,630 Views)
Then it's linear. Get your voltage range, and divide by how many steps you can have (if you have a 12 bit a/d, this 2**12). This is your scaling factor.
0 Kudos
Message 4 of 8
(3,625 Views)

Thanks, Dennis.

But could you tell me in detail? I've just started to learn LV recently, so I need your more explanation.

 

Thanks, again.

 

Jay 

0 Kudos
Message 5 of 8
(3,621 Views)

I have a voltage range -5/+5. I'm not sure what you meant by number of steps. I don't know what a/d is.

 

Thanks,

Jay

0 Kudos
Message 6 of 8
(3,613 Views)
Solution
Accepted by topic author jeongho20000

See if this makes sense. There's probably a property for the number of bits the A/D has but I can't think of it right now and can't spend toom much time looking.

 

Scale.PNG

0 Kudos
Message 7 of 8
(3,610 Views)

Thank you so much, Dennis. You save me. 🙂

 

Best,

Jay

0 Kudos
Message 8 of 8
(3,600 Views)