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 !!
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?
hello gerdw ,
i need to update simultaneously in main VI also . so, I have to go for global variable ?? am I right?
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
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.
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 !