From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB6009 Digital Input : Problem to acquire logic signal

Solved!
Go to solution

Hi,

I need to acquire 3 signals.
I use Digital Input from USB6009

2 signals (P0.0 & P0.3) are periodic square 180µs (UP then down)
The third signal (P0.2) is not periodic but has High Level during 90µs then low level during approx. 100ms.

With my program, I never see high state from non-periodic signal.
Is it normal ?

Download All
0 Kudos
Message 1 of 3
(2,677 Views)

I think that I have the explanation

By setting the sampling rate the time between two samples is defined and can be calculated by

 [sample interval] = 1 / [sampling rate]. Examples:

 

Sampling rate 50 kS/s ; sample interval between two samples = 1 / 50 E3 =  0,02 E-3s = 0,02ms = 20µs

Sampling rate 100 kS/s ; sample interval between two samples = 1/ 100 E3 = 0,01 E-3s = 0,01ms = 10 µs

Sampling rate 1 MS/s ; sample interval between two samples = 1/ 1 E6 = 1 E-6s = 10 µs


Sample rate of USB 6009 is not enough ?

0 Kudos
Message 2 of 3
(2,655 Views)
Solution
Accepted by topic author Minikisscool

Hello Minikisscool,

 

Thank you for posting to National Instruments' forum.

 

You should consider having a look on the Nyquist frequency to understand the needs of your application.

Then go have a look on the specification of your DAQ Device: NI-USB-6008/6009  and USB 6009

 

Your card has just one counter at a maximum rate of 5MHz. if you want to count at the full speed (and it might be the case considering your input rate), you can count just one channel with hardware timing. You can count the 4 other channels but with a software timed clock limited to 1KHz (1ms). This exemple show how to implement Digital Input with Software Timed: Example DI Software Timed

 

Best regards

0 Kudos
Message 3 of 3
(2,628 Views)