Logging individual variables in Hiwave

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Logging individual variables in Hiwave

2,078 次查看
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?
标签 (1)
0 项奖励
回复
1 回复

579 次查看
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 项奖励
回复