VeriStand .NET API Reference

Procedure.AddNewCondition Method (String, String, BaseNode, ConditionStepComparison, BaseNode, Command)

Adds a new Condition step. This step compares Variable to Value and, if the Comparison condition is met, jumps to the procedure step specified by GotoLabel. This method uses a channel to specify the Value parameter.

Namespace: NationalInstruments.VeriStand.SystemDefinitionAPI
Assembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Public Function AddNewCondition ( _
	Name As String, _
	Description As String, _
	Variable As BaseNode, _
	Comparison As ConditionStepComparison, _
	Value As BaseNode, _
	GotoLabel As Command _
) As Boolean
C#
public bool AddNewCondition(
	string Name,
	string Description,
	BaseNode Variable,
	ConditionStepComparison Comparison,
	BaseNode Value,
	Command GotoLabel
)
Visual C++
public:
bool AddNewCondition(
	String^ Name, 
	String^ Description, 
	BaseNode^ Variable, 
	ConditionStepComparison Comparison, 
	BaseNode^ Value, 
	Command^ GotoLabel
)

Parameters

Name
Type: System.String
The name of the step.
Description
Type: System.String
The description of the step.
Variable
Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The channel in the system to use to compare with Value.
Comparison
Type: NationalInstruments.VeriStand.SystemDefinitionAPI.ConditionStepComparison
The condition to use when comparing Variable and Value.
Value
Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The channel value to compare with Variable.
GotoLabel
Type: NationalInstruments.VeriStand.SystemDefinitionAPI.Command
The procedure step to jump to when the Comparison condition is met.

Return Value

true (True in Visual Basic) if the Condition step was added successfully.

See Also