LibTiePie  0.4.0
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Groups Pages
Range

Functions

bool8_t GenGetAutoRanging (TpDeviceHandle_t hDevice)
 Get auto ranging.
 
bool8_t GenSetAutoRanging (TpDeviceHandle_t hDevice, bool8_t bEnable)
 Set auto ranging.
 
uint32_t GenGetRanges (TpDeviceHandle_t hDevice, double *pList, uint32_t dwLength)
 Get supported ranges.
 
double GenGetRange (TpDeviceHandle_t hDevice)
 Get range.
 
double GenSetRange (TpDeviceHandle_t hDevice, double dRange)
 Set range.
 

Detailed Description

Function Documentation

bool8_t GenGetAutoRanging ( TpDeviceHandle_t  hDevice)

Get auto ranging.

Parameters
hDeviceA device handle.
Returns
BOOL8_TRUE if enabled, BOOL8_FALSE if disabled.
double GenGetRange ( TpDeviceHandle_t  hDevice)

Get range.

Parameters
hDeviceA device handle.
Returns
Range.
uint32_t GenGetRanges ( TpDeviceHandle_t  hDevice,
double *  pList,
uint32_t  dwLength 
)

Get supported ranges.

Example:

uint32_t dwRangeCount = GenGetRanges( hDevice , NULL , 0 );
double Ranges[ dwRangeCount ];
dwRangeCount = GenGetRanges( hDevice , Ranges , dwRangeCount );
printf( "GenGetRanges:\n" );
for( uint32_t i = 0 ; i < dwRangeCount ; i++ )
printf( "- %f\n" , Ranges[ i ] );
Parameters
hDeviceA device handle.
pListPointer to array.
dwLengthNumber of elements in array.
Returns
Total number of ranges.
bool8_t GenSetAutoRanging ( TpDeviceHandle_t  hDevice,
bool8_t  bEnable 
)

Set auto ranging.

Parameters
hDeviceA device handle.
bEnableBOOL8_TRUE to enable or BOOL8_FALSE to disable.
Returns
BOOL8_TRUE if enabled, BOOL8_FALSE if disabled.
double GenSetRange ( TpDeviceHandle_t  hDevice,
double  dRange 
)

Set range.

Example:

double dRange = 10;
dRange = GenSetRange( hDevice , dRange );
printf( "GenSetRange = %f" , dRange );
Parameters
hDeviceA device handle.
dRangeMaximum value that must fit within range.
Returns
Range.