LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set default value and after that , use it as control

Solved!
Go to solution

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 ?

0 Kudos
Message 1 of 5
(3,424 Views)

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.

0 Kudos
Message 2 of 5
(3,403 Views)

vi.png

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)

0 Kudos
Message 3 of 5
(3,388 Views)
Solution
Accepted by topic author Labview_VCP

Let me know if any clarification is needed

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 4 of 5
(3,379 Views)

Thank you so much, worked just ike i needed Smiley Happy

Somehow i was unable to do it 

0 Kudos
Message 5 of 5
(3,363 Views)