LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Many Queued SM in one Timed loop Vs Many Timed loops

Solved!
Go to solution

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

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 2
(2,619 Views)
Solution
Accepted by topic author MogaRaghu

@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).

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 2 of 2
(2,590 Views)