SerialPort.PortOpen=False
I can't use "Serial.PortOpen = False" to close it if I don't create the object serialex before. But this is not possible with the function Serial.NewX(.....) because already open and an error is verified.
In that case it's not possible with the Door library either as the Serial port belongs to the other application while it's open.But this is not possible with the function Serial.NewX(.....) because already open and an error is verified.