How to avoid error message


julius228

Recommended Posts

Hi all,

I have problem whit this code:

device.mydevice.Port=1
try
   device.mydevice.InitComm()
   delay(3)
catch()	  
	  ? "Com busy"
Endcatch

When I execute previous code, I get the follow error message:

Unable to initialize Com1: Can't access port, probably in use by another app

How can I print the string "Com busy" instead of DF error message?

Any help is appreciated.

Thanks, Giulio.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.