beautypg.com

A.6.8 integrated processing – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 499

background image

Appendix A. CRBasic Programming Instructions

499

 

Round 
Rounds a value to a higher or lower number. 

Syntax 

variable = Round (Number, Decimal)

SGN 
Finds the sign value of a number. 

Syntax 

x = SGN(source)

Sqr 
Returns the square root of a number. 

Syntax 

x = SQR(number)

A.6.8 Integrated Processing

DewPoint 
Calculates dew point temperature from dry bulb and relative humidity. 

Syntax 

DewPoint(Dest, Temp, RH)

PRT 
Calculates temperature from the resistance of an RTD.  This instruction has been 
superseded by PRTCalc() in most applications. 

Syntax 

PRT(Dest, Reps, Source, Mult)

PRTCalc 
Calculates temperature from the resistance of an RTD according to a range of 
alternative standards, including IEC. 

Syntax 

PRTCalc(Dest, Reps, Source, PRTType, Mult, Offset)

SolarPosition 
Calculates solar position 

Syntax 

SolarPosition(Dest, Time, UTC_OFFSET, Lat_c, Lon_c, Alt_c,

Pressure, AirTemp)

SatVP 
Calculates saturation‐vapor pressure (kPa) from temperature. 

Syntax 

SatVP(Dest, Temp)

StrainCalc 
Converts the output of a bridge‐measurement instruction to microstrain. 

Syntax 

StrainCalc(Dest, Reps, Source, BrZero, BrConfig, GF, v)