10-20-2010 12:35 AM
LV 2009 + Win7 + PCI 6229 card.
There is a need to control 4 different equipments from a single code. The equipments are identical but have two modes of operation which can happen at random.
Each equipment has its own Queued State machine ( QSM) which is inside of a 10ms Timed Loop. So which of the following options is best ( efficient ) to handle this ?
A. 4 different QSMs all running inside of a single 10ms timed loop.
B. 4 independent 10ms timed loops each handling one QSM. The timed loops have different priority assigned to keep things in order.
Thanks
Solved! Go to Solution.
10-24-2010 08:58 PM
@Raghunathan wrote:
LV 2009 + Win7 + PCI 6229 card.
There is a need to control 4 different equipments from a single code. The equipments are identical but have two modes of operation which can happen at random.
Each equipment has its own Queued State machine ( QSM) which is inside of a 10ms Timed Loop. So which of the following options is best ( efficient ) to handle this ?
A. 4 different QSMs all running inside of a single 10ms timed loop.
B. 4 independent 10ms timed loops each handling one QSM. The timed loops have different priority assigned to keep things in order.
Thanks
And undoubtedly the right answer is option (A). I tried to simulate both options on a P4 machine with 3 GB ram and the option (B) was struggling to run particularly when starting up. And randomly stopping for a few seconds in between consuming 100% of processor time.
So I go with Option (A).