23.11.2014 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_get_records<br />

Syntax<br />

C:<br />

int16 GAGEAPI gage_get_records (uInt16 far *records, int16 record, uInt16 far *segment,<br />

uInt16 far *index, uInt16 far *typename, uInt16 far *status);<br />

Visual BASIC:<br />

Function gage_get_records (records As Integer, ByVal record As Integer, segment As Integer,<br />

index As Integer, typename As Integer, status As Integer) As Integer<br />

Remarks<br />

gage_get_records can be used to read the gage_board_location array. The array must be allocated by the<br />

calling program. The array is initialized by using a call to either gage_set_records or<br />

gage_read_config_file.<br />

The record parameter is the board number of the record to be read, beginning with 0.<br />

The segment, index, typename and status parameters are the values in the gage_board_location array for<br />

that particular board.<br />

segment and index are the values that were set by the GSINST.EXE or GAGECFG.EXE configuration<br />

program.<br />

The typename and status parameters return the board type and the initialization status of the board as one<br />

of the predefined constants (GAGE_ASSUME_XXXXX, where XXXXX is a board type, etc.) declared in<br />

the file GAGE_DRV.H.<br />

The status parameter will hold any errors that occurred during board initialization.<br />

Return Value<br />

The return value is one if the record parameter is in the range (0 to GAGE_B_L_MAX_CARDS - 1) and<br />

zero otherwise. If the return value is one, the segment, index, typename and status parameters will<br />

contain valid values for the specified record.<br />

See also<br />

gage_set_records, gage_driver_initialize and gage_read_config_file<br />

Examples<br />

C:<br />

gage_get_records ((uInt16 far *)gage_board_location), 0, (uInt16 far *)(&segment),<br />

(uInt16 far *)(&index), (uInt16 far *)(&typename), (uInt16 far *)(status));<br />

Note: the typecasts may not be necessary, depending on the memory model used.<br />

Visual BASIC:<br />

ret = gage_get_records (gage_board_location (0), 0, segment, index, typename, status)<br />

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

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

Saved successfully!

Ooh no, something went wrong!