'Declaration
Public Function Get_ADC_PGA_Setting( _ ByVal DeviceHandle As IntPtr, _ Optional ByVal ChannelNumber As Byte _ ) As String
'Usage
Dim instance As USB_DLL Dim DeviceHandle As IntPtr Dim ChannelNumber As Byte Dim value As String value = instance.Get_ADC_PGA_Setting(DeviceHandle, ChannelNumber)
public string Get_ADC_PGA_Setting( IntPtr DeviceHandle, byte ChannelNumber )
Parameters
- DeviceHandle
- ChannelNumber
Return Value
If successful, The Return Value will be:
For USB100 and USB200:
Return Value = "Error"; There is no PGA Setting for this Type of Board
For USB110 and USB210:
Return Value = (00H); PGA Setting Gain = 1
Return Value = (01H); PGA Setting Gain = 2
Return Value = (02H); PGA Setting Gain = 4
Return Value = (03H); PGA Setting Gain = 8
Return Value = (04H); PGA Setting Gain = 16
Return Value = (05H); PGA Setting Gain = 32
Return Value = (06H); PGA Setting Gain = 64
Return Value = (07H); PGA Setting Gain = 128
If Unsuccessful, the Return Value will be:
Return Value = "Error"; An Error occured when attempting to Get_ADC_PGA_Setting