Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 659

ANSI C: deal with something on every rising edge input

$
0
0

Hi everyone,

 

I need your help with this situation. Here is some information about my project.

NI USB-6501

NIDAQmxBase370, NIDAQ1501f3

Visual C++ 2008, Windows XP

 

What I need to do is:

There is a periodic signal input from the board to my computer.

The input period is ~ 330 ms. The pulse width is ~ 0.7 ms.

I need to deal with something every time the pulse appears.

 

I tried to do this by reading continuously, but some of the pulses were missed because my program can only deal with this data-reading thread every 1 ms.

 

Is there any smarter way to do this please?

 

I would have a help with this if possible.

 

Thank you very much!

 

Best Regards,

 

Liyan


Viewing all articles
Browse latest Browse all 659

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>