Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

Cluster vs U32 Array With cRIO 985x CAN Module

Primary Software: Driver Software>>NI-CAN
Primary Software Version: 2.6
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-RIO
Hardware: Industrial Communications>>CAN>>NI 9853, Industrial Communications>>CAN>>cRIO-9852

Problem:
Where can I find documentation and/or examples on the two data types (Array of 6 U32 and Cluster) used with the NI-CAN FPGA I/O nodes?



Solution:
The following table, available in the Digital Port Input (CAN Input) section of NI-985x Reference Help, shows how CAN frame data is stored as an array of six U32 values.

For more information, you may reference the help by navigating to Start»Programs»National Instruments»CompactRIO»NI 985x»NI 985x Reference where x represents your particular cRIO CAN module.

Note: If you have any problems locating the documenation, ensure that you have installed the NI 985x Software.

A library also installs along with the NI-CAN driver that includes VI's that will automatically convert a CAN frame from an array of U32 values to a cluster or vice versa:

  • CAN Convert Frame 1D U32 to NI-CAN NI.vi
  • CAN Convert Frame NI-CAN NI to 1D U32.vi
Both VI's are located in the labview\examples\nican\logfile.llb library.

Related Links:
Developer Zone Tutorial: Introduction to using the Controller Area Network (CAN) module (NI 985x) with CompactRIO
Developer Zone Tutorial: Using Clusters and Arrays in LabVIEW FPGA
KnowledgeBase 464FIDJL: How to use the NI-CAN Channel API with cRIO 985x C-Series Hardware?

Attachments:





Report Date: 11/02/2007
Last Updated: 09/04/2008
Document ID: 4F1ENQSD

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit