12-08-2017 05:55 AM
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 !!
12-08-2017 06:02 AM
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?
12-08-2017 10:36 PM
hello gerdw ,
i need to update simultaneously in main VI also . so, I have to go for global variable ?? am I right?
12-08-2017 10:56 PM
12-08-2017 10:58 PM
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
12-08-2017 11:02 PM
Hello altenbach ,
Thanks in advance. so, what was the remedy for this? post your ideas & logic . !!
12-08-2017 11:06 PM
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.
12-09-2017 03:24 AM
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 !
12-09-2017 03:46 AM
12-09-2017 04:41 AM
hi Gerdw ,
i attached a main screen and code .
post your guidelines and tips
thanx in advance!!