Returns or sets the Scale factor of the channel as a Double.
// get accessor Double rtn = Channel.Scale; // set accessor Channel.Scale = Double; |
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.Scale = 5
logmessage "The channel 1 scale factor is? " & CSng(oChannel.Scale)
|