Sensoray 518 Manual de usuario Pagina 36

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 57
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 35
35
EXAMPLE:
‘ Channel 2 is connected to a linear slide potentiometer. It is
‘ necessary to measure the potentiometer’s position as a function
‘ of resistance. A good approximation to the potentiometer’s
‘ transfer function is determined to be:
f(R) = 0 * (R ^ 2) + 0.01 * (R) + 0. |
‘ The following code segment will set up channel 2 (assumed to have
‘ previously been declared as a “User-defined Resistive Sensor”) for
‘ linearizing the potentiometer’s measured resistance value:
CALL Send518Byte (192 + 2) ‘ send command & opcode to 518
CALL Send518Real (0) ‘ send A coefficient to 518
CALL Send518Real (.01) ‘ send B coefficient to 518
CALL Send518Real (.1) ‘ send C coefficient to 518
Vista de pagina 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 56 57

Comentarios a estos manuales

Sin comentarios