LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start in Run mode?

Is the 'Start VI in Run mode' option missing in LV2009?  I can't seem to find it in Options...
0 Kudos
Message 1 of 18
(4,297 Views)

Hi Beck,

 

Vi properties -> Execution -> Run when opened Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(4,284 Views)
Run when opened != open in run mode (what you get with ctrl+m).
Message Edited by altenbach on 03-24-2010 12:50 PM
0 Kudos
Message 3 of 18
(4,278 Views)

Hi Altenbach,

 

I learned something new today - on a point I never missed so far...

 

This option is equivalent to pressing Ctrl-M after opening the VI. It's ini-key is "openinRun=" and defaults to FALSE (on LV7.1). The key works in LV2009 too...

 

One more point:

In the LabView help you find an index entry "run mode" with subentry "opening VIs in". When you click that subentry you are presented with the help for the Environment page of the options, but here I can't find any comment on "Opening in Run mode". Seems to be another case of forgotten links in the LV help...

Message Edited by GerdW on 03-24-2010 09:06 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(4,266 Views)

Yes, it seems this option is no longer exposed in the LabVIEW options dialog. The ini key is "openInRun=True".

 

I don't really see any use for this option, especially since it is a global option and not on a "per VI" basis.

 

Can you explain why this option is useful to you. If you have a good reason, NI should put it back. I don't see it. 😉 

0 Kudos
Message 5 of 18
(4,262 Views)
Those using the program don't need to edit it & it's easier to use in Run mode.  And easier still if they don't have to switch to Run mode every time it's opened.  Or am I missing something...  Where to I edit the ini key BTW?  Thanks.
0 Kudos
Message 6 of 18
(4,253 Views)

Beck45 wrote:
Is the 'Start VI in Run mode' option missing in LV2009?  I can't seem to find it in Options...

The above posters have already seemed to answer this,

but just to double-check, are you talking about the VI itself, or is it built into an executable?
There is an option while building an exe to have the executable 'start when opened'

Cory K
0 Kudos
Message 7 of 18
(4,249 Views)

Hi Beck,

 

you miss two points:

- Set your main VI to "Run when opened" as suggested in my first post. Then your users don't even have to start the VI on their own...

- You can set keys in the LabView.ini, which is located (usually) in C:\programs\National Instruments\LabView 2009 (or your current LV version's folder)

Message Edited by GerdW on 03-24-2010 09:18 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 18
(4,241 Views)

Beck45 wrote:
Where to I edit the ini key BTW?  Thanks.

 

 
 Go to your LabVIEW installation folder (typical C:\Program Files\National Instruments\LabVIEW xx\), edit labview.ini and add the given line anywhere.
0 Kudos
Message 9 of 18
(4,237 Views)

No it's not an .exe.  Run when opened, yes I could, but there can be FP settings to be changed before running--would like to run as desired.  I'll edit labview.ini then, thanks.   

 

 

0 Kudos
Message 10 of 18
(4,229 Views)