LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution Order

Hi,

I want your help . I have 4 SubVI in a VI . the 4 SubVI run in Parallel . each SubVI have a State machine (Init /Sum/Multiplication/ Division/Quit) i want to execute the SUM state of each SubVI in Serie ( Empriente 1 :SUM / Empriente 2 : Sum / Empriente 3 : Sum / Empreiente 4 : Sum ) 

thank you You find the soft below.

 

0 Kudos
Message 1 of 7
(3,023 Views)

Hi Emna,

 

Thank you for attaching the VIs in your setup.

If you want parallel VIs to depend on each other for some order of execution of various steps, you'll need to implement some kind of communication between them.

 

I haven't tried using them, but a Rendezvous might be useful to you here with a little care. They can be found under the Synchronisation palette.

 

A solution using more common tools might be to instead look at using Queues and having 4 consumer loops (your Empriente VIs) receive instructions. You could then easily send them instructions in order, and by allowing some sort of return path for communication (perhaps a Notifier or another queue) you could wait until results were available.

 

I wonder however if this is the best system for your problem. Why do you need parallel VIs, and then require them to execute in series? Perhaps you could instead simply break the VIs up (Sum, Multiply, Divide etc) and then execute those in series each?

What are you really trying to do here?


GCentral
0 Kudos
Message 2 of 7
(2,966 Views)

Sorry, but I can't open RAR files.  Use a zip file instead.


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 3 of 7
(2,963 Views)

Hi  ;

you find below a ZIP FILE .

 

0 Kudos
Message 4 of 7
(2,943 Views)

Hi cbutcher, 

the given software is a model of another software . Now i Don't have the real software so i create a model to explaine the problem . i want to contrôle the execution order of multiple state machine and each state machine in a SubVI . can any one help me ?

 

0 Kudos
Message 5 of 7
(2,939 Views)

Hi Emna,

 

I recognise that the VIs you attached are not your real problem, and that they form a model problem that is hopefully similar.

However, I suspect multiple parallel state machines that depend on each other need a different model really.

 

You say you don't have the real software. Is this because someone else is writing it first?

 

To reiterate my earlier point, if you want separate VIs (state machines or otherwise) to depend on each other, you need some way to communicate the timing to them. A Queue with instructions might be possible, but depends more on your real system - why state machines, why 4, which bits are parallel and which are serial, are they always in the same order, etc


GCentral
0 Kudos
Message 6 of 7
(2,897 Views)

You're making things more complicated than necessary.  Property nodes are growable.  I've cleaned up on of the VIs for you.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 7
(2,802 Views)