Channel.Offset

Description

Returns or sets the offset value of the channel as a Double.

C# Syntax

// get accessor

Double rtn = Channel.Offset;

// set accessor

Channel.Offset = Double;

Examples

VBScript Example

Application.Devices.enable = true

' first add the device if it is not there yet

set oDevice = Application.Devices.Item("PC1600")

If TypeName (oDevice) = "Nothing" Then

set oDevice = Application.Devices.AddDevice( "PC1600" )

End If

set oChannel = oDevice.Channel(1)

oChannel.Offset = 10

logmessage "The channel 1 Offset is? " & CSng(oChannel.Offset)