Trigger Serial Test Script
Use this script step to troubleshoot the serial port and test scripting.
Trigger Serial Test Script [ Select ; Result (error) ; Test data to send ]
|Select entire contents||replaces the entire contents of a field with the result. If not checked the result is added to the currently selected portion of the field|
|Result (error)||an error code|
|Test data to send||either "Default test text" or "All bytes 0 to 255"|
Data type returned
If successful it returns 0. If unsuccessful it returns an error code starting with $$ and the error code. Returned error codes can be:
|$$-28||notOpenErr||make sure you have opened a port and specified a trigger script|
Other errors may be returned.
Troi Serial Plug-in 9.0
FileMaker Pro 16
To be able to test the trigger script the serial port must be opened and a trigger script must be specified.
See the Debug.fmp12 example file.
NOTE The wait time before the the script is triggered is 5 seconds.
Trigger Serial Test Script [ Select ; $ErrorCode ; Default test text ]
This will trigger the dispatch script after 5 seconds, with default text.
You can also give this command:
Trigger Serial Test Script [ Select ; $ErrorCode ; All bytes 0 to 255 ]
This will trigger the trigger script after 5 seconds, the data received is a string with all bytes from 0 to 255.
Related script step
|Beep for Serial Data|