I'd like to create a solid knowledge base here for details and instructions about the Scripter plugin for Advanced Serial Port Monitor. I hope it will be a single place for questions or comments about the plugin and its capabilities, so that it can be edited and grow.
Basic Info:SEND signals - Signals sent to a COM port using the SEND function must have a coded carriage return (^M) appended to them in order to function the same as though they were sent manually through the Port Montor dialogue. For example:
To get the same result as sending
pin 5 1 from the manual entry dialogue,
You would need to write in your script:
Questions:Iterations - I have trouble getting Scripter to run a code a specified number of times. The only way I have successfully run a code, say, 100 times is by using
SET RETRY 100 followed by a
WAIT 'x' 1 command that will never succeed (so I can loop back using
IF FAIL).
Is there a better way to do this? Is there a method to create incrementing variables?
Variables - What is the best way to create and handle variables. I am sure it is possible using some of the file operating functions. These functions are under "Advanced" in the help file and are not explained in detail. With more information on this topic the capabilities of Scripter could become much more powerful.