LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature monitoring

Solved!
Go to solution
Hello,  I am trying to monitor about 30 temperature variables on a third-party system (Red Lion Controller). On my PC, I’ve installed Red Lion´s OPC server and it works like a charm. From LV/DSC we have full connectivity with the OPC server. The temperature tags on the PLC are configured as signed integer with two decimal digits, but for an odd reason LV reads them as integer without decimal point (we miss the decimal point). I.e.: for a temperature value of 38.5 °C, LV reads 385 °C. I don’t know if this is a normal behavior of if I am doing something wrong.  

Is there any way to workaround this behavior?

 

Thanks.

 

Daniel
0 Kudos
Message 1 of 2
(2,647 Views)
Solution
Accepted by dgonzalez

That's probably the expected behavior since the registers are probably just signed or unsigned 16 bit integers.  Since it can read fractions of degrees, it just stores the values in the register multiplied by 10.  Check the manual.

 

Use scaling in your variables to divide by 10.

Message 2 of 2
(2,641 Views)