08-18-2008 10:56 AM
Hello,
I'm trying to write my first CAN application and need to convert some frames into channels but I really don't know how.
I'm using a cRIO 9004 controller with a 9852 module. cRIO returns me a cluster with with 8 data bytes, identifier, timestamps, info A and B and data length.
I want to get the following frames and convert it:
ID = 554hex; Byte-Nr. 7; 8 Bit long
ID = 255hex; Byte-Nr. 6 and 7; 16 Bit long
What is the best way to extract that from the cluster?
Any help would be helpfull
kind regards
miko
08-20-2008 10:39 AM
The FPGA CAN I/O node has a second data type available. If you right click the node and choose properties you can have a 6 U32 data type. That type makes it easier to manipulate the data bytes. U32 number 4 and 5 are holding the 8 data bytes.
There are VIs shipping with NI -CAN, installed within the labview examples>>NI-CAN>> logfile.llb showing the details of accessing the U32 values.
Hope that helps.
DirkW
08-25-2008 01:38 AM
It's working now. I'm using 6 U32 data values as you adviced.
Thank you for your advice.