10-14-2014 01:40 PM - edited 10-14-2014 01:43 PM
Hello,
I'm very new to Labview and this project was dumped on me. The issue is I do not have the experience working with this piece of hardware to make this happen. I have experience making channels in MAX and logging info from them but you cannot do that with this hardware.
Basically, what I have is a few messages per second coming over a CAN bus in very quick succession that I need to log to a file.
The code logic would probably be this:
Loop starts here Wait for message on a given ID or multiple IDs per a mask/filter
Log message to txt file
Repeat
I have examples that display the data stream on screen but logging that to a file is not something I know how to do. Could someone help me by either quickly making a vi for this or pointing me in the right direction? I plan to take the courses for labview soon but getting them approved takes awhile.
10-14-2014 04:05 PM
First here is some training when you get some time.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Secondly it sounds like you have a good start. I'm hoping you started from an example from the Examle Finder for reading and displaying CAN frames. The CAN hardware will have a buffer so if you perform a read you will get 0 or more frames. So when you do a read what you want it is a condition that if the ID is equal to some value, log. This can be done by taking the array of frames and handling them one at a time in a for loop. Then in the for loop pull out the ID using the Unbundle by Name. Then use a case structure where if the ID is what you want do something, or if it isn't do nothing. In the do something case you can log to disk using something like the Write To Spreadsheet File, or Write To Text File.
If you get stuck post what you tried.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord