05-27-2009 09:53 AM
Hallo everyone,
I´ve an event structure in which a SubVI is called by VI server. I don´t want the main VI to be frozen so I turned the wait until done off.
But the SubVI is just called and in edit mode. How can I call the SubVI and run it automatically?
Regards,
Wilbur
Solved! Go to Solution.
05-27-2009 10:02 AM
Hello wilbur,
are you sure that the target VI is a reentrant VI? If not you should get an error from Open VI Reference. The Option 8 is for running reentrant VIs.
05-27-2009 11:55 AM
Hi Wilbur,
Good afternoon and I hope your well today.
Thanks for the post.
The VI Property, Exec.RunOnOpen isnt required - if you use VI Server this property is ignored - and your using the Run VI method anyways.
I feel your issue is with the configuration of your Open VI Reference. If you set the options input to Zero (0) does it work? It does for me. And if I said the input to 8, it loads in edit mode.
The issue I think is in the detail of the Open Reference Content Help. When the reference is destroyed in the VI Server VI the called VI no longer runs.
For example, I have a small delay between my RunVI (wait until done - false) and the close reference VI. After the delay my called VI stops.
What results are you trying to achieve? Are you trying to call a reentrant VI? If so, please take a look at the following example
Load and Call Multiple Copies of a SubVI using VI Server
http://zone.ni.com/devzone/cda/epd/p/id/4192
Please let me know how this information finds you,
05-27-2009 01:12 PM
Hi James,
thanks for ur advice! It works well with the option set to 0. Luckily I´m not using a reentrant VI in the case.
Anyway, the example in ur link doesn´t work on my LV 8.5.
Wilbur
05-27-2009 03:45 PM
Hi Wilbur,
Good evening and I hope your well.
Thanks for your prompt reply.
I am glad its all working now.
Yeh the example is in a older version of LabVIEW, I managed to open it in LabVIEW 8.2 - I will resave it tomorrow (When I am at a machine with LabVIEW) and post it, if your interested?
Please mark the forum as resolved with the new feature!
Thanks 😄
12-12-2011 04:39 PM
Hi all:
I have this configuration:
manually execute process 1, then there is a button that opens (when click BTN-A-HISTORICO) the process 2 and process 1 is minimized and still running.
Then the process 2 opens in edit mode.
I put the 0 in the options in the Open VI Reference but i don't understand why doesn't work.
HEEEELLLPPP
I'm using labview9
process 1
process 2