From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Simple straight forward question. How can I trigger an event from a scale change on a progress bar. I've tried everything I could think of. What I am trying to accomplish is the following: I have 2 barmeters side by side. One is used as normal with the scale visible. The other's scale is hidden and is used to show the Hi Hi, Hi, Lo Lo, Lo. As the scale on one gets resized, the other must change in size accordingly. The idea is that the progress bar will change colours as it crosses the lines. The customer wants to be able to change the scale to zoom in and out. It works in a loop but flickers and is not a very conservative way to do it. I am not quite finished with the side labeling (verticle positioning of Hi and Lo) but everything else works.
All your property node writes belong inside cases so they only execute if the input value actually changes. No need to write the same properties over and over. (To see if a value has changed, use a feedback node and compare current to previous).
Ya but I really want to trigger an event when the scale is modified. How do I do this? Note: this code is a part of a very large program. If I could, I would rather execute the code in an event structure so it will fit into my existing architecture. I realize there are may ways to do this. If you don't know how to trigger an event based on a scale change then I hopefully someone else does.