LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke Node "Run VI" is not running VI

Solved!
Go to solution

Hi.  I have just imported a project that worked well in LV8.2 into LV2009 SP1 (both on the same Vista machine) and find it does not work.  I use an Invoke Node to launch a vi and the invoked vi does not want to run, code is shown in picture.

21814iAAF636E8EB730391

The "FP.Open" and "FP.IsForemost" do work, the FP does what it is told.  I have put probes on the parts of the invoked vi that would run first off and the probes show that nothing has happened.  Also I can run the invoked vi on its own and there is no problem, it executes as I would expect.

 

Any thoughts on how I might progress this issue would be appreciated.  Thanks.

Herbert Niesler
0 Kudos
Message 1 of 4
(2,787 Views)
Solution
Accepted by topic author herbert.niesler@emsolutio

Problem solved.  The vi I was invoking was also in a case statement in the vi doing the invoking.  The particular case was never ever executed.  It was my way of ensuring that the vi was loaded.  This worked ok in LV8.2 but not in LV2009.  I removed the vi from the case statement and then everything ran as it had previously.  Appears we have a difference in behaviour between the versions.

 

Now I just have to figure out how to make sure the vi being invoked is loaded when I load the invoking vi.  Not a problem in the App builder, but not as convenient in the development environment.   Smiley Very Happy

Herbert Niesler
0 Kudos
Message 2 of 4
(2,780 Views)

Drop a Static VI reference from the application palette, and drop your VI into that little helper.

That should load the VI into memory.

 

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 3 of 4
(2,770 Views)

Very nice, does the trick Smiley Very Happy .  Thanks for that.  There is always something new to learn.

Herbert Niesler
0 Kudos
Message 4 of 4
(2,764 Views)