13.07.2015 Views

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Gage API routines used:gage_set_records:Sets the values for the memory segment and I/O address in thegage_board_location array.intInitBoard (void)This routine is in APP_SUPP.C and does all the necessary calls in the proper order to initialize the driver.Some modifications to this routine are necessary if the programmer does not want the progress messagesdisplayed.Gage API routines used:gage_get_config_filename:gage_read_config_file:gage_driver_initialize:gage_board_type_size_to_text:gage_get_driver_info_structure:gage_get_driver_info:gage_get_boards_found:gage_initialize_start_capture:gage_select_board:gage_detect_multiple_record:Determines the complete path to the configuration file that containsthe board location data.Reads the configuration file and stores the data in an array of words.Fully configures each board found in the system.This routine returns a pointer to a string with the parameters thatcontain information about the <strong>CompuScope</strong> board(s) installed in thesystem.Returns the size of the main structure used by the driver and alsoretrieves the driver version and number.Fills a structure with the relevant information from the drivervariables about the current settings on the current <strong>CompuScope</strong>board.Determines the number of the <strong>CompuScope</strong> boards found.Sets up the gage_start_capture routine.Sets the driver so that the current board is the board identified bythe number passed to the routine.Used to determine if a <strong>CompuScope</strong> board has multiple recordcapability.void SetBoard (void)This routine is in APP_SUPP.C. It uses the boarddef structure named board, which was previously loadedwith the desired capture parameters. The sample program initializes these parameters statically.Note that the order in which SetDefaultBoardLocation, InitBoard and SetBoard are called is importantfor the proper operation of the <strong>CompuScope</strong> hardware. The order is also important if the user wants thedriver to correctly maintain such information as the amount of memory available for each channel. Thevalues of the GAGE constants are defined in GAGE_DRV.H.Gage API routines used:gage_get_driver_info:gage_select_board:gage_capture_mode:gage_input_control:Fills a structure or record with the relevant information from thedriver variables about the current <strong>CompuScope</strong> board settings.Sets the driver so that the current board is the board identified bythe number passed to the routine.Sets the data capture mode and the sampling rate.Used to set up the input channels on the <strong>CompuScope</strong> boards. Thisroutine must be called for each channel in the system.<strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l Page 43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!