LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot use "Edit Mode" property to dynamically open a VI in "run mode"

Hello,

 

I am trying to dynamically open a vi, and would like it to open up in run mode when dynamically called. I am trying to use the "Edit Mode" property to do so by setting it to false before the vi is actually opened by the Open method. However, it always seems to open up in edit mode. Am I doing something obviously wrong here?  I am enclosing a screengrab of the vi.

 

Regards

-Ted

0 Kudos
Message 1 of 3
(2,930 Views)

You should use the method Run VI, if you want the VI in the 'Run Mode' without actually running (like ctrl-m), I have no idea how to do that.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 3
(2,927 Views)
One workaround I've found, that seems a little strange, but works, is to temporarily set the VI to be reentrant (if it isn't already), and then to open a second hidden copy in the background. There's a property node for a VI called Execution >> Is Reentrant that will help with this. Because LabVIEW has two instances open to the same VI, it forces the VI to be in Run Mode. Just make sure to close both the references when you're done with the VI.
Message Edited by Jarrod S. on 02-02-2009 11:59 AM
Jarrod S.
National Instruments
0 Kudos
Message 3 of 3
(2,913 Views)