06-10-2009 10:04 AM
Hello every one,
Iam trying to log the data, received on the CAN Bus. Iam using NI-USB8473 CAN device, when i select log after completion under operate tab it's only logging the data what is seen on the front pannel when i hit the stop button, but i want to record all the data right from the beginning to ending. To receive the data Iam using CAN Receive.vi in example finder. Is there any way to do this?
Thanks
Shanth
06-11-2009 02:24 PM
06-16-2009 03:41 PM
Hello Justin,
Thanxs for your reply. This helped me out in logging the data. Justin I have stuck at one more point. My application requires logging the data from the CAN Bus and Converting the frames from the Logged data in to independent Channels.I have to take the frame from the Log file and parse it into different messages... Can you pls help me out at this point..
Thank you.
			
    
	
		
		
		06-17-2009
	
		
		01:21 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		12-17-2024
	
		
		08:45 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
You may want to look at the CAN Frame Channel Conversion Library that we provide.
You may want to also look at the Display Logfile as Frame.VI example in the same place the first example was found. This will show you how to parse the logfile into independent messages.
06-18-2009 11:59 AM
Hello Justin,
I have looked at that example it's just displaying the log file contents i.e frames, Id, time stamp etc.. Justin can you pls help me out with any VI that splits the frame in to each channel it has in, Iam very new to this lab view programming a part of my application requires this stuff so Iam fighting with it.
Thank you
Shanth.
			
    
	
		
		
		06-19-2009
	
		
		09:49 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		12-17-2024
	
		
		08:46 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Hey Shanth,
There should be a couple examples within the Frame Channel Conversion Library I linked. In looking at the library, I saw three USB_CAN examples that convert frames to channels and vice versa. I would highly suggest you take a look at this library, and also the user's guide that comes with it.
If you're new to LabVIEW, you may also want to take a look at this document : LabVIEW Tutorial
This should hopefully get you familiar with LabVIEW programming. I'd suggest going through this training, then try to examine the Frame Channel Conversion Library.
06-19-2009 10:24 AM
Hey Justin,
Sorry for troubling you a lot..I had already gone through this example's. But this VI's are taking .ncd or .dbc extension file's but the log file has .ncl extensions. Can you pls help me out how to convert the frames to channels with .ncl files.
Thank you
Shanth
			
    
	
		
		
		06-22-2009
	
		
		10:45 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		12-17-2024
	
		
		08:46 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Hey Shanth,
The .ncd and .dbc files are CAN Channel Configuration files. These files contain information on converting the raw CAN data into usable channel data. The .ncl file is a CAN Logfile. What you're going to have to do is extract the raw data from your .ncl file and use a .ncd or .dbc file to convert the raw data to channel data. This is where the CAN Frame Channel Conversion Library will help, but additional programming is going to be required to extract the appropriate data and convert it.
Additional Information on .ncl files can be found here : NI-CAN Logfile Specification
06-22-2009 12:14 PM
Justin,
Iam really new to Lab View programming, I have gone through your link about the tutorial of labview in 3-6 hr's but couldnt reach up to the mark. Iam badly in need of this conversion from frames to channels if you have any code to extract the appropraite data from .ncl files for conversions can you pls post that?
Thank you,
Shanth.
06-23-2009 01:59 PM
Shanth,
Unfortunately I do not have any sample code available that extracts the data from the .ncl files besides the shipping examples that come with LabVIEWand the Frame Channel Conversion Library. Hopefully there is someone else on the discussion forum that can give you some sample code.