I have a CVI application that utilizes a DLL (developed by someone else) that calls a DLL (developed by someone else) to initialize/open the com port to be used in my application.
This is OK for me because I dont need to worry about which com port I am using, but the only problem is when I exit my program the com port is still open and will not close out until I terminate execution of my CVI program. I guess because the DLL that opened the com port does not know when my program exits.
My question is, can I close a com port from within my application not knowing exactly which com port I am using?
In my testing obviously I know what com port I am using and when I try to do a CloseCom(4) it still does not close out the com port that I am using and obviously from a task manager perspective my program is still running.
Any ideas, Thanks.