Input channels
[Oscilloscope]

Functions

uint16_t ScpGetChannelCount (TpDeviceHandle_t hDevice)
bool8_t ScpChGetAutoRanging (TpDeviceHandle_t hDevice, uint16_t wCh)
bool8_t ScpChSetAutoRanging (TpDeviceHandle_t hDevice, uint16_t wCh, bool8_t bEnable)
uint64_t ScpChGetCouplings (TpDeviceHandle_t hDevice, uint16_t wCh)
uint64_t ScpChGetCoupling (TpDeviceHandle_t hDevice, uint16_t wCh)
uint64_t ScpChSetCoupling (TpDeviceHandle_t hDevice, uint16_t wCh, uint64_t qwCoupling)
bool8_t ScpChGetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh)
bool8_t ScpChSetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh, bool8_t bEnable)
double ScpChGetProbeGain (TpDeviceHandle_t hDevice, uint16_t wCh)
double ScpChSetProbeGain (TpDeviceHandle_t hDevice, uint16_t wCh, double dProbeGain)
uint32_t ScpChGetRanges (TpDeviceHandle_t hDevice, uint16_t wCh, double *pList, uint32_t dwLength)
double ScpChGetRange (TpDeviceHandle_t hDevice, uint16_t wCh)
double ScpChSetRange (TpDeviceHandle_t hDevice, uint16_t wCh, double dRange)

Function Documentation

bool8_t ScpChGetAutoRanging ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Check if auto ranging is enabled

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
1 if enabled, 0 if disabled
uint64_t ScpChGetCoupling ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get current coupling

See also:
Coupling types
Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
current coupling, a CT_* value
uint64_t ScpChGetCouplings ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get supported couplings

See also:
Coupling types
Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
supported couplings, set of ORed CT_* values
bool8_t ScpChGetEnabled ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Check if channel is enabled

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
1 if enabled, 0 if disabled
double ScpChGetProbeGain ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get channel probe gain

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
current probe gain
double ScpChGetRange ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get current range

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
Returns:
current range
uint32_t ScpChGetRanges ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
double *  pList,
uint32_t  dwLength 
)

Get array with supported ranges

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
pList pointer to array
dwLength number of elements in array
Returns:
total number of ranges
bool8_t ScpChSetAutoRanging ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
bool8_t  bEnable 
)

Set auto ranging

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
bEnable ?
Returns:
1 if enabled, 0 if disabled
uint64_t ScpChSetCoupling ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint64_t  qwCoupling 
)

Set coupling

See also:
Coupling types
Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
qwCoupling coupling: a CT_* value
Returns:
current coupling, a CT_* value
bool8_t ScpChSetEnabled ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
bool8_t  bEnable 
)

Set channel enable

Note:
Not yet supported, always enabled
Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
bEnable ?
Returns:
1 if enabled, 0 if disabled
double ScpChSetProbeGain ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
double  dProbeGain 
)

Set channel probe gain

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
dProbeGain probe gain
Returns:
current probe gain
double ScpChSetRange ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
double  dRange 
)

Set range

Parameters:
hDevice a device handle
wCh channel number: 0..ScpGetChannelCount() - 1
dRange ?
Returns:
current range
uint16_t ScpGetChannelCount ( TpDeviceHandle_t  hDevice  ) 

Get total number of channels supported by the oscilloscope

Parameters:
hDevice a device handle
Returns:
number of channels

Generated on Fri Apr 9 16:07:51 2010 for libtiepie by  doxygen 1.6.1