取消
显示结果 
搜索替代 
您的意思是: 

Default switch positions

已解决!
转到解答

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 项奖励
1 条消息(共 4 条)
3,693 次查看
解答
已被主题作者 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 项奖励
2 条消息(共 4 条)
3,691 次查看

Thats perfect.

 

Thanks

0 项奖励
3 条消息(共 4 条)
3,680 次查看

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.

4 条消息(共 4 条)
3,670 次查看