Hi all,
I am working with IAI linear actuators. I have successfully coded a LabVIEW VI (MODBUS RTU) that does many other things along with reading the current location of the actuator. The current location value is stored within specific "registers" whose addresses are given in the IAI handbook. The 2 registers store (1) most significant digit (2) least significant digit
By default the "register values" are stored as an array of word (16bit integer). Check snapshot below.
According to the instruction handbook, the 2nd element of the array i.e. 4500 is nothing but 4500x0.01mm = 45mm. I have verified that by physically measuring the actuator position. The problem I am facing is converting this value into a decimal number programmatically. . Ideally, I am looking for "word integer to number" conversion. LabVIEW has the reverse available i.e. "number to word integer" available.
I am not sure if "typecasting" can do the conversion. If yes, I do not know how to do it.
Currently, I think I am doing it in a very crude way (snapshot below), is there a better way to do it?