10-24-2011 10:30 AM
Hello,
I have a number of files to process, the files will be browsed in at runtime. I want to use a slider to control which single file to process at certain time. Since the total file number can not be pre-dertermined, I am wondering how I can setup the slider maximum value at runtime (after I have know how many files in the pool).
Any help will be greatly appreciated.
Jacie
Solved! Go to Solution.
10-24-2011 10:39 AM
10-24-2011 10:50 AM
Right click on the slider on the block diagram and create a Property Node. If you look towards the bottom of the options there is one called scale and then another sub choice called range. Lots of options in there.
10-24-2011 02:03 PM
I still didn't get this work. I am new in LabView, please help with more details.
I create the Property Node by right click the slider, then select the scale->Range->Maximum. After that I have a Scale.Maximum Object created in the Block Diagram, but I don't get how to set the Scale.Maximum value. Any help will be greatly appreciated.
Thanks. Jacie
10-24-2011 02:11 PM
Right click on the property and select Change to Write. Now you can wire a constant to the property node.
10-24-2011 02:37 PM
It worked. Thanks for all that helped.
07-26-2019 01:33 AM
That is the way to do it programatically, but it is easier if you just open the Properties of your slider, and modify the Data Entry values Max,Min, and the response to values outside limits, if you want a max value of 126 and the user writes something higher, setting the response to coerce will automatically change to 126.
07-26-2019 01:36 AM
Hi Alex,
it's nice to show that option in a 8 year old thread.
But unfortunately it doesn't apply to the problem of the OP: When you don't know the number of files (or any other objects) in advance then it doesn't make sense to limit the slider range at edit time!
07-26-2019 01:46 AM
Oops, that's true I haven't checked the thead date, I was just looking for different ways to force the input slider max value, and came to this thread.
Maybe it is useful for someone else 😅