Skip to main content

Reinitialize Serial Plug-in (script step reference)

By August 1, 2025August 5th, 2025Online Help, Troi Serial Plug-in
Troi Serial Plug-in > Script steps reference > Reinitialize Serial Plug-in
Troi Serial Plug-in for FileMaker Pro

Reinitialize Serial Plug-in

Tell the plug-in to re-initialize itself and look which serial ports are available on the system now.

SyntaxScript step badge

Reinitialize Serial Plug-in [ Select ; Result (error) ] 

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

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:

$$-4211 kErrAllPortNull no serial ports found

Other errors may be returned in the future.

Originated in

Troi Serial Plug-in 5.0

Compatibility

FileMaker Pro 18 to FileMaker Pro 2025

Considerations

This script step will close all ports first. Then the plug-in looks again for available ports.

You can use this script step when new or different serial ports are added dynamically, for example if you plug-in a USB To Serial adapter.

Example

Reinitialize Serial Plug-in [  Select ; $ErrorCode ] 

Related script stepScript step badge

Open Serial Port

Related functionsFunction badge

Serial_GetUSBInfo
Serial_Open
Serial_Reinitialize

Related topics

Troi Serial Plug-in online help (overview)


Online Help Page for Troi Serial Plug-in for 18 to 2025 –> Reinitialize Serial Plug-in (serip7807) 2025-0805 18:55:48

troi.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping us to understand which sections of the website you find most interesting and useful.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.