LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call a text file from Labview program

If there were more than 5 stars to give, I would award them to you for answering questions when you're not at work.
0 Kudos
Message 11 of 26
(2,955 Views)

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

0 Kudos
Message 12 of 26
(2,956 Views)
Did you read my post?
0 Kudos
Message 13 of 26
(2,947 Views)

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

0 Kudos
Message 14 of 26
(2,945 Views)

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.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 15 of 26
(2,936 Views)

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

0 Kudos
Message 16 of 26
(2,925 Views)

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.

0 Kudos
Message 17 of 26
(2,927 Views)
Sorry about that here you go.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 18 of 26
(2,916 Views)

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

0 Kudos
Message 19 of 26
(2,911 Views)

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

0 Kudos
Message 20 of 26
(2,905 Views)