PCIe-6321 & ConfigureChangeDetection C# - Need to "debounce" the detection - event triggered multiple times

I am working on a C# NIDAQmx application for a hardware configuration that uses a PCIe-6321 to interface with downstream hardware.  There is a DI signal from a manual switch on the downstream hardware that I must monitor for the start/stop signal for my application's data acquisition operations.
I was having inconsistent results using the ConfigureChangeDetection NIDAQmx functionality.  So I used the ReadDigChan_ChangeDetection sample and using Debug.WriteLine statements have verified that when the switch on the hardware is toggled, multiple ChangeDetected events are thrown before the signal settles into the actual High or Low state.
Since I am not a hardware guru, I consulted another engineer, and was told that this is common with switches, and the signal and/or change detection needs to be "debounced". 
Can this be done purely through additional configuration of the NIDAQmx DI task?  I saw properties for digital filtering, but don't understand their use.  I looked at the ReadDigChan_ChangeDetection_DigFilter sample, but it seems to imply that some other DI needs to be connected on the card to be used as the filter, which I don't have.  Only one DI is coming from the downstream hardware.
Any help and/or advice will be greatly appreciated.

I believe I have found the solution.  By searching the forums I came across a couple of posts that pointed to this article
http://digital.ni.com/public.nsf/allkb/220083B08217CFD686257131007E5D2C?OpenDocument
So i started playing with the corresponding properties in the C# task, and it looks like I may have to only set the following properties:
                myTask.DIChannels[0].DigitalFilterEnable = true;
                myTask.DIChannels[0].DigitalFilterMinimumPulseWidth = 10.240000e-6;
According to error messages, the DigitalFilterMinimumPulseWidth for the PCIe-6321 can only be set to specific values.
Using this in the ReadDidChan_ChangeDetection_Events sample appears to be successfully debouncing the ChangeDetection events to only 1 per physical switch toggle.
If this is not the approach I should be using, please advise otherwise.

Similar Messages

  • I need to get the Current System Date and time in the format

    I need to get the Current System Date and time in the format
    *6/24/2009 11:30:29 AM*
    How do i do it ?

    I seem to be saying this a lot lately.
    Google is your friend.
    I googled "java current date format" and SimpleDateFormat featured prominently in the results.

  • I sometimes need to push the power button to 4 times before my laptop powers on?

    I need to press the power button 3 - 4 times before my laptop powers on.  Is the fix the same as not being able to power on at all or is there and actual hardware porblem?

    Hi there @TASK1 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I understand that you are having to press the power switch multiple times before your notebook powers on. I am happy to help.
    Has this always been the case, or did it just start to happen recently?
    Is there any sign of physical damage, or does the switch seem to stick?
    Please post the full product number and verify the operating system in use on your notebook. See the following, if you need help with that information.
    How Do I Find My Model Number or Product Number?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Re: Running the same (Forte) application multiple times -for different

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • TS2755 keep receiving the same text message multiple times, at the same time of the night. How can I stop this?Thabnks

    Hi
    I keep on receiving the same text message multiple times and at around the same time each night. Any idea how I can stop this happening? The text messages are originating from to separate Saudi Arabian mobile numbers. Both these people are listed in my contacts so do you think if I delete their names it might stop the texts coming htrough each night?
    Cheers

    Deleting the people from your contacts will not stop the messages. Have you tried talking to the people and finding out if they're sending you messages? You could try contacting your carrier and finding out what blocking services they offer. However, theat would block all messages from those people.

  • Can I have the same printer installed multiple times under different names?

    On WIndows I have the same printer installed multiple times
    All using the same driver
    I have a Canon printer that has a rear tray and a bottom tray
    So, I will have one printer that prints to the rear and the other to the bottom
    Other printers (the same one) will be set so that they print in high quality and in duplex for example
    I'll name the printers 1.Canon 2.Canon 3.Canon etc
    So, when I go to print, I just hit a number on the keyboard and the printer I want is selected
    Can I do the same on my laptop?
    Thanks
    Omar

    Back Up - that's in case things go wrong.
    In the case you cite:
    You have
    Mother
    Mother Maiden Name
    as Faces, right?
    In the Corkboard view click on Mother Maiden Name and delete the 'Maiden Name'.
    It will disappear and all the photos will be in the Mother face.
    Note that 'Mother' and 'Mother ' (that is, with a trailing space) are not the same.
    You can  also just edit the name 'Mother Maiden Name' to 'Mother'
    As for photos staying in manual sort, I can only say that mine do. But as I've no idea what troubleshooting steps you've used.
    Regards
    TD

  • The finder is opening multiple times 30  as well as creating 40 to 50 files at random while reading mail.

    The finder will open multiple times 30 plus as well as create 40+ blank file folders on the desktop at random. Please help!

    Use Lion Recovery to reinstall the Mac OS X.

  • IPhone keeps sending the same text message multiple times in a row.

    My iphone (4s) keeps sending people the same text message multiple times (2-4) a few seconds inbetween.  Sometimes it will tell me that there the message failed, but they still recieve it multiple times.  I've already tried deleting the message tread and reset network settings.  Nobody who has an iphone has said anything to me about it yet, only people with android.  

    It's a carrier issue. I have AT&T and had this issue with my friend (who had an Android) and my mother (who had a feature phone). Both of them have Verizon for service and I'm thinking the issue was on Verizon's end. They both just dealt with it as we tried all sorts of things to get this sorted out (other than contacting Verizon directly) and had no luck.
    They've both switched to iPhones so it's a moot point for us now, at least.
    ~Lyssa

  • I have elements 8 and I want to be able to load the same picture in multiple times because

    Question - I have photoshop elements 8 and I want to be able to load the same picture in multiple times because I have 1200 pictures already pregrouped into 60 file categories and some pictures are duplicated thruout these files. How can I get elements 8 to load the duplicates  - it currently seems to default to only loading the picture one time and not allowing duplicates

    The apple lightning to 30 pin works just fine for me.
    Works with a fio amp and srs  iwow.

  • If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip w

    If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip without change all the instances where the clip was used in the same multi-track session?
    I'm having to copy the clip rename it as clipreverses.wav then bring it back into audition to use it.
    Sony Vagas you can flip the same clip on a different track with a right click and not affect any other copies of that clip.

    Not that I'm aware of, no. You can easily make a unique copy of a clip (right-click on it, and you get it already saved for you), and I'd say that having this was more flexible in one way, at least, as you could then time-stretch it if you wanted to, without altering all other instances of it. Not saying that there wouldn't be any point in having a reverse-play option - I can see instances where it might be useful. It's just that it's not exactly difficult to achieve this anyway, which is probably why I don't ever recall a request for it!

  • I have agreed and accepted the terms and conditions multiple times

    I have agreed and accepted the terms and conditions multiple times and I am still being asked to accept. All I want to do is watch the new episode of Glee and I am highly considering doing so illegally or getting a ******* hulu-plus account because iTunes for some reason does not want me to purchase anything. I have been playing along in this treacherous cycle for a ******* half-hour. How do I make this stop?

    Hello ms450,
    I would report an issue with the purchase directly to the iTunes Store support with this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Cheers,
    Sterling

  • HT2486 How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    Hello,
    Avery...
    https://discussions.apple.com/thread/2588943?start=0&tstart=0
    Or...
    http://www.belightsoft.com/products/labelsaddresses/overview.php

  • HT202450 If the issue is reported multiple times, is it still covered?

    If the issue is reported multiple times, is it still covered?

    Security Software and Related Troubles
    http://support.apple.com/kb/TS3125          Basic Troubleshooting
    http://support.apple.com/kb/TS3297          Advance Troubleshooting
    http://support.apple.com/kb/ts1629          Ports List
    Basics
    Check correct date, time, and timezone.
    Log in as administrative user account
    Verifiy iTunes updated
    Update Operating System “OS” (Ms Windows, Mac OSX)
    Update Modem / Router firmware
    Update security software (Antivirus, Firewall)
    Remove Outdated Security Software (Always restart afterwards)
    Advanced
    Remove Mobile Software not used anymore
    (Motorola, Android, Nokia, Sony, Blackberry)
    Add Apple programs to firewall permissions
    Allow Ports 80, 443, 3689, 5297, 5298, 5353, 8000-8999, and 42000-42999
    Permit Domains - apple.com , edgesuite.net , mzstatic.com
    Disable Security Software
    Remove Security Software (restart!)
    Delete “Hosts” file and restart, or edit and save.
    Check Browser Settings: Use SSL3, TLS1, Auto Detect, No Proxy Settings
    Reinstall itunes FOLLOWING ARTICLE while all security off / disabled or completely removed.
    http://support.apple.com/kb/HT1923
    http://support.apple.com/kb/HT1925

  • I'm trying to download an app on my iPhone, however I'm being told that the terms and conditions have changed and i must look at them before i can download.  I've gone through the terms and conditions multiple times and i can't find an 'accept' option?

    I'm trying to download an app on my iPhone, however I'm being told that the terms and conditions have changed and i must look at them before i can download.  I've gone through the terms and conditions multiple times and i can't find an 'accept' option?

    Hello jody5758
    Continue your troubleshooting with the article below. IT will walk you through checking the Date & Time as well as checking the settings of your router to ensure a proper connection.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    -Norm G.

  • I am new to Macs and, although I like it, I still don't understand it's behavior. When would you need to provide the administrative password at boot time? Safe Mode?

    Background...
    I joined the Mac bandwagon about 2 months ago. I am still getting used to it, but like it so far. Last week, I activated a new Iphone on my Imac. I needed to key in my userid and password. 3 days later, my itunes account was hacked into. My itunes information was scrambled. My itunes email, home address, and password were changed. Also, they didn't use my credit card which was attached to my account to make any purchases (they deleted my card and put someone else's card on my account to buy $100 worth of gift cards). I didn't receive any emails from Apple that my password, or email were changed, but I did get 2 receipts from the Itunes Store identifiying the purchases. Apple support fixed everything, but couldn't offer any explanation on what happened, other than to say my account was "modified". I don't like coincidences.
    I freely admit that I didn't do enough to protect my login credentials as I used the same userid and password on multiple sites (since corrected). I still don't know how my account was accessed. I started to wonder if there may have been a key logger installed on my Imac without my knowing it. I am pretty careful with installing software and have purchase about 15 applications, all either from the itunes store, or from other reputable sources. I have never made any in-app purchases.
    I understand that to install a key logger you would need to supply the admin password, which brings me to my question....
    About 4 weeks ago, my wife was using the Imac on facebook. While she was there, the Imac experienced a hard crash. We had to do push and hold the button on the back of Imac to get it to shut down and reboot. When it came up, it required the admin password, and dropped me into a mode where it wouldn't recognize the external disk drive which was attached via USB. I needed to restart the machine and everything appeared to be normal. I assumed that this was Apples version of "safe" mode, but now I am not so sure. Could a key logger have been installed during this event? Is this expected behavior after a hard reset?
    I have McAfee for Mac installed and it hasn't detected any threats, but McAfee is pretty wishy-washy on it's ability to detect key loggers. I am thinking about Macscan or Little Snitch. I would do a reinstall of the OS, if I only knew how.
    Any help?

    your itunes accoutn have nothing to d with your computer
    you can go to any computer with internet access in the world and
    login into your itunes account if you have the appleID and password
    the itunes account is placed on apples itunes servers

Maybe you are looking for