LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call and open an external excel file with system exec vi

Solved!
Go to solution

Hello!

 

I would like to know how I could call and open an external excel file with the system exec vi. I am able to call a txt file, however i cannot do it with an excel file...

 

Thanks a lot in advance.

0 Kudos
Message 1 of 7
(4,657 Views)

Hi jess,

 

when Excel is the default program associated with Excel files it should open automatically when you try to "start" an Excel file via SystemExec!

 

What have you tried so far?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(4,653 Views)

Why would you want to do that?  What version of LabVIEW are you running?  What are you trying to do?

 

Bob Schor

0 Kudos
Message 3 of 7
(4,633 Views)
Solution
Accepted by topic author jess1006

It should work just like any other file, it opens it in the default program for that file extension as if you double clicked it.  Here is an example if code I use.

 

Example_VI_BD.png

Message 4 of 7
(4,627 Views)

Thank you!

What function are you using just before the system exec vi?

I can´t find it..

 

So far i have tried writing in the command line the complete path including the name of the excel file

0 Kudos
Message 5 of 7
(4,614 Views)

That image is a snippet, it is executable code, no need to recreate it.

 

http://www.ni.com/tutorial/9330/en/

0 Kudos
Message 6 of 7
(4,607 Views)

Thank you so much for your help Hooovahh

0 Kudos
Message 7 of 7
(4,603 Views)