Sensoray 118 Manual de usuario Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
Sensoray Model 118 Smart A/D™ Instruction Manual 29 Commands: Pressure/Strain Gage
6.4.5 SetGageCal
Restores calibration parameters to a strain gage channel.
These parameters must have been previously obtained
via execution of the ReadGageCal command.
The data byte values that are embedded in this command
string are represented in an internal format that is
meaningful only to the Smart A/D™.
Driver
// Load a channel’s gage calibration parameters from an array.
VOID SetGageCal( USHORT BasePort, UCHAR Channel, SHORT *pArray )
{
SendByte( BasePort, Channel | CMD_SET_GAGECAL );
for ( USHORT parm = 0; parm < 3; parm++ )
SendWord( BasePort, *pArray++ );
}
Example
// Restore gage calibration parameters back onto channel 6.
// Assume that the GetGageCal() function previously stored the gage
// calibration parameters in the GageParms[] array as shown in the
// Read Gage Calibration example.
SetGageCal( MyBasePort, 6, GageParms );
Command: (144 + Chan),(S0),(S1),(S2),(S3),(S4),(S5)
Response: None
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 37 38

Comentarios a estos manuales

Sin comentarios