LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read ttl with NI9205can

Hello,

 

I would like to read a TTL signal using a NI9205 ADC.I've tried different way but no success.

I'm looking for tracks.

 

Thank you

0 Kudos
Message 1 of 8
(3,084 Views)

Hi gustutu,

 

your 9205 module is able to read voltage signals, so you just read your TTL signal as voltage.

 

You should get values of <0.8V (LOW) and >2.4V (HIGH). To get boolean values you just compare your voltage signal with a threshold value of 2.0V…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,079 Views)

Ok but at the end i have a loop with a value wich is 0 or 1 but i have to detect the frequency of the signal.

0 Kudos
Message 3 of 8
(3,073 Views)

Hi gustutu,

 

but at the end i have a loop with a value wich is 0 or 1 but i have to detect the frequency of the signal.

Don't know what kind of loop you have and why you only have one (1) value of TRUE/FALSE.

Source code (aka an attached VI) would be helpful here…

 

You should read more samples with a higher samplerate - obey Nyquist when you want to determine frequencies!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,066 Views)
0 Kudos
Message 5 of 8
(3,060 Views)

Hi gustutu,

 

so you read "one channel, one sample" and expect to determine frequencies from just one sample?

 

LabVIEW comes with alot of example VIs, just study them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,056 Views)

i 'v already tried with this multisample but this ****** vi stop the programm if the signal is 0

0 Kudos
Message 7 of 8
(3,050 Views)

Hi gustutu,

 

what have you tried?

What is a 6-star VI?

Why should it stop when the signal is 0?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,031 Views)