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: 

FP read digital

hi,
 
is there a way to get a digital value only if the value change for at least more than 2 seconds ( for example).
I don't want to get vlaues if they change too fast.
 
Thnak you
 
0 Kudos
Message 1 of 4
(2,971 Views)
Attached (LV8) is one method you could use.
Involves event structure and timeout manipulation.  Not sure how well you can hammer it into your code though.

I do not believe there is a "No code" way of doing this though.

Message Edited by Stradis on 06-06-2007 08:51 AM


Paul
0 Kudos
Message 2 of 4
(2,966 Views)

thank you,but it doesn't exactly fit to my wishes because it use a blocking loop : I have lot of digital inputs to read at 200 ms and have to make an operation if

predefined inputs values are ON  more than 1 s.

I expected to find out a solution to configure the DI module or using the "advise" function.

I will maybe use a cluster to store whe the input value start to be 1 and make a time calculation each time a read it again.

I hope to find a better solution.

 

Thank you

0 Kudos
Message 3 of 4
(2,956 Views)

Hello,

If you are using a 653x board and ni-daqmx, you can use this change detection example

http://zone.ni.com/devzone/cda/epd/p/id/5015

Regards.

0 Kudos
Message 4 of 4
(2,935 Views)