LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Run when opened" does not work

Hi Everybody,
 
during program development occasionally I find it very convenient to set certain VIs to "run when opened". This works very well as long as I open my VIs via the Windows Explorer by double-clicking.
 
If I open the VI from the NI Project Explorer, it will only open but not run - is this the intended behaviour? Why ?
 
Basically as long as I am developing I do not want to access anything else than the Project Explorer because that is what it was made for - am I right ?
 
Thanks for any suggestions
 
HU
0 Kudos
Message 1 of 4
(2,761 Views)

What you are describing is normal behaviour. 

If you set your VI as Run When Opened, and you double click that VI (in Win Explorer), then the VI opens and runs. 

Same will happen if you call it from within another VI that is running.

BUT..  If you open Project Explorer and then Open the VI, it will NOT run.  After all, if you are opening it from the project, that means you are likely editing it and you would NOT want the VI to run automatically, especially if there is no way of stopping it...  Well... no easy way of stopping it. 

So what you described is normal.  🙂 

RayR

0 Kudos
Message 2 of 4
(2,758 Views)
Hi JoeLabView,
 
Yes, I can see your point (NI's point) and it seems I will have to live with that 😉
 
Thanks for the info
 
HU
0 Kudos
Message 3 of 4
(2,750 Views)

Glad I could help.

They probably considered all the headaches it would cause if the VI ran automatically when opened from the Project Explorer.  I don't know that you can bypass this (probably some setting somewhere hidden), but I would not recommend automatically running it from the Project anyway.  😉

RayR

0 Kudos
Message 4 of 4
(2,744 Views)