LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequential execution of event structure?

Solved!
Go to solution

Chazzzmd wrote:

If we treat the Test 1 - Test 10 as states and I already have the test execution themselves as state machines (Test 1 = state machine, Test 2 = state machine, etc.) I would have nested state machines correct? I've never done that before, are there any draw backs? Is this common? Things to remember? Links to literature you recommend?


There is nothing wrong with having a state machine inside of a state.  I would make each test a subVI to make it easier to handle.  As long as you can still handle errors, messages, timing, etc inside of each of your Tests, you'll be just fine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 19
(1,127 Views)

@Chazzzmd wrote:

I believe the equal to 0? functions supplies the logic for dynamically building ...


Where exactly is an "equal 0?" function?

0 Kudos
Message 12 of 19
(1,112 Views)

 I meant equal TRUE, sorry.

0 Kudos
Message 13 of 19
(1,107 Views)

What would happen if you would remove the "equal true?" and wire directly to the case structure?

0 Kudos
Message 14 of 19
(1,103 Views)

I'm going to assume that's rhetorical 😉 . I haven't executed the code example yet, still building. A code snippet would of been great 🙂 But, hey I'm not complaining.

 

Chazzzmd

0 Kudos
Message 15 of 19
(1,101 Views)
Solution
Accepted by Chazzzmd

@Chazzzmd wrote:

I'm going to assume that's rhetorical 😉


Nothing retorical. An "equal TRUE" comparison simply returns the same value as the other input wire to the comparison, so it is a WEQ, or "wire equvalent code". Replacing it with a plain naked wire would give you the exact same functionality. 😄 If I see constructs like that, the rest of the code is probably also questionable. 😮

 

Here's a quick example that rattles through the states selected earlier. For this purpose, you could consider the "state progress values" as the substates of each state selected from the listbox. See if it makes any sense.

 

0 Kudos
Message 16 of 19
(1,087 Views)

"Replacing it with a plain naked wire would give you the exact same functionality."...........that's why I said rhetorical 🙂

 

Thanks for the example vi you attached. I will give it a look. I'm always on the lookout to learn something new. You Knights are great for that. I have been able to get apok's upper example to work to my needs, I'm testing it out now. Will post back with update/solution marked.

 

Chazzzmd

 

0 Kudos
Message 17 of 19
(1,082 Views)

Altenbach,

 

Makes perfect sense, awesome vi. Thanks for the link in the BD. I swear I tried that search string (Sequential execution of event structure) in forums and examples on ni.com this weekend. Oh well.

 

Thanks again for your (and everyone's) attention to this matter.

 

I have to mark this as the solution since it is specifically the answer to my posted question, although Apok has an acceptable solution just in a different way.

 

Thanks again,

 

Chazzzmd

0 Kudos
Message 18 of 19
(1,072 Views)

@Chazzzmd wrote:

Thanks for the link in the BD. I swear I tried that search string (Sequential execution of event structure) in forums and examples on ni.com this weekend. Oh well.


The link just points to our discusion here so I can find it later when looking at the VI. 😄

0 Kudos
Message 19 of 19
(1,065 Views)