Logging individual variables in Hiwave

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Logging individual variables in Hiwave

1,682 Views
Shugie
Contributor I
I am trying to log variables from inside my programs using the Hiwave debugger. I have a script running and logging the echo to Data:2 > DUMP every 100 seconds or so. (So my file looks like

Data:2
var1 1
var2 1
var3 1
...
Data:2
var1 x
var2 y
var3 z
...


However I don't want all of the variables that are showing up in Data:2, just 3 of them. Is there a way to do this or will I just have to parse through the file looking for the variables I want?
Labels (1)
0 Kudos
1 Reply

183 Views
CrasyCat
Specialist III
Hello
 
There are other commands available that you can use to print only the value of a specific variable.
 
Command e (for evaluate) can be used.
 
For instance
  e fiboCount
will print value of variable fiboCount in the command window
 
If you are looking for something you can format yourself, you can use the command printf.
 printf ("fiboCount= %d", fiboCount)
will print    fiboCount = 5 for example in the command window.
 
Please refer to {Install}\Help\PDF\Debugger_HC12.pdf Chapter "Book IV: Commands" for more information about commands and their syntax.
 
I hope this helps.
 
CrasyCat
0 Kudos