取消
显示结果 
搜索替代 
您的意思是: 

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

已解决!
转到解答

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 项奖励
1 条消息(共 6 条)
1,621 次查看

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.

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 项奖励
2 条消息(共 6 条)
1,597 次查看

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 项奖励
3 条消息(共 6 条)
1,558 次查看

thanks for your help

 

I see I can do

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

0 项奖励
4 条消息(共 6 条)
1,532 次查看

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 项奖励
5 条消息(共 6 条)
1,528 次查看
解答
已被主题作者 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 项奖励
6 条消息(共 6 条)
1,489 次查看