Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Count digital I/O for a certain period

Hi, 

Im challanged with LabView and I need to count a digital period. Im supposed to count number of cycles on a motor that switch from left to right. Each cycle is one left/right iteration. My challange is that, on my system there is som spikes, so i need to count for some ms or x number of samples to be sure, that I have an high- or low-level. This at the moment my main task..

Further I need to count one up for each cycle and show it. Later I also need to save the exact number of which cycle the connection is lost.. 

I tried to illustrate my signal with the time and the spike.

DigitalSignal.PNG
The whole systems is sopposed to chech the connection in a USB cable and it's also connected to a DAQ USB-6009. 

I have LabView 15, so I created some snippets which I hope you can see or open. The first image is my first steps and the second image is the whole code. 
FirstSteps

Complete system:

CompleteSystem.png

 

Please share your ideas and you most welcome to come with examples 🙂 

Thanks in advance

0 Kudos
Message 1 of 1
(3,950 Views)