LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple State Machine Vs Queued State Machine


@DFGray wrote:

... 

So how do LabVIEW classes help?  They can eliminate one or both levels of these case structures through the use of dynamic dispatch.  This is done as follows.  A parent class is created that is a generic command.  It has commands for each state.  For each actual command, a class is derived from the parent class.  There are VIs in the specific command class for each state.  A command is generated by creating the correct object for the current state, then calling the parent class command.  Dynamic dispatch will execute the code for the correct command.  The command execution loop is then reduced to a single command VI which dynamically dispatches based on the actual command and the current state.

 

...


These days, recertifying for CLA is a short exam. Prior to that I had to take the whole exam overa again for each recert. The last time I sat for the recert, I used exactly that approach where the behaviour was dicated by which dynamic dispatch ws used. The code fell together so quickly and easily that it hadly looked like the code did waht the exam expected!

 

Since it ws a CLA exam, I just had to specify the clases their children and the over-ride VI to hande the exceptions.

 

I BELIEVE it was the only LVOOP solution ever accepted for a CLA recert (since then the recert test has chaned).

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 13
(749 Views)

@DFGray wrote:

I am afraid I have still not made myself clear.  Keep asking questions and I will try to keep answering.

 


So kind of you !!

 

Anyway now it looks like I need to learn all about LVOOP . Like in life this process is never ending Smiley Sad

 

So i will brush up on the topic by some reading and get back here. With my questions.

 

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 12 of 13
(737 Views)

After so many years of this post I imagine that you have advanced a lot in your LabVIEW learning. But, giving a timeless response to your last post, I think the elegant solution to this old project of yours would be to use the QMH design pattern.

0 Kudos
Message 13 of 13
(64 Views)