04-11-2011 05:59 AM
Hi every body,
I need some help today for one problem about slide - sub vi and property node.
I would like to change all slide value with a sub vi
Any ideas ?
Thanks
Solved! Go to Solution.
04-11-2011 06:24 AM
Hi,
Using of property node u can change the value of Slide.
Siva
04-11-2011 06:28 AM
Thanks !
04-11-2011 06:42 AM - edited 04-11-2011 06:42 AM
Is it possible tu change all slide by one reference of array of reference or anything else ?
04-11-2011 07:39 AM
Are you suggesting that you have multiple slide controls and you want to set all to the same value?
1. You can create an array of references and loop through them.
2. You could use local variables. You cannot make an array of different local variables, so you would need to deal with each one separately.
3. Changing values via references can be slow. Using local variables may result in race conditions. Use either method with caution.
Be careful about changing the values of controls programmatically. If if is done at initialization, it is usually not an issue. If it is done frequently in the program, it may cause confusion on the part of the user. The user tries to move the slider and the program keeps jerking it back to the original position. This is very frustrating to a user.
If you have a "Master" control and all the rest are always slaved to it, make the slaves indicators and modify their appearance in such a way that the user does not try to change them directly.
Lynn