LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Droite d'équation linéaire établie à partie d'une pente et d'un offset

Salut à tous.

 

Je précise déjà que je suis débutant sous labview et ayant un besoin de programmation, je me retourne vers vous pour avoir éventuellement des réponses mais aussi pour que vous me donniez vos sentiments sur le programme que j'ai réalisé.

 

Alors, je souhaiterai tracer une droite d'étalonnage (droite d'équation linéaire - y = ax+ b) à partir d'une valeur de pente et d'un offset (ordonnée à l'origine) rentrés par un opérateur. La droite est éventuellement affichée dans un graphe et ce serait pour corriger une mesure de température d'une PT100.

 

Merci à tous d'avance pour vos réponses et votre contribution.

 

Zipplie.

 

20601iB3AFC0B8DA791A49

 

20603iB06B7A29F320E8FD

0 Kudos
Message 1 of 3
(3,356 Views)

 


 

Translation from french

 

I already said I'm a beginner in labview and in need of programming I am back to you for any answers but also for you to give me your feelings about the program than I realized.

 

So, I had like drawing a line calibration (right linear equation - ax + y = b) from a slope value and an offset (intercept) entered by an operator. The line is optionally displayed in a graph and it would be to correct a temperature measurement of a PT100.

 

Thank you all in advance for your answers and your contribution.


 

French Board

0 Kudos
Message 2 of 3
(3,352 Views)

Hi Zipplie,

 

From what I see, I guess your code is working, so that's a good start!

 

As you are asking for advices, there are many ways to do what you are doing. As you are just doing an addition and a multiplication, I wouldn't use a calculator for that. Express VIs take a lot of space and you can't actually see what you are doing, you need to double click on it. (But they are useful when you are just starting exploring LabVIEW.) I would rather use basic mathematical function and work directly with arrays as the formula is the same for the two values of X. I have linked an example of what you could do (but as I said many solutions are available).

 

I hope this helps,

 

0 Kudos
Message 3 of 3
(3,307 Views)