LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto open spreadsheet at end of Vi

Solved!
Go to solution

Hello. I would like to know if it is possible for the .csv to open immediately after Vi has finished? The filename for the spreadsheet is already decided prior to test. It will be running on PC using Windows 7, if that matters. Thanks much for your time.

0 Kudos
Message 1 of 5
(3,376 Views)
Solution
Accepted by topic author ceilingwalker

For others who see this thread, the password for his VI is "2015"

 

Do you want to just open the file in its default program? If so, add this in at the very end of your code (after the loop has finished, this should run):

The path input should be the path for the file to be opened. This essentially just uses the command line to open the file, so Windows decides how to open it.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 5
(3,367 Views)

One simple way to do it would be to call excel with the command line, something like this: excel.png

Message 3 of 5
(3,360 Views)

Use the System Exec to call the file.  Windows will open it with whatever it thinks is the default application for the file type.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(3,344 Views)

@James.M wrote:

For others who see this thread, the password for his VI is "2015"

 

Do you want to just open the file in its default program? If so, add this in at the very end of your code (after the loop has finished, this should run):

The path input should be the path for the file to be opened. This essentially just uses the command line to open the file, so Windows decides how to open it.


PERFECT! That's exactly what I was looking for. Thank you guy's for much for your wonderful support. Smiley Very Happy

Sorry for not posting the password. Yet another stupid mistake. Thanks again.

0 Kudos
Message 5 of 5
(3,318 Views)