Jump to content

Digital Input Filter


ASTDan

Recommended Posts

According to the specifications, the input delay time for the 9435 is 3 msec (2.8 msec in the manual). That means a signal must remain in the ON or OFF state for that amount of time before the device registers the transition. So, you effectively have that filter always enabled. It's just that you do not have the ability to easily change the time constant the way you do with the industrial digital I/O cards like the 6514. If your glitches are less than 3 msec long, you should be fine with the 9435. If they are longer than that, you will have to do some extra filtering in your LabVIEW diagram.

If you are using the 9435 in a cRIO, you can fairly easily create that same API behavior with your FPGA VI. If you are using the cDAQ, you would have to do it on the host.

Link to comment

I have solved it in software using the timout eventI have the change detection digital read in an event loop. I store the digital data in a shift register in the event loop, and set the timout value to my filter time.

When a change is detected I set the timeout case in the event loop to my filter time.

If I don't see a change event my timeout event fires and sends the digital data stored in the shift register to my consumer loop. After the timeout event fires I set the timout to -1. A timout value is only trigged when I get a digital change event.

This seems to work well.

Hopefully NI will add programatic filtering on the 9435 16x16_smiley-wink.gif That is my wish

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.