LibTiePie  0.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages
Controllable changed

Description

Functions to set notifications that are triggered when the generator controllable state has changed.

In certain conditions like when performing a streaming measurement with the oscilloscope, the generator cannot be controlled.

Functions

void GenSetCallbackControllableChanged (TpDeviceHandle_t hDevice, TpCallback_t pCallback, void *pData)
 Set a callback function which is called when the generator controllable property changes. More...
 
void GenSetEventControllableChanged (TpDeviceHandle_t hDevice, int fdEvent)
 Set an event file descriptor which is set when the generator controllable property changes. More...
 

Function Documentation

void GenSetCallbackControllableChanged ( TpDeviceHandle_t  hDevice,
TpCallback_t  pCallback,
void *  pData 
)

Set a callback function which is called when the generator controllable property changes.

Parameters
[in]hDeviceA device handle identifying the generator.
[in]pCallbackA pointer to the callback function. Use NULL to disable.
[in]pDataOptional user data.
Status values
INVALID_HANDLE The handle is not a valid generator handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
GenIsControllable
Since
0.4.0
void GenSetEventControllableChanged ( TpDeviceHandle_t  hDevice,
int  fdEvent 
)

Set an event file descriptor which is set when the generator controllable property changes.

Parameters
[in]hDeviceA device handle identifying the generator.
[in]fdEventAn event file descriptor. Use <0 to disable.
Note
This function is only available on GNU/Linux.
Status values
INVALID_HANDLE The handle is not a valid generator handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
GenIsControllable
Since
0.4.0