Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQ as a comparator

Hello,

 

I have a differential signal square wave which I want to turn into a single-ended wave.  My thought was to essentially use the daq card (USB 6366) as a comparator: connect my differential signal to the analog input.  If that differenital voltage exceeds a certain value, make a digital line go high.  If the differential signal is below the threshold, make the digital line go low.

 

The frequency of my incoming differenital square wave is about 80 kHz.

 

Is this possible, and if so, how would I go about doing it?

 

Thanks,

Brian

0 Kudos
Message 1 of 2
(4,435 Views)

Hi Blee66,

 

Is this differential square wave the output of a third party device? If so, you should check if you can adjust an offset value to the signal, this should set the low state to 0V.

 

Your idea of using a comparator might not be the best solution due to the speed of the signal, using an algorithm in software to compare and analyze your signal might delay the desired output.

 

You can generate a signal and send it to your analog output channels, you can also use a counter to generate a signal with a specific pulse and frequency, so you might want to use your card as the signal generator.

 

 

Regards,

steve.bm
AE | NI
0 Kudos
Message 2 of 2
(4,418 Views)