12-09-2013 08:57 AM
Hi all
I have developed the X control in which I have one knob and 1 numeric control.
It is working fine. But when my VI stops , for next run i want my x control to get initialize to default value.
Right now it shows the last values.
How should I initialize X control to default values?
Do i need to do something with the init ctl of X control??
12-10-2013 11:20 PM
Hi,
I think its not possible to directly initialize the X control to its default value using its property. But you can initialize its value during each run in the X Control itself. You can set the value of each control in the "Exec State Change" event. I have attached an example XControl which has a knob and a numeric control. Have a look at it,
12-11-2013 02:11 AM
The XCtrl Init ability is only run when a VI is loaded into memory (aka, when you open the VI). Resetting the XCtrl to a default value depends on what you actually want to reset :
- Specific controls from within the XCtrl : follow Citra's post
- The "real" data of the XCrtl : from a local variable or property node from the calling VI. You still can use the aforementioned method for this one (make sure you set the Data Changed flag to True).
-Eric
Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.
12-11-2013 02:16 AM