Transfer Floating Point Values Through a CAN Network Using NI-XNET on a cRIO

Updated Nov 1, 2018

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW

Driver

  • NI-XNET

Issue Details

I am adding an NI-XNET CAN interface to my CAN cluster. Then I am using LabVIEW for creating an application which writes and reads floating point numbers to my CAN cluster. I am only able to write or read integer numbers.

Solution

In order to interpret floating numbers from any payload transfer on a CAN Frame on a CompactRIO target using LabVIEW you will need to follow this 2 steps:

  1.  The interpretation of the payload can be configure on your XNET Database, there you could set up a frame and then a signal for that specific frame. From the Signal Properties you need to change the Data Type to IEEE Float
  2. Deploy your XNET database to the CompactRIO which contains the XNET Interfaces. There are two ways you could do this they are explained in the following article:How to Deploy XNET Database into Real-Time Targets

 

WAS THIS ARTICLE HELPFUL?

Not Helpful