To find the process which is using the Serial port (COM), follow the steps below.
- Download the Process Explorer tool from Microsoft.
- Open Device Manager and expand Ports (COM & LPT). Right click on the target serial port and select Properties.
- Select the Details tab and change the value in the Property field to Service, as shown in the image below, and note the service value for searching in Process Explorer.
It is worth mentioning that NI-Serial devices use the service NiSerU, while built-in ports use the service Serial.
- Open Process Explorer. You will see a screen similar to the image below.
- Select Find » Find Handle or DLL... in the menu.
- In the Handle or DLL substring field, type in the value that was obtained from Device Manager. In this example, we type in NiSerU.
- Click Search and the results will populate to show which process is using a the particular handle. In this example, the USB-232 shows as \Device\NiSerU1 being used by NIMax.exe.