Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Derivative (Simulation Module)

LabVIEW 8.2 Simulation Module Help
September 2006

NI Part Number:
371894A-01

»View Product Info

Calculates the derivative of a continuous signal. Details  Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
Polymorphic instanceSpecifies whether this function is Scalar or Vector. The default value is Scalar.
PreviewDisplays a graphical preview, if available, of the function output or configuration.

Block Diagram Inputs

ParameterDescription
inputSpecifies the input to the function.

Block Diagram Outputs

ParameterDescription
outputReturns the output of the function.

Derivative Details

This function uses the following first-order backward difference formula to calculate the output.

whereu is the input
y is the output
t is the current simulation time
Note  If the input signal you use has noise, this function might return unwanted results. Consider filtering noisy input signals to avoid this problem. For example, the following transfer function can provide a filtered derivative for a noisy signal.

where s is the Laplace transform variable.

Derivatives of Discontinuous Signals

If you take the derivative of a discontinuous signal, such as the Step Signal function, and integrate that derivative, the LabVIEW Simulation Module returns an error. Refer to the labview\examples\simulation\PID\PID.llb for an example of how to address this scenario without causing an error.

Feedthrough Behavior

All input/output pairs of this function have direct feedthrough behavior.

Example

Refer to the derivative VI in the labview\examples\simulation\Getting Started\Continuous Linear directory for an example of using the Derivative VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit