Maker Pro
Maker Pro

Analog to 1-Bit Digital Signal at a Threshold

SmackoJones

Jul 26, 2017
2
Joined
Jul 26, 2017
Messages
2
Hello!

I am looking to convert an analog signal to a digital signal so I can use the digital triggering function of my NI DAQ (I know some DAQs have analog triggering capabilities but I cannot afford a new fancy DAQ). I would like the digital signal to be low when the analog signal is below 2V (or any threshold) and the digital signal to be high when the analog is 2V or above.

I was thinking I would use an op-amp comparator circuit with a diode before the voltage output to achieve this but I am concerned about how the NI DAQ digital input port will receive this voltage output (especially the linear region if it is not steep enough). I got the idea from this site:

http://www.electronics-tutorials.ws/opamp/op-amp-comparator.html

Can an analog signal into a digital triggering port damage the DAQ? Will this method work for my application? Is there a better way of achieving my goal?

Thanks!
Smacko
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
All signals switch over some period of time, and are therefore actually analog signals. In most cases, the rise time is not critical. Comparators (not opamps) are designed to switch quickly. Just use a comparator. Use positive feedback to avoid multiple triggering at the threshold.

Bob
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
"Can an analog signal into a digital triggering port damage the DAQ?"
Yes, if it violates the min. or max. allowed input voltage of the DAQ.

"Will this method work for my application? "
Yes,In general .

"Is there a better way of achieving my goal?"
You need to specify what is the anolog signal voltage range.
and what are the trigger points possible.
 
Top