From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-10-2011 04:57 PM - edited 08-10-2011 05:02 PM
Hello,
I am writing a program to pick com ports for the main program. The com ports are actually USB devices and I want them to be able to choose different ports if they happen to change because of the USB. So I wrote the program to populate a menu ring with the names of available com ports. Everything works fine as a vi, but when I built it as an exe the property node throws errors. I am running the exe on the same machine as my vi for testing.
# -1073807246
Property Node (arg 1) in pick comports.vi.
The property node is : Property:Interface Information:Interface Description
Using this as a VI it puts out names similar to what you would see in the windows device manager. The false case just puts the words "Not Used". The input is an array of Visa references for COM1 - COM10.
Any ideas on why it breaks in an EXE?
Solved! Go to Solution.
08-11-2011 01:42 AM
This looks like a VISA session is still open in LabVIEW so your exe can't access it. Try running the exe with LabVIEW closed or see here.
08-11-2011 10:04 AM
That was the problem, LabVIEW still open in the background. It would be nice if the search engine would have pulled up that page you linked to.
08-11-2011 10:07 AM - edited 08-11-2011 10:08 AM
@_Bryan wrote:
It would be nice if the search engine would have pulled up that page you linked to.
It does if you don't search in the forums only, but on the NI Website. The website search includes the forums, so it's usually a better place to start, especially if you have an error code/message then it might find some KB articles or similar in addition to forum posts.
08-11-2011 10:19 AM
I just went to the NI home page and searched for Error -1073807246 (copied from the page you linked to) and it does not show up. I tried searching for -1073807246 and it did not show up either, but just searching for 1073807246 seemed to do the trick. I guess I just searched wrong.
Thanks for the help.
08-11-2011 10:33 AM
That's the thing with search engines... a '-' sign means find articles NOT containing the following word. So leave the '-' away when searching for an error code in google or on ni.com.