Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Relay Function

LabVIEW 2009 Control Design and Simulation Module Help

Edition Date: June 2009

Part Number: 371894D-01

»View Product Info

Owning Palette: Nonlinear Systems Functions

Requires: Control Design and Simulation Module

Returns one of two values based on the value of the input 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.
ParametersLists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box.
PreviewDisplays a graphical preview, if available, of the function output or configuration.
Parameter InformationContains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box.
Parameter sourceSpecifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box.
output when offSpecifies the value of the output when the relay is in the off state. The default value is –10.
output when onSpecifies the value of the output when the relay is in the on state. The default value is 10.
switch off pointSpecifies the value below which the input must fall to switch from the on state to the off state. The default value is –1. The value of this parameter must be less than or equal to the value of the switch on point parameter, or LabVIEW returns an error.
switch on pointSpecifies the value above which the input must rise to switch from the off state to the on state. The default value is 1. The value of this parameter must be greater than or equal to the value of the switch off point parameter, or LabVIEW returns an error.

Block Diagram Inputs

ParameterDescription
output when offSpecifies the value of the output when the relay is in the off state. The default value is –10.
output when onSpecifies the value of the output when the relay is in the on state. The default value is 10.
switch off pointSpecifies the value below which the input must fall to switch from the on state to the off state. The default value is –1. The value of this parameter must be less than or equal to the value of the switch on point parameter, or LabVIEW returns an error.
switch on pointSpecifies the value above which the input must rise to switch from the off state to the on state. The default value is 1. The value of this parameter must be greater than or equal to the value of the switch off point parameter, or LabVIEW returns an error.
inputSpecifies the signal to which you want to apply the function.

Block Diagram Outputs

ParameterDescription
outputReturns the signal that results from applying the function to the input signal.

Relay Details

The following equations define the output of this function.

When the relay is in the on state, the relay remains in the on state until the input falls below the value of the switch off point. When the relay is in the off state, the relay remains in the off state until the input exceeds the value of the switch on point. The relay initially is in the off state.

Feedthrough Behavior

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

Example

Refer to the SimEx relay VI in the labview\examples\Control and Simulation\Simulation\Nonlinear directory for an example of using the Relay VI.


 

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