opening and closing of com ports using LabVIEW
I am using LabVIEW to open a com port and get some data. afterwards, I close the interface. but when I want to begin the process again, there is an error being generated. I feel I have to close the port completely before i o开发者_如何学运维pen it again, but how to do so?
The answer is in the question: you just have to close the VISA session at the end. The reason is that when you open it a second time, it is still openned by the first try which results in an error (the one you see).
精彩评论