beautypg.com

A.6 processing and math instructions, A.6.1 mathematical operators – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 470

background image

Appendix A. CRBasic Programming Instructions

470 

 

 

SDMSIO4 
Controls and transmits / receives data from an SDM‐SIO4 Interface. 

Syntax 

SDMSIO4(Dest, Reps, SDMAddress, Mode, Command, Param1,

Param2, ValuesPerRep, Multiplier, Offset)

SDMSpeed 
Changes the rate the CR800 uses to clock SDM data. 

Syntax 

SDMSpeed(BitPeriod)

SDMSW8A 
Controls and reads an SDM‐SW8A. 

Syntax 

SDMSW8A(Dest, Reps, SDMAddress, FunctOp, SW8AStartChan, Mult,

Offset)

SDMTrigger 
Synchronize when SDM measurements on all SDM devices are made. 

Syntax 

SDMTrigger

SDMX50 
Allows individual multiplexer switches to be activated independently of the 
TDR100 instruction. 

Syntax 

SDMX50(SDMAddress, Channel)

TDR100 
Directly measures TDR probes connected to the TDR100 or via an SDMX50. 

Syntax 

TDR100(Dest, SDMAddress, Option, Mux/ProbeSelect, WaveAvg,

Vp, Points, CableLength, WindowLength, ProbeLength,
ProbeOffset, Mult, Offset)

TimedControl 
Allows a sequence of fixed values and durations to be controlled by the SDM task 
sequencer enabling SDM‐CD16x control events to occur at a precise time.  See 
the appendix Relay Drivers

 (p. 541).

 

Syntax 

TimedControl(Size, SyncInterval, IntervalUnits, DefaultValue,

CurrentIndex, Source, ClockOption

A.6 Processing and Math Instructions

A.6.1 Mathematical Operators

Note Program declaration AngleDegrees() (see Program Declarations

(p. 451)

)

sets math functions to use degrees instead of radians.