02-20-2015 03:13 PM
Here's my Brat VI's presentation.
I'll also be adding the demo VI's here too.
Chris
02-20-2015 03:32 PM
UPDATED
Here's the multicolum listbox example I presented. So this features a "top level" VI with a MCLB on the front panel. In addition this top level VI also launches 2 asynchronous sub VI's both of whom also have MCLB's on their front panels.
I then use a single renentrant brat vi to register for the mouse down event on the MCLB's.
See how each brat is responsible for a single control instance, this allows behaviour to be controlled accross and entire application by reusing a single Brat VI.
Attached as MCLB.zip
UPDATE
I've also atached Demo_1.vi and Modality Setter. vi , these highlight the use of Set FP to Largest decoration VI (this is a dependency you will need to download using VIPM from OpenG) and illustrate how a Brat VI could provide certain behaviour based on the execution status of it's parent.
Any questions, just post a reply.
02-20-2015 03:44 PM
Thanks matey, and further to our discussion about control coupling I dug out some text on pretty much this issue. And it transpires all your points were spot on!.
Just to wrap it up I'll include them here (the book is Composite Structured Design by Glenford J Myers 1978 <-- it's a forgotton classic on software design)
and the second page discusses the trade-off associated with this type of module
37 years and still applicable good job Glenford!
Steve
Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop