dio_memory_populate_query
status.i4.v = dio_memory_populate_query(source.i4.r,
source_data.g.v)
This routine returns the population mode for subsequent DIO memory
access. The default is to populate from data pool data.
See dio_memory_set_populate_c.
source returned source of memory data
(DIO_AUTOPOP_NONE -> do not auto populate,
DIO_AUTOPOP_DPM -> use real data pool to populate,
DIO_AUTOPOP_DBM -> use real database to populate,
DIO_AUTOPOP_SCR -> use Save/Restore file,
DIO_AUTOPOP_SDA -> use SDA file,
DIO_AUTOPOP_DL -> use Lumberjack file)
source_data returned data acquistion specification depending
on data source
(DIO_AUTOPOP_NONE -> not used,
DIO_AUTOPOP_DPM -> not used,
DIO_AUTOPOP_DBM -> not used,
DIO_AUTOPOP_SCR -> structure of type DIO_SR_SPEC,
DIO_AUTOPOP_SDA -> structure of type DIO_SDA_SPEC,
DIO_AUTOPOP_DL -> structure of type DIO_DL_SPEC)
This function returns ACNET status values as follows:
OK success
negative value ACNET error
This function requires the following include files:
diolib_h, acnet_errors_h
Related functions:
dio_memory_set_populate_c, dio_memory_get_raw_c, dio_memory_get_c,
dio_memory_get_array_c, dio_memory_read_raw_c, dio_memory_read_c,
dio_memory_set_raw_c, dio_memory_set_c, dio_memory_write_c,
dio_memory_set_array_c, dio_memory_control_c, dio_memory_cancel_c,
dio_memory_populate_c, dio_memory_pool_name_to_id_c
C/C++ usage:
char source_data[sizeof(DIO_SDA_SPEC)];
int status;
int source;
status = dio_memory_populate_query(&source,(void *) source_data);