wg_device_type_c
status.i4.v = wg_device_type_c(device_names.i1a.r, device_types.i4a.r,
errors.i2a.r [,num_devices.i4.v])
This routine returns device types for requested waveform generator
devices.
names device names
(dio_get_terse_name_length characters per device)
device_types returned device type or array of device types
(WG_FAMILY_DEVICE -> family of waveform devices,
WG_MAIN_DEVICE -> main parameter page device,
WG_TIME_DEVICE -> time table device,
WG_MAP_DEVICE -> map device,
WG_SF_DEVICE -> scale factor device,
WG_VERSION_DEVICE -> version device,
WG_REF_DEVICE -> reference device,
WG_MUX_DEVICE -> mux device,
WG_GI_DEVICE -> G(I) table device,
WG_HI_DEVICE -> H(I) table device,
WG_GI_ABSC_DEVICE -> G(I) current table device,
WG_HI_ABSC_DEVICE -> H(I) current table device,
WG_CLOCK_DEVICE -> clock event table device,
WG_MDAT_DEVICE -> MDAT selection device,
WG_OFFSET_DEVICE -> offset table device,
WG_DELAY_DEVICE -> delay table device,
WG_FREQUENCY_DEVICE -> frequency table device,
WG_PHASE_DEVICE -> phase table device)
errors returned device error or array of errors
(OK -> success,
DIO_INVDEV -> not a supported waveform generator
device)
[num_devices] number of devices (default is 1)
This function returns ACNET status values as follows:
OK success
DIO_xxx error retrieving database info
positive value number of devices in error
This function requires the following include files:
ul_cbsaux_h:auxlib_device_h, acnet_errors_h
Related functions:
c46x_device_type_c, c453_device_type_c, c473_device_type_c,
v473_device_type_c, c475_device_type_c,
dio_get_terse_name_length, dio_set_terse_name_length_c
C/C++ usage:
static const char device_names[NUM_DEVICES*DEVICE_TERSE_NAME_LEN+1] =
"B:XQ1 B:XQ2 ";
short errors[NUM_DEVICES];
int status;
int device_types[NUM_DEVICES];
int num_devices = NUM_DEVICES;
status = wg_device_type_c(device_names,device_types,errors,
num_devices);