Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

6009 analogue to digital conversion

I am trying to take in an analogue signal and convert it to digital. Once this is done i have to measure the pulse width of this digital signal. This all has to be done in low level programming mxBase because i am using the USB 6009 DAQ card which has no DAQ assistant software available yet
0 Kudos
Message 1 of 2
(2,883 Views)
Hi Dave_Wex,
you're actually talking about an algorithm to interrogate the analog acquired signal and find out a pulse width.
There's a couple of ways to do this.
First, timing is the key. Open up one of the analog input examples, and you can then take the signal acquired, search it for values where it first goes over the 2.5V mark, and then for the first time it drops back below.
A possible algorithm in LV 7.1 is below.
This requires at least 2 pulses to work for the top algorithm, one pulse for the second algorith (only works with a single pulse acquired), and only analyses the first pulse fpr the bottom algorithm


Please let me know if that helps

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 2
(2,873 Views)