08-16-2011 10:05 AM
@Mark Yedinak wrote:
Therefore we chose this method to allow the low level modules to fire off messages. It will do so whether anyone is listening or not. In fact, the lower level code doesn't care. THis approach is very flexible and it really decouples the functionality from the UI. Yes, there is some overhead associated but it does provide a very versatile and flexible architecture.[..............
Yup- my thoughts exactly! versitale, component based, High reuseability, Nice decoupling, .... Looking forward to the nugget and link to the slides (I missed NI Week again)
08-16-2011 10:40 AM
@Jeff Bohrer wrote:
BA-
[...] _ but have you considered the simple expediant of using a subpanel to a vi that has 1 string control visible ? Wire the rest as an AE BUT use the terminals rather than a SR. Place the sub.vi's FP in a subpanel on the GUI and BAM! a "nearly 0 overhead" method to write/read a GUI object since all the overhead is in the call to open the FP in a subpanel.
Very good idea for this type of isolated indicator! No, I haven't thought of it. It works great. Gives me the willies because its simplicity seems so akin to writing to multiple locals, but it isn't.
08-16-2011 10:44 AM
@broken Arrow wrote:
@Jeff Bohrer wrote:
BA-
[...] _ but have you considered the simple expediant of using a subpanel to a vi that has 1 string control visible ? Wire the rest as an AE BUT use the terminals rather than a SR. Place the sub.vi's FP in a subpanel on the GUI and BAM! a "nearly 0 overhead" method to write/read a GUI object since all the overhead is in the call to open the FP in a subpanel.
Very good idea for this type of isolated indicator! No, I haven't thought of it. It works great. Gives me the willies because its simplicity seems so akin to writing to multiple locals, but it isn't.
And--- (BONUS) since the subpanel is in scope of the GUI FP you ARE registered for events! (well, most of them I seam to remember there are a couple that are not avalable for subpanels like panel cose?)
08-16-2011 10:47 AM - edited 08-16-2011 10:48 AM
Jeff....... Micro-Nugget?