Channel.Value

Channel.Value

説明

チャンネルの値をDoubleとして戻したり、設定したりします。

C#構文

// get accessor

Object rtn = Channel.Value;

// set accessor

Channel.Value = Object;

VBScript の例

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)

logmessage "The channel 1 value is " & oChannel.Value

oChannel.Value = oChannel.Value + 10 

logmessage "Added 10 to the value, now: " & oChannel.Value