c070_data_source_c
status.i4.v = c070_data_source_c(data_source.i4.v [,source_spec.g.v])
This routine sets the data acquisition source for reading 070/071 data.
data_source source of 070/071 data
(DIO_SOURCE_ACCELERATOR -> get data from the
accelerator (default),
DIO_SOURCE_SAVERESTORE -> get data from save/restore,
DIO_SOURCE_DATABASE -> get data from the device
setting database,
DIO_SOURCE_MEMORY -> get data from a memory pool)
source_spec data acquisition specification depending on data source
(DIO_SOURCE_ACCELERATOR -> not used,
DIO_SOURCE_SAVERESTORE -> structure of type
DIO_SR_SPEC,
DIO_SOURCE_DATABASE -> not used,
DIO_SOURCE_MEMORY -> structure of type DIO_MEMORY_SPEC)
(default is NULL)
This function returns ACNET status values as follows:
OK success
DIO_BADARG invalid data source information passed
DIO_NOTYET unsupported data source
DIO_INSUFFICIENT_ARGS source spec was needed but was not passed
This function requires the following include files:
ul_cbsaux_h:auxlib_device_h, acnet_errors_h
Related functions:
c070_read_data_source, get_070_c, get_070_raw_c, get_070_frame_info_c,
get_070_frame_pointers_c, get_071_c, get_071_raw_c
C/C++ usage:
int status;
int data_source = DIO_SOURCE_ACCELERATOR;
void *source_spec = (void *) NULL;
status = c070_data_source_c(data_source,source_spec);