LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting decimal strings in the array to IEEE 754

Solved!
Go to solution

Hi 

 

I would like to ask how do I convert data collected in decimals strings in the array using Modbus API library read holding register value to IEEE 754. The attached photos are the front panel, the block diagram, the manual calculations of the final value I would like to have and the VI program.

 

Thank You. 

0 Kudos
Message 1 of 7
(3,108 Views)
Solution
Accepted by topic author ace2light

Hi ace,

 

it can be so easy:

check.png

Best regards,
GerdW


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

Note that in Gerd's picture, the orange zero constant is set for SGL representation.

 

It is a good idea to show the label on the constant and type in "SGL" to document clearly what is going on with that typecast.

0 Kudos
Message 3 of 7
(3,022 Views)

Hi RavensFan,

 

yes, I forgot that label. I only wrote the label for the input array.

But on the other hand it is quite clear because of missing coercion dots on that SGL indicator…

Best regards,
GerdW


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

Thank you for your help! It works now. 🙂

0 Kudos
Message 5 of 7
(2,972 Views)

Hi GerdW

 

Thank you for your help! It works now. 🙂

0 Kudos
Message 6 of 7
(2,966 Views)

Hi RavensFan 

 

Thank you for your help too! 

 

 

0 Kudos
Message 7 of 7
(2,963 Views)