08-04-2010 05:01 AM
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.
08-04-2010 05:04 AM
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.
08-11-2010 07:41 AM
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,
Charlotte F. | CLAD
National Instruments France