LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 parallel state machine

Solved!
Go to solution

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

 

0 Kudos
Message 11 of 18
(2,017 Views)

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.
0 Kudos
Message 12 of 18
(2,009 Views)

@Michael.Koppelgaard wrote:

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

 


That's what this forum is about 😉

 

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.
0 Kudos
Message 13 of 18
(2,005 Views)

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.
0 Kudos
Message 14 of 18
(1,999 Views)

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?)

0 Kudos
Message 15 of 18
(1,995 Views)
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.
0 Kudos
Message 16 of 18
(1,986 Views)
Solution
Accepted by Michael.Koppelgaard

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

0 Kudos
Message 17 of 18
(1,957 Views)

THANKS FOR YOUR EFFORD. Just what I need!

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

0 Kudos
Message 18 of 18
(1,935 Views)