ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with event source using event structure

Hello!
 
I'm using an event structure block. It works correctly when the event source is a control and the event is change value. But i want to use an indicator like event structure or a variable (like a matrix or a vector). I want that when the value changes, an event occurs, but it doen't work, I dont' know why?. What i have to do to work with indicators or variables in a event structure block?
 
Thank you in advance
Larson
 
0 Kudos
Message 1 of 5
(3,069 Views)
Hi Larson,

regarding your question i want refere you the following KB:

http://digital.ni.com/public.nsf/websearch/024828947672E68586256ADB0071FB1B?OpenDocument

that´s a way how you can detect changes on indicators

DO NOT USE THIS IN A LOOP!!

an other way is to compare the actual value with the "old" value (e.g. using shift register) and put a case structure behind the comparisson

regards timo
Message 2 of 5
(3,067 Views)

Hello Timo again,

in reference to your answer "an other way is to compare the actual value with the "old" value (e.g. using shift register) and put a case structure behind the comparisson"...can you send me a little example, i don't know how  can compare the new and the old vaue of a variable and to obtain true or false for using in a case structure block....

I've read the article of the web you've sent me and i think the better way to do it is compare the value.

 

Regards.

 

Larson

0 Kudos
Message 3 of 5
(3,047 Views)
of course!


regards timo
Message 4 of 5
(3,044 Views)

Ooohhh!!

 

It's perfect!! Thank you very much Timo!

 

REgards!

Larson

Message 5 of 5
(3,035 Views)