06-11-2008 06:31 AM
06-12-2008 10:10 AM
Hi Srikumar,
Are you using NI-CAN hardware? If you are, you can use one of the NI-CAN Application Programming Interfaces for developing your tool. The NI-CAN Hardware and Software Manual contains information regarding using the Channel API (chapter 6) or the Frame API (chapter 9) with LabVIEW (chapter 7) and text-based languages (chapter 8).
The following link points to a KnowledgeBase that explains the difference between Channel and Frame API.
You would probably need to use Channel API for your application and the NI Developer Zone tutorial below shows how you can use it in LabVIEW.
Thank you,
06-13-2008 12:49 AM
06-13-2008 11:25 AM
12-17-2008 10:33 AM
You can probably use perl, C#, biterScripting. I wrote a quick script in biterscripting. Let me know if this works for you.
# Open the log file, assuming as C:/logs/xxx.log
var str content
repro "C:/logs/xxx.log" > $content
# Get each line one by one
while ($content <> "")
do
# Get the next line
var str line
lex -e "1" $content > $line
# The CAN ID is the first three words (bytes). Since bytes are separated by spaces, we will use the word extractor - wex
var str CAN_ID
wex "3]" $line > $CAN_ID
# The Byte 0 is the next byte (or word).
var str Byte_0
wex "1]" $line > $Byte_0
# Print the output message.
echo $CAN_ID " is the CAN ID, " $Byte_0 " is the Byte 0"
done
Is good for parsing logs and stuff. I believe you can do a free biterscripting download at their website.
06-17-2009 02:51 PM
Hello Simran
I have a same type of requirement Iam Using USB-8473 for my application. I want to parse the captured log file. (.ncl format) i.e splitting the frames in to independent channels. Can you help me out with any code .. Iam really in very urgent need of it.
Thank you.
Shanth.