LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable issue

Here is what i want, when i run the main.vi i want the data to be there in the background in data.vi (without pressing the data.vi button), even if i open the data.vi file from background (please referto the images at top)

0 Kudos
Message 21 of 28
(122 Views)

Hi LaxTe,

 


@LaxTe wrote:

when i run the main.vi i want the data to be there in the background in data.vi (without pressing the data.vi button), 


So you want to read some data file at the very beginning of your main.vi to fill the "data to be here"!?

 

Did you implement your requirement in some code?

 

(Or do you need just some "fixed" default data? Did you set those default values in your controls?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 22 of 28
(116 Views)

actually i want to display the data i am having in data.vi in main.vi display but when i run the main.vi the data.vi's data is not available until and unless i  press the data.vi button 

 

0 Kudos
Message 23 of 28
(113 Views)

Hi LaxTe,

 


@LaxTe wrote:

actually i want to display the data i am having in data.vi in main.vi display but when i run the main.vi the data.vi's data is not available until and unless i  press the data.vi button 


So you implemented my suggestion from message #16 and still you cannot show the "data.vi's data" in main.vi?

 

Unfortunately there is no new code supplied by you since message #16

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 24 of 28
(109 Views)

The problem witth "data.vi" is that it has a open front panel and a foreground function. 

And it has an while loop that runs until a button is pressed. 

0 Kudos
Message 25 of 28
(100 Views)

If you want to run your data.vi in parallel to you main.vi, the you need to start you data.vi asynchron from the main.vi. 

 

Look at the examples in LabVIEW on "Start Asynchronous Call".

0 Kudos
Message 26 of 28
(81 Views)

Yes, you are right that i haven't shared the code after implementing it as it didn't worked. 

0 Kudos
Message 27 of 28
(37 Views)

Okay, let me see how this works out.

0 Kudos
Message 28 of 28
(36 Views)