Tek-Tip Group,
I have started a new job at a company that uses procomm
scripts to collect data, simulate conditions, and gather
run-time data on embedded systems. I am attempting to
write a script that will capture all the data from one of the embedded cards, and store it to a file. I would like to know if it is possible to capture a line of text from the
serial port, do a string compare (if compare is same) print
the string to the file along with a time stamp?
Would I do the file I/O with the capture Icon, or would
I use the capture provided in the Aspect command language?
A list of commands would be helpful, if it is possible to
do this:
Here is an examle of what I would like to do:
from the serial port of the embedded device:
register 0x0100 = 0x45
register 0x0101 = 0x9C
register 0x0100 = 0xFF
register 0x0101 = 0x8A
the data stored to the file
register 0x0100 = 0x45 February 11, 2002 10:14:23AM
register 0x0101 = 0x9C
register 0x0100 = 0xFF February 11, 2002 10:44:03AM
register 0x0101 = 0x8A
Thanks for any help
I have started a new job at a company that uses procomm
scripts to collect data, simulate conditions, and gather
run-time data on embedded systems. I am attempting to
write a script that will capture all the data from one of the embedded cards, and store it to a file. I would like to know if it is possible to capture a line of text from the
serial port, do a string compare (if compare is same) print
the string to the file along with a time stamp?
Would I do the file I/O with the capture Icon, or would
I use the capture provided in the Aspect command language?
A list of commands would be helpful, if it is possible to
do this:
Here is an examle of what I would like to do:
from the serial port of the embedded device:
register 0x0100 = 0x45
register 0x0101 = 0x9C
register 0x0100 = 0xFF
register 0x0101 = 0x8A
the data stored to the file
register 0x0100 = 0x45 February 11, 2002 10:14:23AM
register 0x0101 = 0x9C
register 0x0100 = 0xFF February 11, 2002 10:44:03AM
register 0x0101 = 0x8A
Thanks for any help