CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Appendix A: Data StructuresUsed by <strong>CompuScope</strong>Driversgage_driver_info_type StructureAn important structure type used in the drivers and defined in GAGE_DRV.H is gage_driver_info_type.This structure type is used to obtain information about the currently selected board by calling thegage_get_driver_info routine. This routine is explained in the <strong>CompuScope</strong> API Reference <strong>Manua</strong>l. Notethat the parameters in a gage_driver_info_type structure cannot be directly changed from the C applicationlevel. The parameters are changed indirectly by changing the corresponding parameters in structures oftype either boarddef, srtable or irtype and then by making the appropriate API subroutine call. These callsare bundled correctly within the SetBoard() routine that resides in the app_supp.c source file. Thedefinition of the gage_driver_info_type structure type is below: The definition of this type may change infuture as additional Gage hardware and functionality is released. The changes, however, will always bedocumented within the README.TXT file that comes with the <strong>CompuScope</strong> C/C++ <strong>SDK</strong>.typedef struct {uInt16uInt16uInt16uInt32uInt32int32int32uInt16int16int16int16int16int16int16int16int16int16int16int16int32int16int16int16int16int16int16int16int16uInt16uInt32index;segment;board_type;max_memory;max_available_memory;max_memory;max_available_memory;bank_offset_value;mode;enable_a;enable_b;rate;multiplier;coupling_a;coupling_b;coupling_ext;gain_a;gain_b;gain_ext;trigger_depth;trigger_level;trigger_slope;trigger_source;trigger_res;multiple_recording;sample_offset;sample_resolution;sample_bits;external_clock_delay;external_clock_rate;<strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l Appendix A Page 55