I currently have a capture loop in place to dump a date and time stamp string into the capture stream. After that I would like to send a command (v3), which will receive data from remote device after hitting return. The data will be captured every 15 seconds. I would like to have all of this data on same line, separated by commas as follows:
Date,Time,v3,x,x,x,x (where x,x,x,x is response back from remote device)
This same format should continue on as follows:
Date,Time,v3,x,x,x,x
Date,Time,v3,x,x,x,x
Date,Time,v3,x,x,x,x
etc......
I'd rather not capture the "v3" command if possible, but it can be included if need be.
Here is my current loop:
while 1
ltimestrs $LTIME DateString TimeString
strfmt sCap "%s,%s," DateString TimeString
termwrites sCap
transmit "v3^M"
pause 15
endwhile
which provides the following output:
v327/2004,3:56:44PM,v3
x,x,x,x
v327/2004,3:56:59PM,v3
x,x,x,x
I'd like to get the response (x,x,x,x) onto the same line as the date/time strings. "v3" is also replacing "7/" on the date line for some reason.
Any help on how this loop should be modified to provide the capture format above would be appreciated.