04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

7.7.3.11 System Signatures<br />

Signatures help assure system integrity and security. The following resources<br />

provide information on using signatures.<br />

7.7.4 Tips<br />

• Signature() instruction in Diagnostics (p. 483).<br />

• RunSignature entry in table Status Table Fields and Descriptions (p. 528).<br />

• ProgSignature entry in table Status Table Fields and Descriptions (p. 528).<br />

• OSSignature entry in table Status Table Fields and Descriptions (p. 528).<br />

• Security (p. 70)<br />

Many signatures are recorded in the Status table, which is a type of data table.<br />

Signatures recorded in the Status table can copied to a variable using the<br />

programming technique described in the Program Access to Data Tables (p. 148).<br />

Once in variable form, signatures can be sampled as part of another data table for<br />

archiving.<br />

7.7.4.1 Use of Variable Arrays to Conserve Code Space<br />

CRBasic example Use of Variable Arrays to Conserve Code Space (p. 150) shows<br />

example code to convert twenty temperatures in a variable array from °C to °F.<br />

Note When using the () syntax, whether on the disable parameter or with<br />

multiplier and offset on measurement instructions, if the parameter expression is<br />

more than a simple reference to a variable, e.g., disvar() + 5, or multiplier() * 4, or<br />

NOT enable_var(), the () syntax is ignored and reps will not take place for the<br />

expression.<br />

CRBasic Example 24.<br />

For I = 1 to 20<br />

TCTemp(I) = TCTemp(I) * 1.8 + 32<br />

Next I<br />

Use of Variable Arrays to Conserve Code Space<br />

7.7.4.2 Use of Move() to Conserve Code Space<br />

The Move() instruction can be used to set an array or partial array to a single<br />

value or to copy to another array or partial array as shown in CRBasic example<br />

Use of Move() to Conserve Code Space (p. 150).<br />

CRBasic Example 25.<br />

Use of Move() to Conserve Code Space<br />

Move(counter(1),6,0,1)<br />

'Reset six counters to zero. Keep array<br />

'filled with the ten most current readings<br />

Move(TempC(2),9,TempC(1),9)<br />

'Shift previous nine readings to make room<br />

'for new measurement<br />

'New measurement:<br />

TCDiff(TempC(1),1,mV2_5C,8,TypeT,PTemp,True,0,_60Hz,1.0,0)<br />

150

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!