Skip to main content

Trigger Serial Test Script (script step reference)

By July 1, 2023July 17th, 2023Online Help, Troi Serial Plug-in
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 contents replaces the entire contents of a field with the result. If not checked the result replaces 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"

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:

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

Other errors may be returned.

Originated in

Troi Serial Plug-in 5.0

Compatibility

FileMaker Pro 16 to 19

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.

Used in example file

Debug.fmp12

Related script stepScript step badge

Beep for Serial Data

Related functionFunction badge

Serial_Debug

Related topics

Troi Serial Plug-in online help (overview)


Online Help Page for Troi Serial Plug-in for 16 to 19 –> Trigger Serial Test Script (serip7814) 2021-0505 15:36:56