Serial_DelayMilliseconds (function reference)

By May 1, 2021May 5th, 2021Online Help, Troi Serial Plug-in
Troi Serial Plug-in > Functions reference > Serial_DelayMilliseconds
Troi Serial Plug-in for FileMaker Pro

Serial_DelayMilliseconds

Waits the specified number of milliseconds.

SyntaxFunction badge

Serial_DelayMilliseconds( switches ; milliseconds )

Parameters

switches not used, reserved for future use. Leave blank or put "-Unused"
milliseconds the time in milliseconds the script is paused

Returned Result

Data type returned

Error code

Result

The returned result is always 0 (no error).

Considerations

You can use this function to wait for a (small) amount of time on a device, for example to produce a few bytes of data.

The maximum delay time is limited to 600000 milliseconds (= 10 minutes).
This function has no effect on the user interface and it does not unfreeze a Freeze Window script step.

Example

Lets say a serial device needs a bit of time to initialize. You can add this line to a script:

Set Variable [ dontCare ; Serial_DelayMilliseconds ("-unused"; 4500 ) ]

This will pause the script for 4.5 seconds, allowing the device to start up.

Used in example file

Terminal.fmp12

Related functionFunction badge

Serial_Receive

Related topics

Troi Serial Plug-in online help (overview)


Online Help Page for Troi Serial Plug-in for 16 to 19 –> Serial_DelayMilliseconds (serip4817) 2021-0505 15:09:57