LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I start an other program for example all 3 Minutes

Dear Stevi,
Sorry it's me again. I have problem with changing the actuel MS Office version to MS Office 2000. If I have understand you, you mean I had to change ActiveX class. In my Labview 7 you can't change the VI server class. I have no idea which class i have to select.
If I change something the VI don't run anymore. Are there any other things to change too ? I hope you can help me again.

Stevi
0 Kudos
Message 11 of 13
(652 Views)
Dear stevi,

I thought it's all to change the active-X server. I had made a test on a collegues machine with LV 7 and Office 2000 (on mine in the office and at home I have Office 97). There seems to be a lot of changes in the object model of PPT.

First we are copying the VIs to the machine. Then we made a mass compile in LV 7. With right click on the control we reselected PowerPoint._Application as the server class.

Then we run the slideshow_close_PPT VI. We have seen PPT starting the presentation but it was closed immediatly. We discovered by setting breakpoints that the "Run" method of PPT changed, in Office 97 it waited until the presentation was ready in 2000
it will come back when the presentation was started. We added a while loop containing a property node with the reference coming from the "Run" method. We choose the property "Active" which gives back always 0 but will generate an error when the presentation ends.

Another difference is PPT itself. In 97 you can see only one entry in the task bar. In 2000 there are two entries, one for PPT and one for the presentation. We are able to close only the presentation window and not also the PPT window.

I don't have any deeper knowledge of the Active-X interface of PPT and on the machine we made the test the VBA help for PPT was not installed. So I'm sorry that I cannot give you more help in this case.

I will advise you to make a new posting asking precisly for PowerPoint 2000 and include a link to this discussion into the question that someone else can see how far we came.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 12 of 13
(472 Views)
Hi stevi,

I have found another solution. This one has the disadvantage that which each presentation PowerPoint will be started. If this will not have any side effects on your LV application we have found the solution. This solution uses the ShellExecute call in Windows API to start a application which is associated with a file extension (the same mechanism Explorer uses when you double click a file).

I have tested this with Win XP Prof, LV 7 and Office 2000.

Feel free to use the ShellExecute.vi in your own projects. It is provided "as is".

If the presentation ends in a black slide open PowerPoint go to Extras >> Options and uncheck a box named something like "End presentation with black slide" (I have a german version so I don't know the e
xact english text).

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 13 of 13
(472 Views)