LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What situations result in an event structure not capturing the change of a boolean value?

Solved!
Go to solution

elset191 wrote:
Value(Signaling) is in the property node, not the event structure.  I think you are losing it.

 

Is it Monday?  I've totally lost it on that one.  DUH....

 

- tbob

Inventor of the WORM Global
Message 11 of 33
(1,450 Views)
Yes, but when I did that, it triggered continuously, which defeated the purpose of the event structure.
-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 12 of 33
(1,428 Views)

eximo wrote:
Yes, but when I did that, it triggered continuously, which defeated the purpose of the event structure.

 

did what?
 
There are many suggestions above. You need to be more specific! Maybe even attach what you did.
 
Message 13 of 33
(1,417 Views)

These two examples contain what I'm trying to accomplish, but neither work.

 

Altenbach if you would have a peak at them.

 

One triggers continuously, the other never triggers the event.

 

 

The approach is simple.

 

Press button

button activates timer

timer expires

event triggers and depress button

 

 

But I can't figure out how to do that using an event loop 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 14 of 33
(1,396 Views)
I edited one that you sent and now it works
Tim
GHSP
0 Kudos
Message 15 of 33
(1,389 Views)

In the one where you do use the Value signalling node, you fail to reset the the elapsed time timer, so the timer remains true, and you constantly retrigger the event structure.  (In your other VI, you have failed to use value (signalling).

 

One other thing I noticed is that you have a property node for Value for Artifact Bump rather than Value (signalling).

 

I suggest you run your VI with execution highlighting turned on so you can understand how it is working now.  I think you are making this way more complicated.  Why do you have two event cases, one for Artifact Bump and one for Time has elapsed?  There purposes seem to intermesh in a way that looks like it could cause a firestorm of events begin generated.

 

There is another way you could handle value changes, put the value (signalling) node in a case structure so that it only gets written to when True.  If you only want the first False to True transition, you can store the value in a shift register and use boolean functions so that True is only returned if the previous iteration is False  (NOT True) AND the current iteration is True.

0 Kudos
Message 16 of 33
(1,382 Views)
File is corrupt, cannot be opened
-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 17 of 33
(1,369 Views)
It opens fine for me. Try the 8.6 version.
Tim
GHSP
0 Kudos
Message 18 of 33
(1,365 Views)

This is part of a much larger and more complicated program, hence why it is complicated.

 

If  I used shift registeres to monitor when the value changed, and then used a true false to make sure I only capture when the value is going from negative to positive, I can't see a reason to use the event structure at all.  The whole point of using the event structure is that it does that.

 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 19 of 33
(1,365 Views)

That doesn't work at all, the artifact should remain on until the time has elapsed, and the timer should not be automatically reseting, it should only reset when the artifact is initially pressed.

 

This triggers continuously and continuously resets the timer. 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 20 of 33
(1,362 Views)