Hello Matt,
thanks for the links. Emphasis seems to be on the Event triggered model and FSMs to save on CPU time.
But if you really look at my application I want to structure it like this : ( In fact it is currently running like this )
1. The Main.vi has the menu to select from 7 different sub VIs. The Main also has a 50ms timed loop within which are the DAQmx functions for DI, DO,AI and AO. These functions update a set of Global variables once very 50ms.
2. Out of the 7 sub VIs, only 3 have use for these hardware related variables.
3. When one of the above three VIs are called by the Main, the sub VIs get or put values into the Global variables, as per program demands.
Thus the machine sequence is controlled by these sub VIs via the Globals. Am I doing it right or its outright gibberish ?
While something in me tells that this way of passing variables through Globals is far from optimum, I can't do better as Im coding on LV only for the last 2 weeks or so. For a person like me who is reasonably proficient in assembly and VB programming, this graphic environment is too colorful to digest fast!
Thanks for your time.
Regards
Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.