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.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 6602 counter Application

Hello ,

 

I want to write a code which generated PWM on counter 0 and measures 3 PWM signals on counter 1, counter 2, counter 3 .

I know how to generate a PWM ... i am still trying to figure how to measure it thou.

when i want to measure the PWM should i provide my signal to the source ( PWM ) and gnd. Is that the hardware set-up.

Moreover it is possible to do in real time ....( generation and measurment simultaneously).

 

Please help !!!

 

Thanks in advance.

 

Sweety Agarwal

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

Hello,

It is possible to do what you say and measure and generate simultaneously.  To measure a PWM, you need to set up a counter input task for semi period measurements with implicit timing.  Then wire your signal into the gate.  

 

-Christina

0 Kudos
Message 2 of 2
(4,878 Views)