LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect signal stopped changing

Hi,

 

 

Currently I have a setup that basically operates a motor to move a certain object between certain movement limits and at a certain speed. As a result of the movement, another part of the machine will move also. This movement is registered by a sensor. I can successfully acquire data and move the motor, but sometimes we have to operate at extremely low speeds. In this case it's not necessary to move to the full extent of the limits. The important thing is that the movement of the second part is steady-state (that it reaches a DC value, or approximately a DC value). This steady state is a priori unknown.

 

The goal of my current task is to implement the motor movement as such, that when the second part has reached it's steady-state, the motor stops and does it's next movement.

 

To do this, I tried two approaches:

  1. Through the statistics VI, I can calculate the standard deviation on the signal and threshold this. This threshold is difficult to determine since the noise on the signal is not always the same.
  2. Through the curve fitting VI, I can take a number of points, fit a linear curve through it, and then look at the value for the slope or the squared error. Since the noise level increases the squared error and makes the slope vary also, this is a difficult way.

Is there anyone that has crossed paths with a similar problem yet? So basically, I want to be able to detect on a real time scale, whether a certain signal is saturated/stead-state.

 

Thx for your time!

Giovanni Vleminckx
---------------------------------------------------------------------------------------
Using LabVIEW 8.5 on Windows7
0 Kudos
Message 1 of 2
(2,576 Views)

That can be a tough problem.

 

The slope approach seems more reasonable.  The standard deviation tells you more about the noise than about the speed changes, especially for slow changes.

 

It really depends on the signal to noise ratio, how fast the system stabilizes, and other parameters.

 

When you change speeds, is it a step change or a gradual one? How does the size of the signal from the sensor for the smallest significant change compare to the noise levels? Do you have any other signals available, such as the speed input command or a motor speed sensor?

 

Lynn

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