LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open different files depending on the case

Solved!
Go to solution

Hi

 

I have 3 cases within a case structure.

 

 

When I select a first case, I need a certain VI to start.(I have done this by just dragging the VI within that case)

 

But when I select the 2nd case, I need to an executable file to pop up, but I am not able to drag it within the case structure beacuse when I select something other than a than a vi, it gives me the follwing error.

 

LabVIEW: File is not a resource file

The file Test.exe cannot be loaded.

 

Also, I need to open a text file, if I choose the 3rd case. I am not able to this also, as I end up getting the same error.

 

Can someone help me to solve this problem?

 

Thanks in advance

0 Kudos
Message 1 of 3
(2,734 Views)
Solution
Accepted by Mr_Miagi

To call an executable you will have to use "System Exec.vi"

To open text file you can use same "System Exec.vi" and give path of text file to open to "Command Line" input of the vi.

 

Read help file so as to understand the function of "System Exec.vi"

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 2 of 3
(2,731 Views)

As mentioned use the system exec function as shown here and here

Message 3 of 3
(2,719 Views)