23.11.2014 Views

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#define GAGE_B_L_STATUS_START (GAGE_B_L_MAX_CARDS *<br />

GAGE_B_L_ELEMENT_SIZE)<br />

#define GAGE_B_L_BUFFER_SIZE (GAGE_B_L_MAX_CARDS *<br />

(GAGE_B_L_ELEMENT_SIZE +<br />

GAGE_B_L_STATUS_SIZE))<br />

The format of the array is: first GAGE_B_L_STATUS_START words are for the <strong>CompuScope</strong> segment<br />

and index values, each pair occupying GAGE_B_L_ELEMENT_SIZE words, for each of the possible<br />

GAGE_B_L_MAX_CARDS boards. A status field is provided for each potential <strong>CompuScope</strong> location<br />

that is GAGE_B_L_STATUS_SIZE words in length. The values for the status fields are initialized to 0 by<br />

gage_get _config_filename. The status fields are updated by the gage_driver_initialize routine, whose<br />

description explains their meaning.<br />

Return Value<br />

If the return value is greater than 0, it represents the number of records initialized.<br />

If the number is less than zero, it corresponds to the error encountered. The errors are:<br />

-1 file does not exist.<br />

-2 file cannot be opened.<br />

-3 file size cannot be determined.<br />

-4 file size module four is not zero.<br />

-5 file size indicates that more boards than the driver supports are present.<br />

-6 file cannot be read successfully.<br />

-7 file cannot be closed.<br />

(0 is reserved for future use.)<br />

See also<br />

gage_driver_initialize and gage_get_config_filename<br />

Examples<br />

C:<br />

expected = gage_read_config_file ((char far*)("GAGESCOP.INC"),<br />

(uInt16 far*)(&gage_board_location));<br />

Visual BASIC:<br />

expected = gage_read_config_file (board_loc_file, gage_board_location (0))<br />

<strong>CompuScope</strong> API Reference <strong>Manua</strong>l 46

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

Saved successfully!

Ooh no, something went wrong!