LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

voltage to degrees conversion

I'm trying to acquire analog input signal between the range -10v to +10v i wanted to convert that into degrees and acquire it on the graph. my front panel configuration value for acquiring the signal will be in terms of degrees(range -50 to +50 degrees). that means -50 degrees should corresponds to -10v and +50 should corresponds to +10v.

so any value between -10v to +10v should corresponds to the particular value in -50 to +50 degree.

Im using NI PCIe-6353 hardware

0 Kudos
Message 1 of 4
(9,642 Views)

Looks like you just need to multiply by 5 (5 degrees/Volt).  If you are using DAQmx, I recommend just setting up a scale to do this for you and applying the scale to your channels.  DAQmx does all of the work for you then.


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 2 of 4
(9,622 Views)

Hi Crossrulzz ,

 

           Thanks, I just multiplied my acquiring value with 5. i'm using DAQmx,

Can please tell me what you meant by setup scaling is that create Scale function you are talking about ? please guide me how to do that scaling instead of just multiplying and what will be the difference between those two ways of doing

0 Kudos
Message 3 of 4
(9,518 Views)

Basically what you have to do is perform Channel calibration, then you will have the Engineering value (In Degrees). As you said you have to fix the ranges for the particular channel, then perform a linear fit using the Linear fir.vi and find the Slope and the Intercept. This method is called scaling which means how much temperature you will read when you get x voltage.

About the MAX scaling Here you have the complete information. Once the scaling is done you may create a Task for you acquisition and add the scale to it , also change the Min and Max value of the Signal Range in MAX while creating the Task.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 4
(9,508 Views)