LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable/Disable "Run when opened"

Solved!
Go to solution

Decided to write a program on NXG. I'm building an executable out of it. Is there an option somewhere that'll let me toggle whether or not the application runs when its opened? I can't find it anywhere (or almost any build options for that matter). 

 

Thanks!

0 Kudos
Message 1 of 9
(3,562 Views)

Hi Kai,

 

you want to create an executable that does NOT run when you call it?

Is this the way other software (like e.g. Office, InternetExplorer or even a command in the command shell) work?

 

An executable will always "run when opened"! (That's why it is an "executable"!)

You need to program it in a way your user can use it…

(I guess your user wants to change some settings before the main part of your executable is started: what about a config dialog with an "OK" button?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,523 Views)

Well, yes. In Labview there's actually a setting for it, so I was wondering if there was one in NXG as well!

0 Kudos
Message 3 of 9
(3,503 Views)
Solution
Accepted by topic author Kai456

Hi Kai456, 

As of LabVIEW NXG 2.1 that functionality is not available, presumably for the reasons GerdW explained.
Could you elaborate on a use case or explain why you would want the ability to enable/disable "run when opened" so that we can take that feedback into consideration for potential future releases?

Shalini M.
Partner Development Engineer
Alliance Partner Network
National Instruments
0 Kudos
Message 4 of 9
(3,467 Views)

Pretty much changing some settings like Gerd had said. I ended up changing some things around and creating a dialog box like he had mentioned, but having that setting available would certainly have been easier and more convenient! Small reasons like this is why I think I'll be sticking to LabVIEW over NXG for a while longer.

0 Kudos
Message 5 of 9
(3,465 Views)

I'm having the same issue, are there any updates to this as of NXG 3.0?

0 Kudos
Message 6 of 9
(3,210 Views)

@Jon_bellows wrote:

I'm having the same issue, are there any updates to this as of NXG 3.0?


So you want to disable run when opened? Can you think of any other program (word, Excel, browser, etc) that needs to be run after opening? It is just not a useful option.

 

Please explain why you think you need that.

0 Kudos
Message 7 of 9
(3,203 Views)

I need the user to configure some settings before starting a test. I think I can program around it, but I was just wondering if there is a short cut. 

0 Kudos
Message 8 of 9
(3,193 Views)

"state machine". The initial state is configuration. No user should have to learn edit environment idiosyncrasies such as a "run" button.

0 Kudos
Message 9 of 9
(3,187 Views)