Hi,
I am trying to perform data logging based on the state of a digital trigger signal. I have the following setup:
I am monitoring a digital signal through a DIO line on a 6036E device and whenever the signal goes high, I am creating a new data file and start logging the data from 16 analog input channels to this data file. Naturaly, when the signal goes low, I am stopping the data logging and closing the current file and waiting for the next logic high trigger to occur.
However, the "real" digital trigger that is going to be used is expected to ehibit some bouncing. With my current setup, this would cause creation of several data files in a short time period as the program would "see" the rapid high and low changes and act
accordingly (the loop is running at 500 Hz).
My question is: Is there a way to implement this a different way, i.e. is an external hardware debounce circuit the best way to go? Or is there a more elegant software implementation?
Thanks.