Campbell CR800 Especificações Página 234

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 324
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 233
Section 8. Processing and Math Instructions
Sin Function Example
The example uses Sin to calculate the sine of an angle from a Volt input.
Dim Degrees, Pi, Radians, Ans 'Declare variables.
Pi = 4 * Atn(1) 'Calculate Pi.
Degrees = Volt(1) 'Get input.
Radians = Degrees * (Pi / 180) 'Convert to radians.
Ans = Sin(Radians) ‘The Sine of Degrees.
SinH (Expression)
The SINH function returns the hyperbolic sine of an expression or value.
Syntax
x = SINH( Expr )
Remarks
The SINH function returns the hyperbolic sine [ SINH(x) = 0.5( ex - e-x ) ] for
the value contained in the Expr argument.
The example uses SINH to calculate the hyperbolic sine of a voltage input.
Public Volt1, Ans 'Declare variables.
BeginProg
Scan ( 1, min, 3, 0)
VoltDiff(Volt1,1,mV5000,1,True,100,500,1,0)
'Returns voltage on Channel(1) to Volt(1)
Ans = SINH( Volt1 ) 'The Hyperbolic Sine of Volt1.
NextScan
EndProg
Sqr (Number)
Returns the square root of a number.
Syntax
x = Sqr (number)
Remarks
The argument number can be any valid numeric expression that results in a
value greater than or equal to 0.
Returns the square root of the value in parentheses.
8-32
Vista de página 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 323 324

Comentários a estes Manuais

Sem comentários