cancel
Showing results for 
Search instead for 
Did you mean: 

2 parallel state machine

SOLVED
Michael.Koppelgaard
Active Participant

Re: 2 parallel state machine

I have actually l watched a lot of videos from NI. Also followed at 5 days course in Denmark. Here we only briefly talked about queues. I try to search for some info, but might return with more questions

 

Norbert_B
Proven Zealot

Re: 2 parallel state machine

Reentrant VIs and subpanels has some special rules which concern the way how you spawn each instance. So there are setups where the subpanel will not work, in others it will.

As Gerd pointed out, my two suggestions are not the only possible way to solve this request.

Queues do work well in such setup as well, so maybe you find that more intuitive than working with subpanels or VI Server.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Norbert_B
Proven Zealot

Re: 2 parallel state machine


@Michael.Koppelgaard wrote:

[...] I try to search for some info, but might return with more questions

 


That's what this forum is about Smiley Wink

 

I do recommend to create a new discussion thread though if you have questions on specific technologies (e.g. queues) rather than to create a long, single monolithic discussion here....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
mikeporter
Proven Zealot

Re: 2 parallel state machine

You might want to check out my blog. I have been talking about a lot of the issues that you are raising for the past year. Reentrancy, data passing, state machines, all that stuff.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Michael.Koppelgaard
Active Participant

Re: 2 parallel state machine

I would very much like to. Have you got a link to what could be useful for me

(and do you know how to chance the awful green face that is connected to my profile?)

mikeporter
Proven Zealot

Re: 2 parallel state machine

Message contains a hyperlink
Sorry, I should have said, but the link is in my signature block.

Or HTTP://www.notatamelion.com/

Sorry about the awful green face too... Check in you profile, there should be a way of selecting a new awful face, or entering a link to an awful face that is somewhere online.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Blokk
Trusted Enthusiast
Solution

Re: 2 parallel state machine

Message contains a hyperlink Message contains an image Message contains an attachment

Hello,

 

I really like to use UserEvents to communicate between subVIs and a main VI. Here you will find a nice quick tutorial about Events:

http://www.walkingthewires.com/2015/07/20/something-happened-events-in-labview/

 

I just put together a small very draft example how to launch two clones of the same subVI, but with different ID values (beside this, you can also feed in different COM ports, device IDs, etc...). I used strings for commands to be quick, but some people prefer Enums for case structures.

Anyway, I hope this example will give you some idea how to do this intercommunication using Events. I attached the mini project as a zip file (LV 2013 version).

 

MAIN_BD_UserEvents.png

Michael.Koppelgaard
Active Participant

Re: 2 parallel state machine

THANKS FOR YOUR EFFORD. Just what I need!

I will start looking at your example at once, and might return with questionsSmiley Very Happy