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_set_records<br />

Syntax<br />

C:<br />

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

uInt16 typename, uInt16 status);<br />

Visual BASIC:<br />

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

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

As Integer<br />

Remarks<br />

gage_set_records is used to initialize the gage_board_location array when the configuration file<br />

(GAGESCOP.INC) is either not found or not used. Using this routine is preferred because the format of<br />

the gage_board_location file is subject to change. The array gage_board_location should be allocated by<br />

the calling program and should be large enough (64 words) to hold the initialization for<br />

GAGE_B_L_MAX_CARDS boards.<br />

The record parameter is the number of the board to be initialized.<br />

The segment, index, typename and status parameters are the desired values for that particular board.<br />

segment and index are the values that are used by the GSINST.EXE, PCIINST.EXE, P500INST.EXE and<br />

GAGECFG.EXE configuration programs.<br />

The typename and status should be zero in a call to gage_set_records.<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.<br />

See also<br />

gage_driver_initialize and gage_get_records<br />

Examples<br />

C:<br />

gage_set_records ((uInt16 far *)gage_board_location, 0, seg, ind, , 0, 0);<br />

Visual BASIC:<br />

dummy = gage_set_records (gage_board_location (0), 0, seg, ind, , 0, 0)<br />

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

81

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

Saved successfully!

Ooh no, something went wrong!