![Campbell CR5000 Скачать руководство пользователя страница 204](http://html1.mh-extra.com/html/campbell/cr5000/cr5000_operators-manual_489195204.webp)
Section 8. Processing and Math Instructions
8-32
Tan Function Example
The example uses Tan to calculate the tangent of an angle from a Volt(1) input.
Dim Degrees, Pi, Radians, Ans
'Declare variables.
Pi = 4 * Atn(1)
'Calculate Pi.
Degrees = Volt(1)
'Get user input.
Radians = Degrees * (Pi / 180)
'Convert to radians.
Ans = Tan(Radians)
‘The Tangent of Degrees.
TANH (Source)
The TANH function returns the hyperbolic tangent of an expression or value.
Syntax
x = TANH (Source)
Remarks
The TANH function returns the hyperbolic tangent [ tanh(x) = sinh(x)/cosh(h) ]
for the value defined in Source.
TANH Function Example
The example uses TANH to calculate the hyperbolic tangent of a voltage input.
Public Volt1, Ans
'Declare variables.
VoltDiff(Volt1,1,mV5000,1,True,100,500,1,0)
'Returns voltage on Channel(1) to Volt(1)
Ans = TANH( Volt1 )
'The Hyperbolic Tangent of Volt1.
XOR
The XOR function is used to perform a logical exclusion on two expressions.
Syntax
result = expr1 XOR expr2
Remarks
If only one of the expressions evaluates True, result is True. If either
expression is a Null, result is also a Null. When neither expression is a Null,
result is determined according to the following table:
If expr1 is
And expr2 is
The result is
True
True
False
True
False
True
False
True
True
False
False
False
Содержание CR5000
Страница 39: ...Section 1 Installation and Maintenance 1 15 S A N Y O FIGURE 1 11 6 Removal of band clamp and battery ...
Страница 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Страница 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Страница 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Страница 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Страница 206: ......
Страница 236: ...Index Index 4 This is a blank page ...
Страница 237: ...This is a blank page ...