Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

using channel view, how to periodically log a single record to file

I don't have a problem logging data from nican 2, but I can't figure out how to grab a single 1-dimensional array at a user selected interval and write it to a spreadsheet file.
0 Kudos
Message 1 of 2
(3,165 Views)
Hi Mike,

This seems more like LabVIEW programming, than CA N communication. I assume you are getting your CAN data using the Channel API CAN Read.vi using the Multi-Channel Multi-Sample data type.

You need to retrieve the single channel data for the 2D array. You can use the index array VI in the Array function palette.

With a 1D array you can then use the Array to Spreadsheet file VI in the File I/O function palette. This VI also accepts a 2D array to log all the information.

A good resource for this type of questions is the LabVIEW support site. Click on LabVIEW Tutorials and Example Code >> Fundamentals. You'll find links to tutorials and examples for File I/O and Array and clusters.

Hope this provides some help.

DiegoF
National Instruments.
0 Kudos
Message 2 of 2
(3,165 Views)