I've been using OpenLog to capture data for later analysis. It works great, especially when you create csv files that import nicely into Excel. However, I would like to be able to read some parameters from a params.txt file to set some of the conditions of the programs I'm running. I'm having trouble capturing the read.
I'm trying this code on a 28x2 after I put the OpenLog in command mode.
ptr = sp_params
serout log_rxi,T9600_8,("read PARAMS.TXT 29,10",cr)
serin log_txo,T9600_8,(@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr)
to read
run time in hr;period in sec
5;60
from the params.txt file and extract the 5 and the 60. It should go to position 29 and read the next 10 characters. But I get nothing captured to scratchpad. What am I missing?
I'm trying this code on a 28x2 after I put the OpenLog in command mode.
ptr = sp_params
serout log_rxi,T9600_8,("read PARAMS.TXT 29,10",cr)
serin log_txo,T9600_8,(@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr)
to read
run time in hr;period in sec
5;60
from the params.txt file and extract the 5 and the 60. It should go to position 29 and read the next 10 characters. But I get nothing captured to scratchpad. What am I missing?