From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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,
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.