LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert R to Temp

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 7
(148 Views)
Solution
Accepted by topic author ppra

Hi ppra,

 


@ppra wrote:

The FXP of RTD1 does not connect as input into the expression node,


Simple solution: convert the FXP to DBL…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(142 Views)

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.

image-6.jpg''

 

 

0 Kudos
Message 3 of 7
(111 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(106 Views)

Using this ...?

Screen Shot 2024-07-03 at 8.33.36 PM.png

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

0 Kudos
Message 5 of 7
(102 Views)

@ppra wrote:

Using this ...?

Screen Shot 2024-07-03 at 8.33.36 PM.png

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 

Message 6 of 7
(86 Views)

Hi ppra,

 


@ppra wrote:

Screen Shot 2024-07-03 at 8.33.36 PM.png


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:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 7
(81 Views)