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

Reset a boolean control programmatically

Hi,

I have a Boolean control ( switch when pressed ) and it is inside a while loop and the it is connected to the selector terminal of case structure. When the condition meets the boolean control should be changed to false. How can I programmatically set the boolean value without using local variable or value property node

Thanks

0 项奖励
1 条消息(共 4 条)
4,229 次查看

I don't think that you can.  Why don't you use "Latch when released" instead?

2 条消息(共 4 条)
4,218 次查看

@Michel_Gauvin wrote:

I don't think that you can.  Why don't you use "Latch when released" instead?


Exactly! Thats why we have Latcing mechanical actions! Change value untill the terminal is read once and go back to the initial state.


"Should be" isn't "Is" -Jay
3 条消息(共 4 条)
4,205 次查看

@JÞB wrote:

Exactly! Thats why we have Latcing mechanical actions! Change value untill the terminal is read once and go back to the initial state.


Nope!  I got caught on this one a few months ago (and, in fact, LabVIEW Documentation has it wrong in several places, depending on the LabVIEW Version).

 

When the terminal is read, it goes back to its default value, not its initial state.  Granted, in almost every (reasonable) program, these are the same thing, but I'm wearing my "Pedantic" hat, and (since I also "had it wrong") feel I should point out the subtle distinction.

 

Bob (Pedantic) Schor

4 条消息(共 4 条)
4,185 次查看