LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get out of run mode

I have written a DAQ VI which reads lots of analog channels, then writes the linearized values to a big global array. i set it to automatically run when opened. i modified the window to have no STOP button. This is an endless while loop.
now i need to stop the thing to make a modification to it, but can't get it to stop executing. as soon as it's opened, it starts running. there is no stop button and the debugging is set to OFF.

how can i get this vi to quit running?
0 Kudos
Message 1 of 4
(3,580 Views)
todd wrote:
> I have written a DAQ VI which reads lots of analog channels, then
> writes the linearized values to a big global array. i set it to
> automatically run when opened. i modified the window to have no STOP
> button. This is an endless while loop.
> now i need to stop the thing to make a modification to it, but can't
> get it to stop executing. as soon as it's opened, it starts running.
> there is no stop button and the debugging is set to OFF.
>
> how can i get this vi to quit running?
>


Hi,
I have seen this solution mentioned somewhere:
If there is a sub Vi used open that seperately and edit it by changing
some wiring to give a broken arrow (make sure it will be easy to fix it
back later) and save it. Now when you try to load your main program it
s
hould stop and allow you to edit.

Renaming your global variable so the main VI can't find it might also
work but I've not tried. I guess renaming a sub vi temporaraly so it
can't be found would also work.

Also search on
http://www.ni.com
search for "run when opened"; there is an article there with another idea.

I've learned the hard way myself and always have a way of stopping the
VI either on the Panel or from a Run Time Menu. I could see that might
not always be desirable on a factory floor though 🙂


Regards,
Dave R.
0 Kudos
Message 2 of 4
(3,580 Views)
There are few things you can do:
a) Look at the attached VI. When you want to open a VI that runs when open, this VI will open it idle mode using VI Server.A nice touch to improve your LabVIEW environnement, copy that VI in the labview\wizard directory. After relaunching LabVIEW, a new item will appear in the file menu: Open VI idle mode. That makes the VI easily accessible when needed.
b) On the diagram of a new VI, drop the problem VI. Clicking the VI icon on the diagram to open its panel, this one won't be running.
c) In case of emergency, put a VI (or a shortcut to) on the desktop that will abort all top level VIs currently running (except itself). When the user interface is stuck with a modal VI that prevents all other user operation, double-cl
ick on this VI to abort. That prevents to have to kill LabVIEW.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 4
(3,580 Views)
Put the vi in question on a diagram and then open it from there.

Mike Sachs
Intelligent Sytems

"todd" wrote in message
news:506500000008000000984E0000-1023576873000@exchange.ni.com...
> I have written a DAQ VI which reads lots of analog channels, then
> writes the linearized values to a big global array. i set it to
> automatically run when opened. i modified the window to have no STOP
> button. This is an endless while loop.
> now i need to stop the thing to make a modification to it, but can't
> get it to stop executing. as soon as it's opened, it starts running.
> there is no stop button and the debugging is set to OFF.
>
> how can i get this vi to quit running?
0 Kudos
Message 4 of 4
(3,580 Views)