02-05-2016 09:50 AM
You need a Run Method on that wire now that you have inserted the subVI in the subpanel.
(What does the subVI with the T on it do in that same event structure?)
02-05-2016 09:52 AM - edited 02-05-2016 09:54 AM
Sorry, I cannot have a too detailed look how to do it today, but I will try to program a possible example.
Actually does it work now as you want? If you need faster help, upload your main vi and the subVI, so someone else might can help too.
Just a few comments for the picture: you want to load the two instances of the subVI into the two subpanel by the user? If so, it looks ok. However:
So I repeate, sorry, today i have a very hectic day, I really advice you to upload your actual VIs, and explain the details, what works, what not, and what is your exact goal. You will get help from others too much faster!
Good luck & have nice weekend!
EDIT: as RavensFan wrote: you need the run method, and not needed the subVI, but as I see you fixed it. But please, do not post pictures, post snippets or your VIs! (snippet: http://www.ni.com/tutorial/9330/en/ )
02-07-2016 09:44 AM
Ravensfan:
How can I do that?
Blook:
I also had a busy weekend or at least at weekend doing other things than coding. Just 2 quick questions: Why not use Flat Sequence structure? Is it because I don’t get the info I will get user error lines?
And how to use latch mechanical action? What will you gain using this in this situation ? I’m aware of the 6 settlings for a button
Thanks for the snippets advice. Didn’t know about this smart function.
02-07-2016 09:59 AM - edited 02-07-2016 10:03 AM
In general, it is a Good Idea to have an Error Line running through the lower corners of your sub-VIs, as is the case with most LabVIEW Functions on the Functions Palettes. This being the case, enforcing a Serial order by putting VIs serially on the Error Line is (to my eye) more visually appealing (and much more compact) than placing them in big, clunky, surrounding Flat Sequences. The only time I use a Flat Sequence is when I need to "order" a Function (such as a Timer) that does not have an Error line -- I often place it on/near the Error Line where it would go if it did have an Error Line Running Through It (there was a recent movie with a that title, or something close, recently) and surround it with a Flat Sequence Frame, tunnelling the Error Line through the Frame.
As for Mechanical Actions, the Latches (particular Latch when Released) lets the Boolean Control be "momentary" (it "pops up" when it is read so you don't have to "turn it off"). It is most commonly used in conjunction with the Event Structure's Value Change Event, with the Control being placed inside its Event case. Being in an Event Structure means that as soon as the Control is Released, its value changes, the Event "fires", the Control is read, and it "unsets" itself, all in microseconds without you needing to even think about it.
Bob Schor
02-07-2016 12:00 PM
@Michael.Koppelgaard wrote:Ravensfan:
How can I do that?
Look in example finder for "Multiple VI's in a Subpanel"
02-08-2016 03:40 AM
Thank you for your answers Bob and RanvensFan.
Bob: the first one correct, the second one wrong. But i both examples the numeric only increment with 1. If I understand you correct it should increment with 2 in last example because the event fires to times because the botton is not reset. Or ?
Bob :