LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Default switch positions

Solved!
Go to solution

I have a VI which is controlling a number of solenoid drives via software enabled switches. Is it possible to set the default position of these switches. For example everytime I turn the model on I would like the heater gun switch to be on (in the UP position) with the hydraulic supply off (in the DOWN position). I have tried setting the required default positions and saving the VI but they always default to the same position.

 

Thanks.

 

Richard

0 Kudos
Message 1 of 4
(3,001 Views)
Solution
Accepted by topic author r.youden

Hello r.youden,

 

The option you're looking for is Edit>>Make Current Values Default.  This will "lock in" the current front panel values as the defaults when the VI is opened.  This can also be configured programmatically via property nodes.

 

Regards,

Tom L.
0 Kudos
Message 2 of 4
(2,999 Views)

Thats perfect.

 

Thanks

0 Kudos
Message 3 of 4
(2,988 Views)

It is often better to select the desired controls first so only those get specific default values. For example if you also have a large graph with megabytes of data, setting it to default would greatly increase the size of the VI file.

Message 4 of 4
(2,978 Views)