05-16-2014 09:07 AM - edited 05-16-2014 09:08 AM
Hi Torb,
I can't open your VI as I'm tied to LV2011 here so I guess you missed the inversion dots at the last CompoundMath node…
the example you gave me is one way to go, but i am not an expert in math, so it was not that logical for me to do it in that manner, since i had the formula already it would be easyer for me to just use that.
I just wired your formula using basic LabVIEW functions…
05-16-2014 09:16 AM
hi
you are of corse correct, i managed to miss that. 🙂
05-16-2014 09:24 AM
For those keeping score the code with corrected inversions at the last compound math node (Good guess Gerd!) is:
in a formula node it would look like thus
I still can't find a souce to support 3.9135e-3
05-16-2014 09:27 AM
"I still can't find a souce to support 3.9135e-3"
The pt-100 element we use is calibrated once a year, we get a calibration certificate with the correct constants for our sensor element.
07-01-2022 07:34 AM
Maybe it does not have enough precision for your application, but I had the same problem and I resolved it in a different way.
I used the tables defined in the norms to generate a look up table. I also prepared the VI to work with PT1000.
I attached the VI.
07-01-2022 09:24 AM - edited 07-01-2022 09:26 AM
07-01-2022 02:55 PM
Hi GerdW,
to be honest, your code seems much simpler and elegant... thank you.
I am trying to copy in a new VI and run it slowly just to learn how some subVIs work, because I have never used the interpolate 1D array VI for example. By the way, I can not find in the palette the sub VI previous to the interpolate. Please, could you tell me wich one is? I am not able to find it anywhere...:(
Trying to answer to your questions:
"You don't need to check limits within each iteration of the loop, you don't need a loop at all". - Absolutely. The check should be done only once. I liked your solution of finding the max and min using the array Max&Min function.
"Why did you limit the temperature to integer values?" - I did it in that way because in the table I found it was with integer temp values. To be honest, I didn't try to interpolate between the values because I did not know that this function exist.
Best regards,
Jon
07-01-2022 03:02 PM
07-01-2022 03:36 PM
Perfect! Thank you very much.
I attached the VI, just if someone needs it (LV2016).
All the gratitude to GerdW.
Best regards
Jon