LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-6351 card - How create trigger on negative voltage [ 0; -5V] ?

Solved!
Go to solution

Hi everybody

I've just created a digital output trigger from an external source with a positive value [0;5V]. It works very well (see picture, in yellow the external signal and in blue the triggered signal). Now I'd like to get the same answer, but with a negative external signal [0; -5V]. Do you have any ideas? Because I'm trying to integrate the "Start Analog Edge" function instead of "Start Digital Edge", but it's not compatible with the rest of the program chain ....

 

Best regards

 

0 Kudos
Message 1 of 6
(949 Views)

The digital TTL is always 0 to 5V. From NI 6351 Device Specifications,

ZYOng_0-1692376197278.png

 

Either you use the analog edge trigger, or you use an external circuit to invert the voltage.

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 6
(925 Views)

Think of an analog signal as a "real" (or "float") quantity, and a digital signal as a Boolean (on = 5V, off = 0V).

 

To trigger on a negative (0V, -5V) signal, do you want to trigger on the rising edge (from -5V to 0) or the falling edge (from 0 to -5V)?  For the former, add 5V to you trigger line (to convert it to a TTL signal, triggering on the rising edge), and for the latter, simply invert the signal.  A simple op-amp circuit should handle either of these cases.

 

Bob Schor

0 Kudos
Message 3 of 6
(886 Views)

thanks for your help

 

I see I can do

It's for un falling edge from 0 to -5V

0 Kudos
Message 4 of 6
(860 Views)

Thanks ZYOng

I think this idea is good .... for the analog trigger, are you talking about APFI 0?
I tried but something doesn't work .... Did you see vi with my message? Can you help me modify it?

0 Kudos
Message 5 of 6
(856 Views)
Solution
Accepted by topic author did.rider38

Hi,

 

I've found the solution!

I use a digital trigger to process an analog signal ....
I use AFFI0 and "start digital edge" function

Capture.PNG

 

0 Kudos
Message 6 of 6
(817 Views)