beautypg.com

Sensoray 518 User Manual

Page 30

background image

29

Set Gage Calibration

This command transfers strain gage slope and offset parameters to the coprocessor for a specific
strain gage channel. Typically, these parameters will have been previously obtained via
execution of the Read Gage Calibration command.

Note: it is necessary to implement a time delay between invocation of a Set Gage Calibration and
Read Gage Calibration command for the same channel. The time interval between execution of
these two commands should be at least 500 milliseconds to ensure proper operation of the Read
Gage Calibration command.

COMMAND: (144 + CHAN), (S0), (S1), (S2), (S3), (S4), (S5)
RESPONSE: NONE

EXAMPLE:

‘ This subprogram copies gage parameters from a linear array back
‘ onto a 518 coprocessor. Assume that the ReadGageParameters
‘ procedure (previous example) was used to load the array.

SUB WriteGageParameters (BasePort%, Channel%, ParmArray%())

CALL Send518byte (BasePort%, 144 + Channel%)

FOR Parm% = 0 TO 5

CALL Send518byte (BasePort%, ParmArray%(Parm%))
NEXT Parm%

END SUB