Showing results for 
Search instead for 
Did you mean: 

Xy graph not updating inside the timeout case

Hello all, 

I have attached a VI ( sub vi ) which acquires continuously a data from the motor and plot it over the XY graph.  I have called that sub -vi inside the Event structure timeout case. In Subvi continuously acquires , running and plotting on Graph  ( checked ), but in Main VI, I  didn't get the output and not even data is going out ( checked with probes )

i have a missed a silly logic something here . post your ideas 


Thanks in advance !! 

Download All
0 Kudos
Message 1 of 13

Hi bhuvanesh,



The graph will get data once the subVI has finished.

The subVI finishes once you press its STOP button.

Is the frontpanel of that subVI even open/visible when you execute your main VI? Are you even able to press the STOP button?

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13

hello gerdw , 

i need to update simultaneously in main VI also . so, I have to go for global variable ?? am I right?

0 Kudos
Message 3 of 13

@Mrtechie wrote:

am I right?


0 Kudos
Message 4 of 13

Hello gerdw , 

ya, i didn't follow the data flow .. ! I have update continuously & simultaneously in Main Vi also .when subvi is running . is there is anyway??


 or i have to put the full subvi contents inside the timeout case 

? 😞

0 Kudos
Message 5 of 13

Hello altenbach , 

Thanks in advance. so, what was the remedy for this?  post your ideas & logic . !! 

0 Kudos
Message 6 of 13

Hard to tell without seeing all code, bu you should probably take a few basic tutorials and start from scratch. The current code is too convoluted and entangled.


Define exactly what the each part of the code should do at any given moment and what the user should see as a function of program state.

0 Kudos
Message 7 of 13

Hello altenbach ,

I already attached a VI. I need to acquire the analog data continuously from the servo motor until the user quits and plotting over an XY graph using Queue. so I did it and tested. 

 only thing I am asking is where i have to put this VI contents ...?? inside a timeout case of event structure  ???


I wrote this program using event structure architecture 


thanks in advance !


0 Kudos
Message 8 of 13

Hi bhuvanesh,


when you wrote this VI then you should have a plan how it should work...

Things done continuously should have their own loop.

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13

hi Gerdw , 

 i attached a main screen and code . 

post your guidelines and tips

thanx in advance!! 

Download All
0 Kudos
Message 10 of 13