07-03-2024 01:22 AM
In host of compactRIO controller, how to convert R to temp?
From the read/write FPGA interface, Mod/R0, Mod/R1 FXP of RTD, I can see that on front panel as number, as well as waveform chart of the sensor. However want to change that resistance to temperature. So adding an expression node in Host, have the expression(equation) done for conversion, but how to connect it up. The FXP of RTD1 does not connect as input into the expression node, that I was hoping to output into the waveform chart to see amplitude vs time in temperature degrees, rather than resistance.
How can I do this? Or is there another way to do it? I want to leave it as resistance in the FPGA VI and not convert temp there but in Host instead. Thanks
Solved! Go to Solution.
07-03-2024 01:25 AM
Hi ppra,
@ppra wrote:
The FXP of RTD1 does not connect as input into the expression node,
Simple solution: convert the FXP to DBL…
07-03-2024 03:24 AM
Thanks GerdW.
How do we convert to DBL numeric constant? So change the 'highlighted' FXP to DBL, then use that as input into expression node and wire output into chart.
''
07-03-2024 03:28 AM
Hi ppra,
@ppra wrote:
How do we convert to DBL numeric constant?
I never mentioned any "constants"!
What about a simple ToDBL function to convert your FXP wire into a DBL wire?
07-03-2024 03:37 AM
Using this ...?
So wire the highlighted FXP that outputs from read/write FGPA interface, wire into DBL then into expression node. That should convert it then? Thank you
07-03-2024 04:07 AM
@ppra wrote:
Using this ...?
So wire the highlighted FXP that outputs from read/write FGPA interface, wire into DBL then into expression node. That should convert it then? Thank you
No. I am sure GerdW is talking about 'To Double Precision Float' function.
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/to-double-precision-float.html
07-03-2024 04:15 AM - edited 07-03-2024 04:16 AM
Hi ppra,
@ppra wrote:
Did I mention "sparse", "matrix" or "complex double" anywhere in my messages?
No, as Uli wrote, I meant the ToDoublePrecisionFloat.
Use QuickDrop and type "dbl" - for me it's the first item in the list: