LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interactive file path

Solved!
Go to solution

Hi,

 

I am developing a VI that need open an ASCII file. The whole VI is contained in a While loop, except the file path VI (otherwise, the user is continuously asked which file he wants to open ...), but I would like to be able to change the ASCII file I want to read while running. How can it be done?

 

Thanks a million.

0 Kudos
Message 1 of 4
(2,687 Views)
Solution
Accepted by topic author isaac.fr

@isaac.fr wrote:

I am developing a VI that need open an ASCII file. The whole VI is contained in a While loop, except the file path VI (otherwise, the user is continuously asked which file he wants to open ...), but I would like to be able to change the ASCII file I want to read while running. How can it be done?


Use STATE MACHINE. And you can have different states corresponding to:

1. Selecting a File

2. Reding File

3. Updating GUI

4. Blah Blah

5. Blah Blah

.

.

.

and last Exit state.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 2 of 4
(2,684 Views)

See this.. Hope this will help..

 

As soon as file will change inside while loop you can perform the read operation

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 3 of 4
(2,676 Views)

Hello Isaac,

 

I don't know if you have access to Self Paced Online Training, but this also might prove useful:
http://ni.com/self-paced-training

 

If you don't have an Active SSP, then the following pages will also prove to be useful:

https://learn.ni.com/learn/article/labview-tutorial (maybe too basic)

 

 

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 4 of 4
(2,652 Views)