LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from text file multiple times

Solved!
Go to solution

Hi!

 

Inside my main VI, I read settings from the same text file like 4-5 different places (some inside sub VI's).  This is also inside a while-loop that is delayed about 0,5 seconds.  The text file contains about 50-100 lines depending on the settings.  My question is if this can make the program unstable or loose it's performance??? 

 

Is it better to drag wire in all around the VI and subVI's ??

 

Best regards

Martin 

0 Kudos
Message 1 of 4
(2,319 Views)
Solution
Accepted by topic author mojeda

Simple way is to use functional global.

Read text file at the start of the program, store it in Functional global.

Use it to read setting anywhere anytime...Smiley Wink

If you don't know about functional global here is the link.

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

Thanks!

 

I will look into that....and clean up my VI.  

Will your solution be better on preformance??

0 Kudos
Message 3 of 4
(2,290 Views)

Yes. I think it is.

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