01-19-2020 04:34 AM
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.
01-19-2020 08:11 AM
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?
01-19-2020 08:14 AM
Sorry, but I can't open RAR files. Use a zip file instead.
01-19-2020 11:35 AM
01-19-2020 11:51 AM
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 ?
01-19-2020 06:59 PM
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
01-20-2020 08:36 AM
You're making things more complicated than necessary. Property nodes are growable. I've cleaned up on of the VIs for you.