ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 5.1 Executable crashes when I try to run it a second time

I created an executable from some labview 5.1 code I wrote. The code works fine when I run it under labview, but when I created an executable, the code crashes. I can run the code once and it will work fine, but when I try to run it again it crashes.

The coded basic function is to record data displayed on a network analyzer screen. I have the analyzer go into remote mode for data collection and back to local after data collection so changes can be made to the display. When I try running it again after changes were made, the executable crashes.

Has anyone experience this problem?
0 Kudos
Message 1 of 3
(3,303 Views)
I have run into this problem a couple of times for different (but similar) reasons.

One was that I used the VISA open and talked to the instrument, but did not CLOSE the VISA session. When trying to OPEN again (second time program is run), the program would crash.

I had the same problem with opening references once. It is supposed to close all references when the program ends, but I always close my sessions before exiting.

Look for OPEN without CLOSE in the program.

Hope this helps.

Rob
0 Kudos
Message 2 of 3
(3,303 Views)
Hello:
You will find this resource helpful, Application Builder Troubleshooting Wizard at http://www.ni.com/support/labview/toolkits/appbuild/

Hope this helps. If you have any questions, please let us know.

-NI Support.
0 Kudos
Message 3 of 3
(3,303 Views)