gergalern
gergalern

Reputation: 57

Event Structure Not Working Twice

My event structure in the following part of my VI will work when I start up the program, but never again until I stop and restart. I figure I'm not doing something simple, can someone help?

enter image description here

The event structure is in a while loop. Again, it works once, but not after that...

Upvotes: 1

Views: 1563

Answers (2)

MarcoM
MarcoM

Reputation: 1204

It seems to me your case structure is fine.

When you press "enable beeper" the event structure should execute the case you have shown and enter the case structure in the True frame. When you press the button again, the event structure should be executed again this time processing the False frame of the case structure. (I assume, since you have a local variable, that "enable beeper" is not latched).

If this is what you want to happen but not what's happening the issue could be somewhere else.

Is the Read from Visa function working properly? Could it be waiting for a reply from the hardware?

Upvotes: 0

Khachik Sahakyan
Khachik Sahakyan

Reputation: 1982

You have set Enable Beeper Value change action. It will occur once you change the value of the button from the front panel, or change the value trough property node with signaling. Changing value using a local variable or property node value property will not cause Event Handler to register the event.

Upvotes: 2

Related Questions