LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Voltage to Pressure or Pascal (Pressure) in Labview

His voltage is increasing with increasing force, it's just listed out of order in his post.

 

0 Kudos
Message 31 of 45
(1,161 Views)

I'm going to use these results for now and then improve on them later. Now is it best to use a Polynomial curve for the calibration curve? Or can I just do a linear line (for the equation)?

0 Kudos
Message 32 of 45
(1,158 Views)

Whoops, I need to clean my glasses. I could have sworn ...

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 33 of 45
(1,156 Views)

Sorry Cameron, the results were not in order. Okay,  is it best to use a Polynomial curve for the calibration curve? Or can I just do a linear line (for the equation)? And how can I finally put this in my code? lol

0 Kudos
Message 34 of 45
(1,150 Views)

@HEAPO8 wrote:

Sorry Cameron, the results were not in order. Okay,  is it best to use a Polynomial curve for the calibration curve? Or can I just do a linear line (for the equation)? And how can I finally put this in my code? lol


At this point, it's your call. And all you have to do now is just write your manually-derived transfer function into LabVIEW code (use the Numeric palette).

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 35 of 45
(1,143 Views)

Do not use a linear curve.  You already know from the manual that the response will be non-linear so using a linear curve will only increase your error.

0 Kudos
Message 36 of 45
(1,142 Views)

okay I'll use the polynomial one. Okay guys I'm nearly there now- I'm sure this step is easy, but I still need help with regards to the number pallete. which one do i use to put my transfer function in? I'm just 1 step away, please help! Thanks

0 Kudos
Message 37 of 45
(1,138 Views)

Build you function.... the number pallete is math operations.... plus, minus, divide, etc... just build an equation by wiring the ones you need in the correct order.  You CAN use math scripts to just write out the equation but this isn't complicated enough to require that.

0 Kudos
Message 38 of 45
(1,136 Views)

do i use the "number constant" to enter the numbers I want to use for my equation? If so how can i represent "x"? And what does the E represent in the numeric panel? The equation is in the excel file attached and is below.

 

 

-3E-0.5x squared + 0.0266x +2.0289

0 Kudos
Message 39 of 45
(1,134 Views)

yes, use number constant for your coefficients.  the "E" is a scientific notation replacing 10^..... so 3E-5 = 3*10^-5

 

Before you continue, examing your data again.  You have two forces which both read 5V.  this likely means that you've exceeded your maximum voltage and therefore shouldn't include the large numbers in your fit.

 

If 5V is your maximum voltage, only include force measurements up to 4.5V (You never want to hit the maximum).

0 Kudos
Message 40 of 45
(1,130 Views)