beautypg.com

Sensoray Smart A/D User Manual

Page 19

background image

S

ENSORAY

I

NSTRUCTION

M

ANUAL

S

MART

A/D D

RIVER

FOR

W

INDOWS

Page 17

3.9.5 SetGageCal()

Function:

Restores a gage calibration without having to perform a physical calibration.

Prototype:

void SetGageCal( long hBD, long channel, double gain, short offset );

Example:

///////////////////////////////////////////////////////////////////////////

// Restore gauge calibration on board number 0, channel 2, by using the

// values obtained in the GetGageCal() example above.

// Assumed: Channel 2 has been configured for strain/pressure gauge.

///////////////////////////////////////////////////////////////////////////

SetGageCal( 0, 2, gain2, offset2 );

Parameter

Type

Description

hBD

long

Board handle.

channel

long

Sensor channel number to be affected.

gain

double

Gauge “gain” parameter, as obtained from GetGageCal().

offset

short

Gauge “offset” parameter, as obtained from GetGageCal().