02-24-2006 11:26 AM
02-24-2006 11:38 AM
Thanks Darren it worked on opening notepad.
But somehow I couldn't find the application file for opening adobe reader (I assume the name would be like"adobe.exe")
Veldmous: Can you please telll me the path for opening the adobe application file?
and Wiebe: Thanks for sharing this shellexecute.vi program with us. I will try this later, but the simplest, the first.
bj
02-24-2006 11:41 AM
02-24-2006 11:43 AM - edited 02-24-2006 11:43 AM
Check out Dennis' previous suggestion...there's a VI in help\_browser.llb called "Open a Document on Disk.vi" that will open a PDF manual through Adobe Reader. It uses several different methods to try to accomplish this...getting the registry entry for Reader, trying DDE, trying the System Exec.vi...when I ran it with Execution Highlighting enabled, it looks like it ended up using System Exec.vi with a path based on something it found in the registry.
Hope this helps,
-D
P.S. - Turns out the EXE it runs is Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe, to answer your previous question.
Message Edited by Darren on 02-24-2006 11:44 AM
02-24-2006 11:48 AM
The runapp vi. that i posted does pretty much the same thing. it opens any application as long as that app already has something to "open with" but if is not already defined you will get the windows popup to "open file with". i like the shell vi also that's cooooooool.
Cheers.
02-24-2006 12:25 PM
Sorry Dennis, I didn't see your post when I submitted the last post. I tried to run the vi in _browser.dll but the document wouldn't pop up. And I cannot open the block diagram, it's password protected. (Can we have the password?)
Wiebe: ShellExecute.vi works great! thanks a lot.
Joe: I couldn't open your file because I am using LV 7.1 and yours is LV8.0. Is is possible that you can change it to LV7.1? thanks, I am new in LV, and would like to learn different skills.
bj
02-24-2006 12:37 PM
I have no problem opening a pdf file with this VI. Does Acrobat start and not show a file or does Acrobat not start at all? This VI is used to open the LabVIEW Bookshelf from the Help menu so if you can run that, there should be no problem with specifying your own pdf file.
I have no idea why NI password protected it. In older versions of LabVIEW it wasn't.
02-24-2006 12:49 PM
02-24-2006 01:20 PM
I don't know why it's password-protected either...all it does is call Open a Document on Disk.vi. Seriously...that's the only thing on its diagram. Maybe the version of the VI for Mac/Linux does other, more "secret" things. 🙂
-D
02-24-2006 02:40 PM
Hi,
since this problem is related to the former question, so I will continue this post.
I put a button on the front panel to call for the text file ( I am using Darren's cmd line to call). It worked nicely. But now the problem is that if I don't close the text file, the program doesn't behave well. More specifically, I have a stacked sequence structure, and this system exec.vi is in one of the frame, so if I don't close the text file window, the program will not go to the next sequence. Is there a way that I can just force the program to go to next sequence after waiting for a certain period of time?
bj