Skip to main content

Serial_Reinitialize (function reference)

By July 1, 2023July 17th, 2023Online Help, Troi Serial Plug-in
Troi Serial Plug-in > Functions reference > Serial_Reinitialize
Troi Serial Plug-in for FileMaker Pro

Serial_Reinitialize

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

SyntaxFunction badge

Serial_Reinitialize ( switches )

Parameters

switches not used, reserved for future use. Leave blank or put "-Unused"

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 3.0

Compatibility

FileMaker Pro 16 to FileMaker Pro 2023

Considerations

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

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

Example

Set Field [ gErrorCode ; Serial_Reinitialize ( "" ) ]

Used in example file

Terminal.fmp12

Related functionsFunction badge

Serial_GetUSBInfo
Serial_Open

Related script stepScript step badge

Reinitialize Serial Plug-in

Related topics

Troi Serial Plug-in online help (overview)


Online Help Page for Troi Serial Plug-in for 16 to 2023 –> Serial_Reinitialize (serip4807) 2023-0717 12:54:38