LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter problem

Hello

 

 

I'm new to LabVIEW.

 

 

 

I want to make a program to measure RPM by using a switch between AI15 and +5V on the USB-6215. I have setup a program in labview "Sample on demand" and a filter, because when i connect a wire only to the AI15 i get a very noisy signal. But when the USB-6215 is on "sample on demand" the filter doesn't work???? Only in Continuous mode..

 

Can somebody please look my vi to help me modify the program to measure rpm? 

0 Kudos
Message 1 of 8
(3,753 Views)
You haven't included your VI
David
www.controlsoftwaresolutions.com
0 Kudos
Message 2 of 8
(3,739 Views)
Sorry, here it is 🙂
0 Kudos
Message 3 of 8
(3,731 Views)

The filter you are using expects a number of points (for example in the form of a waveform or an array of points), whereas you are passing it a single point.

 

You could try the following: -

 

Acquire a number of points and build waveform/array point by point then filter when there are a number of points (you could store the points on a FIFO basis, or filter after all data has been acquired.)

 

Or, use a filter that works on a point by point basis

David
www.controlsoftwaresolutions.com
0 Kudos
Message 4 of 8
(3,707 Views)

Also,

 

it looks like you are measuring a digital signal - if so why have you conected it to an analogue input?

David
www.controlsoftwaresolutions.com
0 Kudos
Message 5 of 8
(3,706 Views)

 

 

 

Hello

 

It's because i dont know how to do it :s if you may could help, it would be great. The DAQmx is setup to measure analog voltage.. 

 

0 Kudos
Message 6 of 8
(3,693 Views)

You can find lots of examples in LabVIEW.

 

Try Help>>Find Examples then select Hardware Input and Output>>DAQmx

 

Similarly you can find some filtering examples; Help>>Find Examples then select Aanalysing and Processing Signals>>Filtering and Conditioning

 

Rather than filtering have you considered adding some hysteresis to your switch level?

David
www.controlsoftwaresolutions.com
0 Kudos
Message 7 of 8
(3,682 Views)
0 Kudos
Message 8 of 8
(3,648 Views)