VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Integration of NI-9853 into Veristand project

Solved!
Go to solution

I am working to integrate two third-party motor controllers into a test stand, which can send status data over CAN.  I'd like to be able to bring the CAN data into my Veristand project that is operating this test stand.  Since I will have two devices sending data via CAN, the NI-9853 seemed like the best choice.  I have some experience with setting up the XNET database for CAN, but it looks like the 9853 requires the FPGA instead of using XNET.  I did find the example FPGA VI for the 9853 that will allow the raw CAN data to be read (I am currently using the FPGA for other functions in Veristand), but what I'm missing is how to define the decoding of the data like is typically done with the XNET database.  Does anyone have experience doing this that can give me some quick steps on how to bring decoded CAN data from a NI-9853 into Veristand?

0 Kudos
Message 1 of 10
(876 Views)

To my knowledge, no one has ever created an FPGA personality that supports the cRIO CAN module.

Perhaps the closest option you have is to use FPGA Addon. See Getting Started With NI FPGA Devices in NI VeriStand

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 10
(849 Views)

I have been trying to figure this out, too. It's fairly easy to get the raw CAN data from the 9853, but converting it to engineering units is the challenge. It's easier in Labview, cause you can use the XNET conversion VI's on the raw CAN data, but in Veristand I think you need a custom device to implement the conversion.  I have never created a custom device, so I don't know how hard this would be.

Another option is to use the NI-9860 with 2 TRC-8542 transceivers. This is much easier, cause you can just use the native XNET capabilities in Veristand.

0 Kudos
Message 3 of 10
(831 Views)

I am starting to think the NI-9853 isn't the way to go.  I have little familiarity with implementing CAN hardware, though I have configured XNET before.  I have two automotive controllers that just transmit internal status/fault information over CAN, which is all I want to monitor.  It looks like I could use a NI-9862 and daisy chain the two controllers, or I could use the NI-9860 and two TRC-8542 cables (this seems like the easiest implementation).  I was looking at the compatibility tables, and it was saying these aren't supported on EtherCAT and require use of the FPGA.  I am using a cRIO-9049 controller running in FPGA mode and a NI-9145 EtherCAT as an expansion unit.  Is it possible to install the NI-9860 in the EtherCAT, or does it require the FPGA?  The reason I ask is that I tried to start a new FPGA Labview project, and the NI-986X series modules are not available to add to the FPGA.  Seems like conflicting information, unless I'm missing something.

0 Kudos
Message 4 of 10
(776 Views)

The reason I ask is that I tried to start a new FPGA Labview project, and the NI-986X series modules are not available to add to the FPGA.

You cannot and don't have to add NI-986x under FPGA. It runs on RT. See Getting Started with NI-XNET Installing and Configuring It for NI VeriStand and NI LabVIEW

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 5 of 10
(770 Views)

So the NI-9860 will work if I install it on my cRIO-9145 EtherCAT chassis running the scan engine?  I guess from the compatibility information it seemed that it would need to be in a slot on my cRIO-9049 controller, which is running in FPGA mode.  I think I'll need to get to the TRC-8542 software settings as well in order to enable the terminal resistors, just wasn't sure how that worked in NI-MAX and/or Veristand.  I believe we have a path to getting a DBC file from the motor controller supplier, so setting up the XNET database should be easy enough.

0 Kudos
Message 6 of 10
(737 Views)
Solution
Accepted by topic author _pepper

The NI-9860 will work if I install it on my cRIO-9145 EtherCAT chassis running the scan engine? 

NI-986x doesn't work in NI-9145 EtherCAT chassis, regardless of the programming mode. Reference: C Series Module and CompactDAQ or CompactRIO Hardware Compatibility with LabVIEW

 

it seemed that it would need to be in a slot on my cRIO-9049 controller, which is running in FPGA mode.

It needs to be installed in cRIO-9049, in Real-Time mode. Reference: Using NI 986x Modules with cRIO-904x or cRIO-905

 

TRC-8542 software settings as well in order to enable the terminal resistors, just wasn't sure how that worked in NI-MAX and/or Veristand

The termination resistor can be enabled under the Port tab of CAN channel in VeriStand.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 7 of 10
(726 Views)

I have implemented the NI-985x support in Protection and Counter Addon for anyone who comes across this post.

See Release NI-985x Support

 

-------------------------------------------------------
Control Lead | Intelline Inc
Message 8 of 10
(464 Views)

Hi, I have a cRIO-9038 and NI-9853. I also have the need to use NI-9853 in Veristand, could you please tell me the process of using it?

0 Kudos
Message 9 of 10
(276 Views)

3218625570@qq.com wrote:

Hi, I have a cRIO-9038 and NI-9853. I also have the need to use NI-9853 in Veristand, could you please tell me the process of using it?


  1. Download and install the package from Release NI-985x Support
  2. To use NI-985x modules, a shared Host to FPGA FIFO named "CAN_Tx" and an individual FPGA to Host FIFO named "CANy_Rx" is required for each CAN channel. See CAN-Frame-Protection-Custom-Device/Source/SubModules/985x-Support/Source/FPGA Template for the example FPGA VI.
  3. Add Frame and Protection Addon. Select your database.
  4. Under FPGA Settings, check Enable Bitfile and browse to bitfile from step 2. If your bitfile contains the valid FIFO for NI-985x, you can select one.
  5. See C:\Users\Public\Documents\National Instruments\NI VeriStand (Year)\Custom Devices\Protection and Counter Addon\Windows\Quick Start Documentation to configure the custom device.
  6. If you want to use more than one channel of NI-985x CAN, add a new instance of the custom device.

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 10 of 10
(267 Views)