I'd love this for sliders too. I asked on the mailing list back in October (http://wavemetrics.com/search/viewmlid.php?mid=22956), but no answer was forthcoming. I haven't found a way to do it other than making a variable and connecting it to the wave with a dependency. Usually, that's not worth the trouble.
Is possible to have checkbox variable be an element of a wave rather than a variable?
It is not. You are thinking of the ability to use a wave element with SetVariable. I usually prefer not to use any sort of global storage (variable or wave) which tends to clutter up the Igor environment. I almost always use ControlInfo at the point where I need to know the state of the checkbox or slider. And now that SetVariable allows you to use value=_NUM: and value=_STR: there is little need for global objects to hold values for controls.
I got my code to work by using ControlInfo. It was very straightforward once I understood how the function works, and it saved me the trouble of having to keep track of new waves or global variables. Thanks.
May 31, 2011 at 01:31 pm - Permalink
It is not. You are thinking of the ability to use a wave element with SetVariable. I usually prefer not to use any sort of global storage (variable or wave) which tends to clutter up the Igor environment. I almost always use ControlInfo at the point where I need to know the state of the checkbox or slider. And now that SetVariable allows you to use value=_NUM: and value=_STR: there is little need for global objects to hold values for controls.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 1, 2011 at 09:24 am - Permalink
June 10, 2011 at 10:10 am - Permalink