LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable issue

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 Screenshot 2025-10-29 165820.pngScreenshot 2025-10-29 165831.png

0 Kudos
Message 11 of 26
(187 Views)
  • You again failed to down-convert to LabVIEW 2020 before attaching.
  • You did not specify the name of the "main file"
  • Why use rar instead of zip? (true modern windows versions know how to open rar files, but with older version some might be out of luck)
0 Kudos
Message 12 of 26
(157 Views)

main file is named main.vi inside project 

0 Kudos
Message 13 of 26
(141 Views)

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. 

0 Kudos
Message 14 of 26
(122 Views)

what is the best way to get the data, when main.vi is running and before executing it via button ?

 

0 Kudos
Message 15 of 26
(118 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 26
(117 Views)

Nope that didn't worked as it open the vi any other way ?

 

 

0 Kudos
Message 17 of 26
(56 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 26
(53 Views)

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 

0 Kudos
Message 19 of 26
(41 Views)

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 ? 

0 Kudos
Message 20 of 26
(37 Views)