NI Home > Community > NI Discussion Forums

LabVIEW Web UI Builder and Data Dashboard

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Daniel Stoilkov
Posts: 15
Accepted Solution

Can I change programmatically the Make default property for all elements on the front panel?

Can I change programmatically the Make default property  for all elements on the front panel?

I need to make logout button which on click will load all default values of my fron panel.

Member
GregR
Posts: 138
0 Kudos

Re: Can I change programmatically the Make default property for all elements on the front panel?

There is no way to programmatically invoke the "Make Default" or "Load Default" editor functionality. To do this yourself you would need to write your default values to each control explicitly on the diagram when the user presses the logout button.

Member
LV_user1
Posts: 176

Re: Can I change programmatically the Make default property for all elements on the front panel?

I guess i have understood your question well...you want to reinitialize all your front panel objects to their default values on the particular event...

 

for that you can use the invoke node method for the VI Reinitializa all to default. Provide the VI reference of the VI whose front panel you want to reinitialise and it will give the default values to all objects on the FP of that VI. No explicitly default values needs to be written to each front panel object.

Attached Screenshot may clear it...

 

Default_values.png

-Certified LabVIEW Developer