gkimsey Posted July 8, 2013 Share Posted July 8, 2013 I get the error: "Unable to initialize Com9: Can't access port, probably in use by another app" But I'm no longer trying to use a serial port (I was a long time ago when working on this project). I'm not sure where the error is coming from (or rather, why DAQFactory is trying ot initialize Com9 at all). Under "Device Configuration..." I don't see any custom device I created. When in safe mode if I do "Delete Comm Device..." there's nothing in the list. Where else should I look? Typically in these situations I would crack open a project's XML or configuration file and search for "com9" but it doesn't looke like I can do that with .CTL files. Another topic sort of talks about this here, but it's regarding how to keep the error message from showing up when legitimately using a COM port, which I'm not (or don't want to be). http://www.azeotech.com/board/index.php?/topic/4366-how-to-avoid-error-message/page__hl__%2Bcan%26%2339%3Bt+%2Baccess+%2Bport Link to comment Share on other sites More sharing options...
AzeoTech Posted July 8, 2013 Share Posted July 8, 2013 Its possible its an orphaned port reference. Truthfully, you can just ignore the error. It won't affect the performance of your program since you aren't accessing the port. Its just trying to initialize it on load, and that gets done in a background thread. Link to comment Share on other sites More sharing options...
gkimsey Posted July 8, 2013 Author Share Posted July 8, 2013 OK, so there's not a way to flush it out of the project file? When it's just me using the project I can easily enough ignore the error, but other users will be confused by it and think something is genuinely wrong. Can I catch or hide it some way? Link to comment Share on other sites More sharing options...
AzeoTech Posted July 8, 2013 Share Posted July 8, 2013 Email us the .ctl doc and we probably can get it stripped out of there for you. Link to comment Share on other sites More sharing options...
gkimsey Posted July 8, 2013 Author Share Posted July 8, 2013 Okay, sounds good. I'm actively working on it right now and can't merge changes easily so I'll send it along as soon as I can. Thanks! Link to comment Share on other sites More sharing options...
AzeoTech Posted July 9, 2013 Share Posted July 9, 2013 OK, now that I have the document: it's not an orphaned reference. I was able to go in and delete it using standard tools. The issue is that you have a port that isn't associated with any device. Deleting a comm Device doesn't delete the associated port because its possible to have more than one Device attached to a port. In your case, you have no devices, but the port remains. To delete the port, simply go to Quick - Device Configuration, then select new Serial / Ethernet device. You'll then see the port, in your case named COM0 even though its com port 9 (the name has no association to what its attached to, its just the name you gave it). You can now select it and click Delete Port. You can then cancel out of the window without creating a new device. Link to comment Share on other sites More sharing options...
gkimsey Posted July 10, 2013 Author Share Posted July 10, 2013 Sure enough, that was it. Thanks. Not sure why I would name it that way -- just confusing myself. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.