Channel.RawMax

Description

Returns or sets the maximum value (a Double) given by the input device.

C# Syntax

// get accessor
Double rtn = Channel.RawMax;

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)
logmessage "The channel 1 rawmax is? " & (oChannel.RawMax)