10-29-2025 06:31 AM
so when i run the project and run the main file until and i unless i click on data button the data doesn't load in file even though the data.vi is running in the background the data doesn't show any dta if you open it without clicking on button i want the data to be shown when the main file is running
10-29-2025 01:05 PM - edited 10-29-2025 01:15 PM
10-30-2025 12:45 AM
main file is named main.vi inside project
10-30-2025 05:20 AM
I think you are missing some concepts.
Your data.vi is NOT running. It is ready to run, but not running in the background.
You call the vi in the event case for a button on you main.vi.
When your click on that button, the event will be fired, and the event case in the event structure will be executed.
In that case, your data.vi will be executed, but only at that time.
if you want a code to run in the background when you start your main.vi, then you need to program it to do so.
10-30-2025 06:00 AM
what is the best way to get the data, when main.vi is running and before executing it via button ?
10-30-2025 06:29 AM
Hi LaxTe,
@LaxTe wrote:
what is the best way to get the data, when main.vi is running and before executing it via button ?
Call the subVI once at initialization stage…
11-03-2025 01:56 AM
Nope that didn't worked as it open the vi any other way ?
11-03-2025 02:00 AM
Hi LaxTe,
@LaxTe wrote:
Nope that didn't worked as it open the vi any other way ?
What is "that"?
What is "it"?
What "opens the VI"?
What is "any other way"?
I really don't understand what you are writing…
11-03-2025 03:37 AM
That - is your suggestion earlier didn't work,
it - the suggestion you suggested
when i put the subvi in main.vi it open the data.vi when i run it.
any other way - any other suggestion you have better than that (your earlier suggestion) or can you help me by sharing the code with changes so it clarifies your earlier suggestion works, i am new to learning labview, kindly pls help
11-03-2025 03:53 AM
So you want functionality that is part of you data.vi ?
But you can't use your data.vi, as it is programmed, by you, to open it's front panel.
Why don't you make a new vi that has the function of reading data ?