Jump to content

NI-XNET Filtering CAN frames


gred

Recommended Posts

Dear all,


 


The CAN frames I recieve per cycle are with the following identifiers: 


 


[1 frame] 513 (Radar status- range, elevation, target type)


[1 frame]1536 (Target status - No of targets near field from byte 1 and No of targets far field from byte 2)


 


Followed by 96 message pairs of which 1-32 pairs are for near field and 33-96 are for far field.


1793 (Target Info 1)


1794 (Target Info 2)


 


For the filter, I need to to identify the 1536 frame first and read byte 1 and byte 2 which gives me information about the number near and far targets respectively. 


Then I need to pick (equal to byte1) number of message pairs from the first 32 pairs and retrieve sigals from that; and then pick (equal to byte2) number of message pairs from then next 64 message pairs and retrive signals. 


 


As this plots only the targets that are valuable. I am also looking to create more efficient projects that can be scaled to multiple radars.


 


Any help on how to filter efficiently and read the payload information [all 8 byte as a string] for byte 1 and byte 2 and then pick only the required message pairs. I would much appreciate your help.


 


 


 


Kind Regards,


Red


 


 


MainRadar.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.