Trigger Serial Test Script (script step reference)

Troi Serial Plug-in > Script steps reference > Trigger Serial Test Script
Troi Serial Plug-in for FileMaker Pro

Trigger Serial Test Script

Use this script step to troubleshoot the serial port and test scripting.

SyntaxScript step badge

Trigger Serial Test Script [ Select ; Result (error) ; Test data to send ]

Options

Select entire contentsreplaces 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 sendeither "Default test text" or "All bytes 0 to 255"

Returned Result

Data type returned

Error code

Result

If successful it returns 0. If unsuccessful it returns an error code starting with $$ and the error code. Returned error codes can be:

$$-28notOpenErrmake sure you have opened a port and specified a trigger script

Other errors may be returned.

Originated in

Troi Serial Plug-in 9.0

Compatibility

FileMaker Pro 16

Considerations

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.

Example

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 stepScript step badge

Beep for Serial Data

Related functionFunction badge

Serial_Debug

Online Help Page for Troi Serial Plug-in for 12 to 16 –> Trigger Serial Test Script (serip7814) 2017-0525 11:47:11