Adak,
the inputfile i need to use is this .txt file:
The Output file is also a .txt file and should look like this:Code:
date Tue May 26 03:12:51 pm 2009
base hex timestamps absolute
no internal events logged
// version 7.0.0
0.000000 EnvGearDown := 1
0.000000 EnvGearDown := 0
0.000000 EnvGearDown := 1
0.000000 EnvGearDown := 0
0.000000 EnvGearDown := 1
0.000000 EnvGearDown := 0
0.000000 EnvGearDown := 1
0.000000 EnvGearDown := 0
0.000000 EnvGearDown := 1
0.000000 EnvGearDown := 0
0.000000 EnvGwSwitchIgnition := 2
0.000000 EnvGwSwitchIgnition := 0
2.000000 EnvGwSwitchIgnition := 1
3.000000 EnvGwSwitchIgnition := 2
3.100158 1 110 Tx d 3 02 00 00
3.100158 EnvDashboardEngESPDsp_ := 1
3.100158 EnvDashboardEngABSDsp_ := 1
3.100158 EnvDashboardEngOilDsp_ := 1
3.100158 EnvDashboardEngWaterDsp_ := 1
3.100158 EnvDashboardEngBaterryDsp_ := 1
3.100158 EnvBusCommActiveDsp := 1
3.120180 1 1A0 Tx d 4 00 00 00 00
3.120300 1 1F0 Tx d 1 00
3.120416 1 1F1 Tx d 1 00
3.140180 1 1A0 Tx d 4 00 00 00 00
3.150120 1 1F0 Tx d 1 00
3.150236 1 1F1 Tx d 1 00
3.160180 1 1A0 Tx d 4 00 00 00 00
3.180180 1 1A0 Tx d 4 00 00 00 00
3.180300 1 1F0 Tx d 1 00
3.180416 1 1F1 Tx d 1 00
3.200158 1 110 Tx d 3 02 00 00
3.200338 1 1A0 Tx d 4 00 00 00 00
3.205529 1 41A Tx d 4 1A 01 01 FF
3.205529 EnvNMReceiver26 := 1a
3.205529 EnvNMStatusDsp26 := 1
3.210120 1 1F0 Tx d 1 00
3.210236 1 1F1 Tx d 1 00
So when i import the contents of the Output file to EXCEL the tabs create a saperation of the data in collums.Code:
time id dlc byte0 byte1 byte2 byte3 byte4 byte5 byte6 byte7
3.100158 110 3 02 00 00
3.120180 1A0 4 00 00 00 00
3.120300 1F0 1 00
3.120416 1F1 1 00
3.140180 1A0 4 00 00 00 00
3.150120 1F0 1 00
3.150236 1F1 1 00
3.160180 1A0 4 00 00 00 00
3.180180 1A0 4 00 00 00 00
3.180300 1F0 1 00
3.180416 1F1 1 00
3.200158 110 3 02 00 00
3.200338 1A0 4 00 00 00 00
3.205529 41A 4 1A 01 01 FF
3.210120 1F0 1 00
3.210236 1F1 1 00
The variables i whould like to work with are :
time, id, dlc and bytes (mabey even byte0 to 7 seperate if that doesn't make it complicated)
so in the outputfile the variables should be printed like this:
time[tab]id[tab]dlc[tab]byte0[tab]byte1[tab]byte2[tab]byte3[tab]byte4[tab]byte5[tab]byte6[tab]byte7
With the following content:
Time absolute time CAN message was received.
ID 11-bits identifier of CAN message(hexadecimal)
Length number of bytes in CAN message (decimal)
ByteX Byte value of relevant byte in CAN message (hexadecimal)
I hope u now understand the concept of the assignment.
As far as i'm concerned i only have to "filter out" the relavant data, in other words the line's in wich Tx shows up.
And i have to print the "fitered" data to a new file in the correct form.
In theory at least that doesn't sound that complicated at all.
In practice, wel like i said i'm a noob :(