LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get Powerpoint to terminate from a running VI ?

I have deveopped a sub vi (see below) to run a power point presentation. Everything works fine except the last step. Although I invoke the method to quit powerpoint, powerpoint does not terminate until I terminate the top level VI that iniatiated the process. If I run the sub VI by itself powerpoint terminates at the completion of the VI.
0 Kudos
Message 1 of 3
(2,946 Views)
I looked at your VI and you have a lot of references that you do not close. I think that may be part of the problem. I know that you have an application reference that you open at the beginning of the chain and then close another at the end of the chain. Maybe if you make sure that they are both closed?

Let us know how it turns out.

Bob Y.
0 Kudos
Message 2 of 3
(2,946 Views)
Hi,
if you made use of the error terminals, you would see the quit invoke node has a null refnum as input, therefore PP doesn't quit because of the error.
I slightly modified your vi by wiring the application refnum opened at the beginning on the input of the Quit invoke node; this solves the problem.
But I suggest you to fix your vi by making a proper use of the error terminal on all the invoke/property nodes; this is very helpful for debugging; furthermore you should close all the open refnums at the end of execution as stated in the previous answer.

Hope it was helpful,

Alberto
Message 3 of 3
(2,946 Views)