LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I generate an Event if an indicator has changed it´s value?

I need do gather some Errormessages of an application (e.g. The application sends "Not Ready" and it´s indicated on the LabVIEW window) because I want to sample them in a History box.
I´ve tried this: First I placed an control (an LED) on the panel and copied the value of the "Not Read" indicator to a property node of the LED.

Then configured the Event structure with the setting "Value has changed" of the LED.

But the Event structure is not triggered only when I set the indicator with mouse..!

Thanx in advance for Help!
0 Kudos
Message 1 of 7
(3,190 Views)
What property are you using? In order to fire a user event programatically, you should use Value(Signaling) and not Value.
0 Kudos
Message 2 of 7
(3,190 Views)
Hello Dennis,

yes, that works! But it is not edge triggered!
I placed the property node with Value (Signaling), but the event strukture is always triggered. After placing the prop-node in a case structure, it is possible to trigger the event.

But, in the example a "Not Ready" is indicated (an the signal stayes TRUE for a while), the event strukture is run through every cycle!

What am I doing wrong? Is it possible to realise an edge-triggered event?
0 Kudos
Message 3 of 7
(3,190 Views)
EMG wrote in message news:<506500000008000000BF000100-1079395200000@exchange.ni.com>...
> I need do gather some Errormessages of an application (e.g. The
> application sends "Not Ready" and it s indicated on the LabVIEW
> window) because I want to sample them in a History box.
> I ve tried this: First I placed an control (an LED) on the panel and
> copied the value of the "Not Read" indicator to a property node of the
> LED.
>
> Then configured the Event structure with the setting "Value has
> changed" of the LED.
>
> But the Event structure is not triggered only when I set the indicator
> with mouse..!
>
> Thanx in advance for Help!

Use the Val (signaling) property.
0 Kudos
Message 4 of 7
(3,190 Views)
I'm not sure what you mean by edge triggered. It's certainly possible to put a case statement inside the event. You could use the Event Data Nodes OldVal and NewVal to see if there's a change or wire a shift register through to check for a change.
0 Kudos
Message 5 of 7
(3,190 Views)
I´ve wired a shift register and checked for dissimilarity.
It works now.
0 Kudos
Message 6 of 7
(3,190 Views)
Sorry, can t read the message...
"Paul Cardinale" a écrit dans le message de
news: 64050551.0411120829.5b64ea1d@posting.google.com...
> EMG wrote in message
news:<506500000008000000BF000100-1079395200000@exchange.ni.com>...
> > I need do gather some Errormessages of an application (e.g. The
> > application sends "Not Ready" and it s indicated on the LabVIEW
> > window) because I want to sample them in a History box.
> > I ve tried this: First I placed an control (an LED) on the panel and
> > copied the value of the "Not Read" indicator to a property node of the
> > LED.
> >
> > Then configured the Event structure with the setting "Value has
> > changed" of the LED.
> >
> > But the Event structure is not trig
gered only when I set the indicator
> > with mouse..!
> >
> > Thanx in advance for Help!
>
> Use the Val (signaling) property.
0 Kudos
Message 7 of 7
(3,190 Views)