07-22-2011 08:31 AM
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
07-26-2011
01:33 AM
- last edited on
12-16-2024
03:19 PM
by
Content Cleaner
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.
07-30-2011 03:57 AM
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
08-02-2011
01:37 PM
- last edited on
12-16-2024
03:20 PM
by
Content Cleaner
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.