VeriStand .NET API Reference

IWorkspace.GetSingleChannelValue Method

Gets the value of a single channel on the target.

Namespace: NationalInstruments.VeriStand.ClientAPI
Assembly: NationalInstruments.VeriStand.ClientAPI (in NationalInstruments.VeriStand.ClientAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Function GetSingleChannelValue ( _
	name As String, _
	<OutAttribute> ByRef newVal As Double _
) As Error
C#
Error GetSingleChannelValue(
	string name,
	out double newVal
)
Visual C++
Error^ GetSingleChannelValue(
	String^ name, 
	[OutAttribute] double% newVal
)

Parameters

name
Type: System.String
The name of the channel. You must enter the full path to the channel as specified in the system definition file. For example:

Targets/Controller/Simulation Models/Models/delay_random/Inports/In1

newVal
Type: System.Double %
The value of the specified channel.

Return Value

Returns an Error object. If no error occurs, the Code property of the Error object is 0.

See Also