07-27-2014 03:45 AM
Hello,
Currently i am making motor driver from labview, and i am facing one problem.
When i connect to my board via labview, it will relay last position to global variable. After that, i have to go to loop, where i can send back modified position to my motor control board
In short, i have to control number, but that number default value should be writtem by another function when i start vi.
any ideas how to do it ?
Solved! Go to Solution.
07-27-2014 05:34 AM
Hi,
It sounds like you want to change the value of a front panel control programmatically. The simplest way to do this is using a local variable that can be found on the structures palette with the loops. You can link the local variable to any front panel control or indicator by clicking on it and choosing from the context menu. Then any value you wire to it changes the associated control/indicator. Sometimes you want the change to trigger a value changed event as if the user had changed the value. In that case you can use the value (signaling) property. If you need to change the value of a control on a different vi's front panel then there are a few ways to do it, but you should probably elaborate a little on your application before we go there.
07-27-2014 06:52 AM
Can any one create vi like in example, where result of 12+10 will be default value of numeric control ? ( that means, result in x+1 should be 23 , and i should be allowed to change adition numbers in erlier frame, in original vi, that will be read current position from my board)
07-27-2014 07:29 AM
Let me know if any clarification is needed
07-27-2014 08:16 AM
Thank you so much, worked just ike i needed
Somehow i was unable to do it