Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to seperate the output array in the in built example of CAN receive

How to seperate the output array in the in built example of CAN receive?

 I was able to seperate the output array into time stamp , ID ,Frame type,Bytes and data.

Now i am facing the problem to seperate the Data fielsd as i want to extract byte vice data and use it for the processing beacuse from DSP i am packing the data where each byte has some info. So in labview side i need to seperate it and use each byte of data to perform different actions.

 

Please help me

 

Thanks

Mahadev

 

0 Kudos
Message 1 of 4
(6,423 Views)

Hi Mahadev,

 

It would be helpful to know exactly which example you are talking about. Can you please post the full name of the example VI so that those on the forums can help you better?

 

Again, I forget which hardware you are using. I assume you are using the Frame API, so you could use the Frame to Channel Conversion Library to get you to where you need. Use the Getting Started guide found in the download to help you setup a database. With a database you don't have to manual parse through the data field of a CAN message.

 

I highly recommend using the NI-CAN Hardware and Software Manual as a reference. It provides valuable insist into how the hardware works and what the VIs do. Thought dated, this <link no longer exists> is still valid. Also, NI Developer Zone Tutorial: The NI-CAN Channel API and Frame APIs are good documents too.

Joshua B.
National Instruments
0 Kudos
Message 2 of 4
(6,391 Views)

Thanks for the reply,

I am using Hardware Input Output-->CAN-->NI CAN-->Frame API-->CAN Receive.vi example. Without using Frame to Channel conversion is it possible to seperate the Data bytes.

 

Please help me on this waiting for ur reply

 

Thanks

Mahadev

0 Kudos
Message 3 of 4
(6,370 Views)

Hi mahadev,

 

You can use the Index Array function and then an Unbundle function to get the data. These questions seem more inline with general LabVIEW Getting Started questions. You may want to head over to the training section of ni.com to get tutorials on working with the different LabVIEW data types or start posting in the LabVIEW forums.

Joshua B.
National Instruments
0 Kudos
Message 4 of 4
(6,350 Views)