Serial port
- Last UpdatedNov 15, 2022
- 1 minute read
The PI UFL interface initializes the COM port using parameters specified in the .ini file. The interface reads characters from the port and assembles them into messages that are parsed and processed.
If the serial port plug-in fails to initialize, the interface logs the Microsoft Windows system error code(s), which you can look up on Microsoft Support web sites. Search for the results of the Windows function call GetLastError().
Examples of common serial port related errors and likely causes.
Common serial port error messages
|
Error message |
Likely cause |
|---|---|
|
2 - The system cannot find the file specified |
The specified serial port does not exist. |
|
5 - Access denied |
The specified serial port is being used by some other driver. |
|
87 - The parameter is incorrect |
One of the port parameters is not properly specified. |
Beginning with version 3.6.4, if the interface is unable to open the specified COM port, it will not exit but will keep trying to open the port at one-minute intervals. Therefore, it is recommended to verify the COM settings specified in the .ini file in cases when "Initializing the PlugIn DLL" is the last message shown in the log.