Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Profibus data type converting to floating point

Hi, 

 

Is there an efficient way to convert  the incoming data to the floating point in the NI cRIO Profibus system? 

 

1) The system is : NI cRIO 9068 Controller with Comsoft profibus slave module. The lavview we are using is 2013. 

2) We are using profibus slave example and are able to see a array of unsigned 8 bit data. Please see the Output data shown in the attachement.

3) On the other side of profibus system, thrid party profibus master are converting floating points and tranmit the converted data to NI profibus slave. 

 

 

0 Kudos
Message 1 of 2
(5,239 Views)

If it's just a matter of converting data types once you have the data in LabVIEW, you can always manually scale and convert the data using the arithmetic functions and the "To Double Precision Float" or "To Single Precision Float" functions. You just have to know what floating point value the unsigned byte integer corresponds to. Is that what you're asking?

 

If you're asking for a way to this inherently with the Profibus functions, I'm afraid I can't be of much help...

Ryan K.
Product Manager, ATCA and BEEcube
National Instruments
0 Kudos
Message 2 of 2
(5,203 Views)