LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labviewcode wanted to count pulses from analog input

Can somebody help me with the following problem?
 
I don't have a Data Aquisition board so I use my steppermotor controller, the MID-7604, and it's analog input to read from a
sensor (photointerrupter) which outputs 0 or +5 Volts. I want to count how many times an output of 5 Volts appears.
The problem is that the signal is not a Waveform, so  the Daq functions in Labview won't work. I've tried to generate a waveform
from the signal but also no results.
 
What I have created now is a counter which counts every signal above an adjusted value. The problem is that it counts on and on
when the signal is above the value, I want it to count one time. (like a trigger which detect a low to high level signal)
 
In the attachment you see that program and an other I've found (event counter) doing what I want, but I haven't been able to transform it in to
my own problem. Please help me on this because I'm stuck right now.
 
Thanks in advance

Message Edited by Trabuca on 07-04-2005 02:56 AM

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

Hi,

there are some ways - one is using a shift-register.

Attached is a flank detector - each time "Boolean" changes from 0 to 1 or 1 to 0 the count is increased by one.

I hope that helps

Greez

Stefan

Message Edited by mycroft on 07-05-2005 06:41 AM

Message Edited by mycroft on 07-05-2005 06:41 AM

0 Kudos
Message 2 of 2
(2,838 Views)