minority Posted March 15, 2008 Report Posted March 15, 2008 I have numerous numeric controls whose related values are related (i.e. a change in one value causes a change in another based on the mathematical relations of the numeric values). Right now, I use event structures to handle the event in which one value is changed and calculate the new values of the other controls. However, my event cases are growing really quick as I add lots of numeric controls and I would preferably like to modularise the handling of these events. One option I've thought of is to have parallel while loops with event structures in them handling different sets of related numeric controls, but I get the feeling there would be unforeseen problems in the future. Suggestions of alternatives would be very much appreciated. Thank you very much cheers Quote
Aristos Queue Posted March 15, 2008 Report Posted March 15, 2008 Investigate XControls. You could easily implement at "f(x)" XControl, which always displays the results of f(x), where x is the current value of the control. You could add a property to the XControl to give it a VI Ref that is the formula f. Then you would just wire the numeric control directly to the numeric indicator. Complete modularization of display from value. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.