LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coerece increment on scrollbar with property node

I'm using property nodes to set my DocMax, DocMin, Page Size, and Increment (Page Size=Increment).  I'm then setting the properties of the scrollbar to coerce values outside the DocMax and DocMin to the DocMax and DocMin values. If you click the arrows or anywhere in the blank space it increments correctly.  If you drag the boolean it doesn't increment correctly; it allows you drag freely to values inbetween the increment property value.

0 Kudos
Message 1 of 2
(2,471 Views)

It aint easy or straight froward, if possible.

 

Route 1

Use a control that looks like a scroll bar that you can assocaiate with an event structure and apply changes to it to the array (that has a hidden scrool bar).

 

I'll say it for you "ouch!"

 

Route 2

 

Not sure if I actually did this or just tried real hard.

 

Replace the scroll bar with a customized version that has Coerce" set ti it. The tricky part was to create a scroll bar that you could use to do the replacement in the control editor. I belive it had to be "U" (unsigned) 32 to pull it off.

 

That is all I can say with having to "start the meter running" Smiley Surprised

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,465 Views)