beautypg.com

Setgagespan, 3 setgagespan – Sensoray 118 User Manual

Page 29

background image

Sensoray Model 118 Smart A/D™ Instruction Manual

27

Commands: Pressure/Strain Gage

6.4.3 SetGageSpan

Sets the effective gain of a strain gage channel. Many
applications have the ability to simulate gage loads by
applying simulated zero and full-scale load conditions to
the gage channel.

To utilize this command, apply the zero-load signal onto
the channel and issue the

SetGageZero

command.

Next, switch the full-load signal onto the channel and
issue the

SetGageSpan

command.

Driver

// Issue a Set Gage Span command for the specified channel.

VOID SetGageSpan( USHORT BasePort, UCHAR Channel, SHORT LoadValue )

{

SendByte( BasePort, Channel | CMD_SET_GAGESPAN); // send chan & command

SendWord( BasePort, LoadValue ); // send load value

}

Example

// Calibrate the load cell connected to channel 2. Full-load is

// 40,000 pounds, and the Smart A/D output units are to be scaled to 10

// lbs/bit. At full-load, therefore, Smart A/D output will be 4,000.

// ... Wait until zero load is applied to the gage ...

SetGageZero( MyBasePort, 2 ); // Set the gage zero

// ... Wait until full-scale load is applied to the gage ...

SetGageSpan( MyBasePort, 2, 4000 ); // Set the gage span

Command: (208 + Chan),(DataMSB),(DataLSB)

Response:

None

This manual is related to the following products: