LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Case stuck unless timeout wired

so the Momentary/Value Signaling is getting caught (or triggering the event) because of the timeout?  but the timeout is an empty case....

0 Kudos
Message 11 of 15
(1,200 Views)

Try this, Fibo.

0 Kudos
Message 12 of 15
(1,194 Views)

No. You have a -1 connected to the timeout terminal so it never gets executed. It may as well not even be there. Try this - set momentary to true then click run. The true case will execute and the value signaling property will be written to. As soon as that happens the control is reset to false. If you now change it to true then the case structure will execute again in the true case. But not until another event in the case structure has fired.

 

Try something. Move the case structure and momentary button outside of the while loop. Wrap another while loop around that and run the program. This is not the right way but do it as an experiment and try to figure out what is happening. I think you will see the behavior you are expecting.

 

It took me a while to get my head around these things. You will have that "ah-ha!" moment before you know it and all will be crystal clear.

=====================
LabVIEW 2012


0 Kudos
Message 13 of 15
(1,181 Views)

 


@mtat76 wrote:

Try this, Fibo.


 

A few notes:

 

  • if you don't use the timeout event, delete the timeout case amd value entirely.
  • the "event count" indicator belongs in front of the event structure, else it will be potentially incorrect until the first event gets triggered. (We don't really care about counting the stop event ;))

 

0 Kudos
Message 14 of 15
(1,178 Views)

 


@altenbach wrote:

 


@mtat76 wrote:

Try this, Fibo.


 

A few notes:

 

  • if you don't use the timeout event, delete the timeout case amd value entirely.
  • the "event count" indicator belongs in front of the event structure, else it will be potentially incorrect until the first event gets triggered. (We don't really care about counting the stop event ;))

 


 

Good call on the deleting of the timeout "event".

 

And with regards to the "we", Altenbach - personally I don't really care about counting any of the events; I already know how the structure works :o.

 

Muahahaha....

0 Kudos
Message 15 of 15
(1,157 Views)