LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing properties in realtime

Solved!
Go to solution

Can this be done?

 

I have a numerical control and a for loop. I would like to modify the propertis of the num control so that it increments as much as the counter terminal , i.e the num control is a multiple of the counter. The user might run the for loop x times ones and another time y times. Can num control be modified that it is a multiple of any value?

 

Thanks.

0 Kudos
Message 1 of 6
(2,795 Views)
Well, have you had a look at the 'Value' property for controls? Let me know if you need further clarification. Also, it's always a good idea to post an application that explains the idea so you get faster and more accurate responses.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(2,772 Views)
You can also use local variables or change the control to an indicator and simply use the indicator.  These will be much higher performance than the Value property.
0 Kudos
Message 3 of 6
(2,768 Views)

I have attached a pic, hopefully it would be more clear.

 

Now ... at the properties section, I am given the ability to change by how much does the number increment. I want that property to be able to change every time the user selects a new loop counter. I want the loop counter value to be in there.

example. If the loop is 2 and the numb 1  is 6, the next value incremented would be 8. If the loop counter is 5, the value would be 11. I want to limit the users input to only the numbers that would make sense in this particular program.

 

0 Kudos
Message 4 of 6
(2,742 Views)
Solution
Accepted by tau at wayne

Yes you can change these properties at runtime (realtime is something different).

 

Right click on the terminal of the control, select Create->Property->Data Entry Limits -> Increment.

 

Good luck.

 

ton

 

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 6
(2,725 Views)
Thank you.
0 Kudos
Message 6 of 6
(2,698 Views)