|
SAA_channelGetDriverData
Retrieves the time and value data for all input and output DOFs of a driver.
This function retrieves the data from the most recent call to SAA_channelEval.
driverIndex [get_driver_index]
set data [SAA_AllocChannelData]
SAA_channelGetDriverData $driverIndex $data
driverIndex
- Index of the channel driver.
- Channel driver indices are stored in the
SAA_ChannelDriverInfo structures
returned by SAA_channelGetInfo.
data
- Returns an array of
SAA_ChannelData structures.
- To allocate the required memory for the driver data, use the macro
_SAA_ALLOCATE_CHNDATA().
This macro is defined in <SAA.h>. It takes a pointer to a SAA_ChannelDriverInfo
structure and allocates a block of memory large enough to hold the data for all DOFs.
- To find the data for a given DOF in this array, use the DOF index as the array index.
DOF indices are stored in the
SAA_channelGetDriverDofInfo
structures returned by SAA_channelGetInfo.
Return Value
Return correct usage if incorrect parameters are passed
"SI_ERR_ERROR_MSG" if there is no current channel run or if data
is null.
|