LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem accessing float data through MODBUS

Dear All,
 
                 I am taking the data through the MODBUS in LabVIEW, but this time the data are floating point containing four bytes and having the decimal values, but the problem is values after decimal are truncated and it indicator doesn't shows it? so what could be the problem? is it  a problem of MODBUS with float data or it is a problem of LabVIEW indicators? what changes are required by me to show  the correct data?
 
Hope for the positive reply.
 
Thanks in advance,
Nishant
0 Kudos
Message 1 of 5
(2,571 Views)

hi there

please post some code

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 5
(2,569 Views)
Modbus only lets you read/write 16 bit register values. It is up to the labview program to convert the values into flating point. see this thread.
 
Message 3 of 5
(2,565 Views)
Hi there,
 
If you are reading floating type data, the appropriate conversion is required to get single value from four bytes.
 
Hope this would help.
0 Kudos
Message 4 of 5
(2,554 Views)

Dear Mr. Unclebump,

                            Thanks for the info., it has immidiately solve my problem , thank you very much, so kind of you.

Thanks,

Nishant

0 Kudos
Message 5 of 5
(2,549 Views)