background image

Appendix B.  Table-Based Dataloggers 

 

TABLE B.4-1.  Example of Status Table Entries 

LastSlowScan 

The last time that this slow scan executed. If the user has slow scans then 
this variable becomes an array with a value for the system slow scan and 
each of the user’s scans. 

SkippedSlowScan 

The number of scans that have been skipped in this slow sequence. If the 
user has slow scans then this variable becomes an array with a value for 
the system slow scan and each of the user’s scans. 

MeasureOps 

This is the number of task sequencer opcodes required to do all 
measurements in the system. This value includes the Calibration opcodes 
(compile time) and the system slow sequence opcodes. 

WatchdogErrors 

The number of Watchdog errors that have occurred while running this 
program. This value can be reset from the keyboard by going to status and 
scrolling down to the variable and pressing the DEL key. It is also reset 
upon compiling a new program. 

Low12VCount 

Keeps a running count of the number of occurrences of the 12VLow 
signal being asserted. When this condition is detected the logger ceases 
making measurements and goes into a low power mode until the system 
voltage is up to a safe level.  

StartUpCode 

A code variable that allows the user to know how the system woke up 
from poweroff. 

CommActive 

A variable signaling whether or not communications is currently active 
(increments each time the autobaud detect code is executed). 

ProgErrors 

The number of compile (or runtime) errors for the current program. 

ErrorCalib 

A counter that is incremented each time a bad calibration value is 
measured. The value is discarded (not included in the filter update) and 
this variable is incremented. 

VarOutOfBound 

Flags whether a variable array was accessed out of bounds. 

SkippedRecord 

Variable that tells how many records have been skipped for a given table. 
Each table has its own entry in this array. 

SecsPerRecord 

Output interval for a given table. Each table has its own entry in this array. 

SrlNbr 

Machine specific serial number. Stored in FLASH memory. 

Rev 

Hardware revision number. Stored in FLASH memory. 

CalVolts 

Factory calibration numbers. This array contains twenty values 
corresponding to the 20 integration / range combinations. These numbers 
are loaded by the Factory Calibration and are stored in FLASH. 

CalGain 

Calibration table Gain values. Each integration / range combination has a 
gain associated with it. These numbers are updated by the background 
slow sequence if the running program uses the integration / range. 

B-10 

Summary of Contents for PC400

Page 1: ...PC400 User s Manual Version 4 1 Revision 1 11 C o p y r i g h t 1 9 9 9 2 0 1 1 C a m p b e l l S c i e n t i f i c I n c...

Page 2: ......

Page 3: ...copy of the software is an upgrade from a previous version you must possess a valid license for the earlier version of software You may continue to use the earlier copy of software only if the upgrad...

Page 4: ...dia or documentation Campbell Scientific will correct errors without charge by providing new media addenda or substitute pages If Campbell Scientific is unable to replace defective media or documentat...

Page 5: ...Software 2 1 3 Installation Operation and Backup Procedures 3 1 3 1 CD ROM Installation 3 1 3 2 PC400 Operations and Backup Procedures 3 1 3 2 1 PC400 Directory Structure and File Descriptions 3 1 3...

Page 6: ...t 5 22 5 3 1 7 Ranges 5 22 5 3 1 8 Variables 5 23 5 3 1 9 Numerical Limitations 5 24 5 3 1 10 Mathematical Functions Details and Examples 5 24 5 3 1 11 Time Series Functions Details and Examples 5 26...

Page 7: ...ing Text 6 12 6 7 3 Printing Graphs 6 13 6 8 View Online Help 6 13 6 9 Assigning Data Files to View 6 13 7 Short Cut Program Generator 7 1 7 1 Overview 7 1 7 2 Creating a Program Using Short Cut 7 2 7...

Page 8: ...8 2 3 Input Location Editor 8 18 8 2 4 Input Location Anomalies 8 20 8 3 Final Storage Labels 8 21 8 4 Datalogger Settings Stored in the DLD File 8 22 8 4 1 Program Security 8 23 8 4 1 1 Setting Passw...

Page 9: ...s True 9 25 9 4 10 2 Expression Evaluation 9 26 9 4 10 3 Numeric Results of Expression Evaluation 9 26 9 4 11 Flags 9 27 9 4 12 Parameter Types 9 27 9 4 12 1 Expressions in Parameters 9 27 9 4 12 2 Ar...

Page 10: ...saction Log Format C 2 C 1 2 3 Communications Status Log Format C 15 C 1 2 4 Object State Log Format C 17 List of Tables 5 1 Comma Separated Field Formatted Printable ASCII and Table Oriented ASCII In...

Page 11: ...The main screen for PC400 provides three tabs for communications functions Clock Program Monitor Data and Collect Data as well as buttons to launch utilities for working with data files View Split and...

Page 12: ...sic dataloggers this screen displays the last record in final storage and updates it as new data is stored in the datalogger Note that this data is only for display purposes it is not automatically st...

Page 13: ...g languages Users familiar with programming for Edlog dataloggers can generate similar programs for CRBasic dataloggers to begin learning about programming in CRBasic as the CRBasic programs created b...

Page 14: ...timestamp visible as you scroll through columns of data Split has a new Time Sync to First Record option that can be used with the time sync function to avoid blank lines at the start of the output fi...

Page 15: ...olded Pressing the tab key can move focus from item to item Typing changes a selected text edit box Pressing the space bar toggles a selected check box A selected button can also be activated by press...

Page 16: ...Section 1 Introduction 1 6...

Page 17: ...ograms designed to run on Intel based computers running Microsoft Windows operating systems Recommended platforms for running PC400 include Windows XP Windows Vista or Windows 7 because they offer the...

Page 18: ...Section 2 System Requirements 2 2...

Page 19: ...utable files and help files are placed in the C Program Files CampbellSci PC400 directory Working directories will also be created under C Campbellsci for PC400 s configurations and data files user pr...

Page 20: ...were selected during installation PC400 Default directory for data files PC400 SYS PC400 working directory these files are controlled by the communications server and should not be disturbed by the u...

Page 21: ...ogger Initialization files store settings such as window size and position configuration of the data display etc From PC400 s menu choose Network Backup Restore Network and then press Backup The backu...

Page 22: ...n be corrupted note however that corruption is much less likely with a program crash than during a power loss since the computer operating system remains in control and can close the files left open b...

Page 23: ...e installation process PC400 offers an integrated main screen with three tabs for basic communications functions Clock Program Monitor Data and Collect Data and buttons from which to launch stand alon...

Page 24: ...munications It does not provide for automated scheduled data collection or automated clock checks It also doesn t support remote connections from other PCs In addition to the communications functions...

Page 25: ...ided on the right side of each screen by clicking the F1 key or by pressing the Help button for each Wizard screen You may also want to consult the manual for that particular communications hardware D...

Page 26: ...s While connected on the Clock Program tab you may also change the datalogger clock or send or associate a new program Note that the default Max Time On Line setting for most communications links is z...

Page 27: ...collected from the datalogger and only the most recent values actually collected will be displayed An example from a CR10X based weather station is below Note that even though mixed array dataloggers...

Page 28: ...when PC400 is closed and restarted The table name variable name or input location name and data value also will be displayed momentarily as a popup hint if you hover your cursor over a value for a fe...

Page 29: ...d in CR1000 CR3000 CR800 CR5000 and CR9000X dataloggers do not have predefined flags The first time a program is sent to the datalogger PC400 will look for a Public array with the name of Flag in the...

Page 30: ...ut Therefore control port 2 cannot be toggled on or off It is included on the display so that you can monitor its status NOTE A Boolean variable is a variable that can have one of two states high low...

Page 31: ...is also available via pull down menus Many of these are described in detail in other sections 4 5 1 View Menu PC400 can display the user interface component text for buttons dialog boxes etc in an alt...

Page 32: ...gram is sent PC400 queries the datalogger for its table definitions This information is used when displaying data in the Monitor Data tab and when collecting data If a new program is sent by another u...

Page 33: ...s and card memory if one is present Only the Summary tab is available for array based dataloggers NOTE The Table Fill Times tab lists the tables in the datalogger along with the maximum number of reco...

Page 34: ...ile Note that the Print and Save buttons are not enabled for the Table Fill Times tab Refer to individual datalogger manuals for a list of fields included in the status table for each datalogger and a...

Page 35: ...tes the size will be rounded up NOTE The Run Options for a file indicate whether it is set to Run Now Run On Start up or both Run Always The currently executing program is indicated by Run Now or Run...

Page 36: ...box that is used to control what program will be run in the datalogger Highlight a file and then select the Run Options button From the resulting dialog box select the run options Run Now The Run Now...

Page 37: ...tained unless one of the following occurs Data table name s change Data interval or offset change Number of fields per record change Number of bytes per field change Number of records per table table...

Page 38: ...wered down and powered back up Pressing Run Options to restart a stopped program in the CR1000 CR3000 or CR800 displays a different dialog box From the dialog box you choose Restart Program to begin r...

Page 39: ...top Program options 4 5 2 5 Terminal Emulator Terminal Emulator does just that it emulates a terminal connected to a datalogger or communications device Terminal emulator comes up showing a blank scre...

Page 40: ...for all the devices in the network will be saved A default is given for the directory and file name to be used for the backup or restore This can be changed by typing over the default directory and o...

Page 41: ...detail in their own sections of this manual 4 5 4 2 Options The following two options can be set 1 Automatically Check Datalogger Status This option allows you to determine when the datalogger status...

Page 42: ...erent types of message logs Transaction messages are the highest level and show every action undertaken by PC400 For example if you re monitoring a datalogger every second PC400 will show clock check...

Page 43: ...n of the PakBus network and the log messages for PakBus communication The list of devices and the log can be toggled off by clearing the Show List View and Show Log options respectively Software serve...

Page 44: ...nks and dynamic links Static links depicted using red lines are the communication links to dataloggers that have been set up in the software but which have not been confirmed by communicating with the...

Page 45: ...st every 5 seconds to search for PakBus neighbors with which it can communicate During this time the PakBus port is kept on line Broadcast Reset server only This option will reset the routing table in...

Page 46: ...Section 4 The PC400 Main Screen 4 24...

Page 47: ...ight data files Input Files maximum of eight are read by Split specific operations are performed on the data and the results are output to a new Output File or a printer Split creates a parameter file...

Page 48: ...a data set that contains 15 minute hourly and daily data The data was collected from BirchCreek a CR10X datalogger The CR10X was loaded with a program created by Edlog named Birch dld The 15 minute d...

Page 49: ...Section 5 Split 5 3...

Page 50: ...e typed in or the Browse button can be used to select from available files In this example BirchCreek dat will be selected as the input data file Selecting the data to copy is simplified by the use of...

Page 51: ...dow so click array 60 To paste the desired values from this array into the Select box select the field names while holding down the ctrl key All of the values could be selected by clicking the first o...

Page 52: ...in the If File Exists then list box an existing PRN file may be overwritten appended to or saved under a new name The Labels option from the toolbar can also assist in labeling the output values Once...

Page 53: ...e string will be highlighted in red and preceded by an asterisk with the words Bad Data in the lower right corner when the file is processed To run Split select RUN GO The hourly data will be split ou...

Page 54: ...cess Input files from other software but they must be formatted in Comma Separated ASCII Final Storage Binary Format Field Formatted ASCII Split default output format Printable ASCII Table Oriented AS...

Page 55: ...7 15 15 220 1 115 189 1500 94 1 69 20 35 260 6 FIELD FORMATTED 115 189 1200 89 6 55 3 25 36 270 115 189 1300 91 3 61 5 27 25 255 4 115 189 1400 92 7 67 7 15 15 220 1 115 189 1500 94 1 69 20 35 260 6...

Page 56: ...D Data from Burst Measurements To read this type of data and convert it to ASCII select Burst Format in the File Info box Once Burst Format is selected the Number of Values in Each Burst window in the...

Page 57: ...op Conditions are specified they must exist in the newly appended data or Split will never begin execution CAUTION Because Last Count keeps track of the number of bytes in the file if you delete data...

Page 58: ...e Split will start reading from the beginning of a file if the number is negative Split will start reading from the end of a file All characters including spaces carriage returns and line feeds are co...

Page 59: ...els per scan This number does not include the array ID or calibration data To break the results into a column for each channel enter the number of channels for the Break Arrays value Output File Tab O...

Page 60: ...data at the beginning of the data file The starting point can be any element within the array or a combination of elements within an array The font for Start Condition Stop Condition Copy and Select...

Page 61: ...onditions are true then the statement is true Split allows up to six conditions to be connected with or statements Additionally each or statement can contain up to three and conditions As with the and...

Page 62: ...t at a timestamp in the data that is between 55 and 65 minutes prior to the current PC time the closest 5 minute interval of the current day that is less than the PC time minus 60 minutes If you are p...

Page 63: ...and and or statements can be used when specifying the Stop Condition Section 5 3 1 3 as well as stopping based on PC time The array or record containing the Stop Condition is not included in the outp...

Page 64: ...put Files are added by choosing Edit Add Data File from the Split menu The same data file will be used as the Input File for each array Type in the array ID in the Copy field of the Input File tab for...

Page 65: ...the test During the second test data was output from arrays 100 and 102 During the third test data was output from arrays 100 and 101 To process these files using the C option the parameter file would...

Page 66: ...t the function affect one or more but not all of the files the F option is used in the Stop Condition field of the files that you want processed using the function The syntax for the F option is F ei...

Page 67: ...between 255 to 265 is desired the Copy condition would be 1 189 and4 90 150 and5 0 61 99 or1 189 and6 0 20 99 and7 255 265 Only Output Arrays with hours 1300 and 1500 Table 5 1 conform to the above Co...

Page 68: ...s meeting the Start Condition and Copy conditions are output to the Output File Processing is accomplished through arithmetic operators math functions spatial functions and time series functions 5 3 1...

Page 69: ...eded by asterisk the text bad data highlighted in a red box at bottom right of screen only lines with bad data output blanks inserted for bad values N A Report File or Printer Display only bad data op...

Page 70: ...as when a column is not large enough for the date function you will see the text bad data on the Split Runtime window 5 3 1 10 Mathematical Functions Details and Examples TABLE 5 6 Split Operators an...

Page 71: ...x returns the exponential base e to the power of element x Example Exp 4 00037 Frac x returns the fractional value of the element x Examples Frac 4 89 Frac 6 7 95 Int x returns the integer portion of...

Page 72: ...unt x n Number of data points in element Max x n Maximum Min x n Minimum RunTotal x n Running total Sd x n Standard deviation Smpl x n Sample raw value SmplMax x y n Sample y on a maximum x SmplMin x...

Page 73: ...output Refer to the Monthly summary example in Section 5 3 1 12 When Date and Edate are used within other functions they must be used with the older format Date doy y and Edate doy y instead of using...

Page 74: ...22 45 7 97 341 17 77 178 1800 67 33 23 06 6 758 344 1 20 74 178 1900 66 59 24 75 7 08 341 8 16 09 178 2000 64 52 26 03 8 76 337 2 14 91 178 2100 59 84 27 45 11 81 305 4 12 36 178 2200 56 19 35 46 15 6...

Page 75: ...3 8 55 33 min temp for 8 hours 59 79 min temp for 8 hours 55 22 min temp for 8 hours RunTotal x n returns a running total of element x for every line in the data set If an nth value is specified a run...

Page 76: ...found If an nth value is specified then it outputs the sample on a minimum every nth value otherwise it outputs the sample on a minimum at the end of file Examples SmplMin 3 5 11 86 on min temp sampl...

Page 77: ...the wind direction using an alphabetical abbreviation based on 8 quadrants WDQS n Outputs the wind direction using an alphabetical abbreviation based on 16 quadrants The Mt Logan data set is used for...

Page 78: ...aximum of thirty 30 labels are allowed per Select line Make sure that the column widths are big enough for the label to fit Otherwise the output will indicate Bad Data Examples Max Temp Max Temp outpu...

Page 79: ...an element containing wind direction For example if n 111 ESE would be returned in the output file Date format S H D Y Converts a datalogger s time stamp to a different format and encloses it in doub...

Page 80: ...is older format is still supported Split will mark the date as Bad Data if the time and date resulting from the conversion will not fit in the specified column width The on screen display and the repo...

Page 81: ...l trigger time series output for the first day of each month The syntax is avg 7 date 3 2 where you want to take a monthly average of element 7 and the day of year is contained in element 3 and the ye...

Page 82: ...Section 5 Split 5 36...

Page 83: ...1 wind chill index v wind speed in meters second T temperature in degrees C Note that at wind speeds between 0 to 4 mph 0 to 1 8 m s the wind chill should be ignored because this formula results in w...

Page 84: ...467 5 2791 493 51 10 635 51 142 13 439 6 9821 584 71 6 5016 43 703 13 044 7 6526 607 86 5 4526 41 815 12 9 5 3014 566 29 7 3368 45 206 Reference 1 Wind Chill Errors Edwin Kessler Bulletin of the Amer...

Page 85: ...ns from the number that determines the interval Sample on maximum and sample on minimum require two elements or expressions also separated by a semicolon 5 3 1 15 Time Synchronization The time synchro...

Page 86: ...NOTE Time elements can be identified without specifying a starting time e g 2 3 If you are working with only one file Split will begin processing that file at the first record in the file If any gap i...

Page 87: ...he Replace bad data with field is output to the Output File See Table 5 5 5 3 1 15 2 Using Time Synchronization While Starting Relative to PC Time Split tries to time sync files to the top of the hour...

Page 88: ...rwritten the new data will be added to the end of the existing file However the RPT and HTM files will be overwritten If Create New is selected Split will create all new files using the original file...

Page 89: ...ettings for Numbers the decimal symbol uses the character specified in the Decimal Symbol field the separator uses the character specified in the List Separator field These settings are typically foun...

Page 90: ...There are three report options File Printer HTML One or more can be selected A report sent to a file has the extension of RPT If the report is sent to a printer the printer must be on line In all cas...

Page 91: ...e Time Series processing if it satisfies the Copy line If the Trigger on Stop Condition is selected a Time Series output will occur each time the Stop Condition is met Start Stop On After Time In most...

Page 92: ...than 26 arrays several passes are required Change the Output file name and Start Condition for each pass Split may then be used to merge the multiple files No FF Suppresses form feeds and page breaks...

Page 93: ...2002 151 2200 05 31 02 22 00 1 701 193 6 10 2002 151 2300 05 31 02 23 00 1 476 31 99 10 2002 151 2400 05 31 02 00 00 1 123 106 2 Caution should be used when applying the date function and enabling or...

Page 94: ...Heading field at the bottom of the Output File page Time Series interval summaries cannot be assigned individual titles directly but you can use special functions such as Label and Crlf to create col...

Page 95: ...s used The syntax for this switch is SPLITR LOGAN R where LOGAN is the parameter file name The R switch should follow immediately after the parameter file name with no space between the two If a space...

Page 96: ...at any one time unless the M switch is used However if other commands are used along with Splitr such as opening the file in a spreadsheet copying it to an archive directory or appending it to an exis...

Page 97: ...put file names must be used In addition if long file names are used in the path you may need to surround the path and file name by double quotes NOTE Output File Options These switches are entered aft...

Page 98: ...File Format 2 Outputs the data using the Regional Settings of your Windows operating system for the decimal indicator and data value separator This is the same as choosing the Custom option for the F...

Page 99: ...d under the Other button of the Output File tab Bnnn Breaks a long array into multiple lines where nnn is the number of values to place on each line This is the same as choosing the Break Arrays check...

Page 100: ...TEST PRN SINKS R TEST1 DAT TEST2 DAT 1 189 executes the LOGAN PAR file on TEST DAT and outputs the results to TEST PRN then executes the SINKS PAR file on TEST1 DAT and outputs the results to TEST2 D...

Page 101: ...g this program View can also be run as a stand alone program by using Windows Explorer and double clicking on the View exe file in the C Program Files CampbellSci View folder A desktop shortcut can be...

Page 102: ...from which you can graph data values on the y axis against their timestamps on the x axis Keep Selected Graph On Top When data is being graphed and this option is selected the graph will always be at...

Page 103: ...u Files opened in this mode cannot be graphed A file opened in this mode can be viewed only in its original format i e as text This mode is most often used to open files other than data files or to qu...

Page 104: ...compiled in Edlog or ShortCut If a data file is opened that contains multiple arrays the entire data file will be opened in one window In addition each array will be opened in a separate window The wi...

Page 105: ...heck mark next to the item when it is active Deactivate it by selecting it again 6 4 4 File Information Selecting View View File Information from the menu will display information on the data file inc...

Page 106: ...the Tile Vertically button or choosing Window Tile Vertically from the menu A data window can be moved manually by clicking on the title bar and dragging it to the desired location The data view wind...

Page 107: ...t the width of a Line Graph either as a function of time in days hours minutes seconds and milliseconds or by the number of records being displayed If one of these two field is changed the other field...

Page 108: ...d Dragging the mouse cursor from bottom right to top left will undo the zoom This can also be accomplished by pressing the Undo Zoom button on the toolbar 6 5 6 Graph Cursor Pressing the Graph Cursor...

Page 109: ...scroll However moving the scroll bar on either the graph or the data file will still scroll the data file This is a toggle button When the lock is currently enabled there will be a lock on top of the...

Page 110: ...ace assigned to that axis A trace is selected by clicking on its name in the list above the Edit and Delete buttons Undo Zoom Returns the graph to its original state after zooming 6 6 Right click Menu...

Page 111: ...rmat option For a column containing a floating point number you can specify the number of decimal places the number of leading zeroes and whether the number is to be displayed in scientific notation S...

Page 112: ...race the data file and the datalogger and program that generated the data file Assign to Left Axis to use the selected trace s scale on the left y axis Assign to Right Axis to use the selected trace s...

Page 113: ...toolbar Once the help file is opened pressing the Contents tab will open the Table of Contents Choosing the Index tab will bring up an index Keywords can be typed in to search for a topic An in depth...

Page 114: ...Section 6 View 6 14...

Page 115: ...uickly and easily Short Cut effectively insulates the user from having to know the nuances of datalogger programming and the Edlog versus CRBasic programming languages It supports the most commonly so...

Page 116: ...nts a wizard that walks you through the steps of creating a datalogger program 7 2 1 Step 1 Create a New File or Open Existing File To begin creating a new program press the New Program button A dialo...

Page 117: ...he slot containing it and then press the Remove Module button At any time you may choose OK to accept the changes and close the dialog box or choose Cancel to exit out of the process Whenever you are...

Page 118: ...thereafter With each subsequent program you create the noise rejection you chose when the datalogger was initialized in Short Cut will be used However you can change the noise rejection from the Progr...

Page 119: ...s been changed will reflect the change as well NOTE Each time you create the first program for a datalogger model you will be presented with these dialog boxes e g the first time you create a CR10X pr...

Page 120: ...lt settings for that measurement including the measurement name units etc An example of choosing the CS105 Barometric Pressure Sensor is below Measurement name Measurement units Notes specific to this...

Page 121: ...culations folder With it you can enter your own custom calculation In the example below a new measurement AirTF is being created by performing calculations on an existing measurement AirTC Refer to th...

Page 122: ...ce You can print this diagram or the textual equivalent by choosing the Print button Many users find it handy to leave a printed wiring diagram in the enclosure with the datalogger in case a sensor ha...

Page 123: ...ask how many sensors to measure It will limit the number you can add to the available terminals on the device and it will add the number of measurements you request with unique measurement names to t...

Page 124: ...nal storage simply click on a measurement label on the left choose the data processing you want for that measurement by clicking one of the enabled buttons in the middle and Short Cut adds the necessa...

Page 125: ...dded for any one sensor For example you may want to store the maximum and minimum air temperature as well as the average Table based dataloggers have a TableName field as opposed to an array ID There...

Page 126: ...he datalogger In addition the Advanced Output for these dataloggers shown below allows for control of the number of records stored in the table The Table Name field is used to assign a unique name for...

Page 127: ...gramName SCW Example SCW in this example at the top of the screen is the file in which Short Cut keeps all of your selections for datalogger sensors outputs etc For CR10 CR10X CR500 510 CR23X and 21X...

Page 128: ...change the scan interval after you ve created the program this option provides that opportunity It presents the same pop up window as when you first choose a datalogger 7 3 2 Program Security Some dat...

Page 129: ...ent an ASCII program file which they then compile into machine code The CR200 205 does not have enough memory and processing capability to do this compilation so it s necessary to compile the program...

Page 130: ...e whether they are new programs or edited programs until it is changed again 7 3 8 AC Noise Rejection Some dataloggers have parameters available in their measurement instructions to provide some rejec...

Page 131: ...re not an SCW file 7 5 New Sensor Files Short Cut was designed with future flexibility in mind Datalogger and sensor support is provided as individual files and not part of the SCWIN executable As new...

Page 132: ...Section 7 Short Cut Program Generator 7 18...

Page 133: ...s are listed below Precompiler Edlog precompiles the program to check for errors and to create the file that is downloaded to the datalogger The precompiler will catch most errors Errors that the prec...

Page 134: ...ction of code is pasted into a program Edlog will automatically use existing locations for matching labels and assign new locations to new labels All location numbers in the pasted code are updated ac...

Page 135: ...nterval fields are protected text that cannot be deleted or commented out The asterisk is used to identify the beginning of a program table in the datalogger When the cursor is moved to the Execution...

Page 136: ...m Structure While Edlog is not a structured programming language there are some standard programming practices that will help you and others understand what the datalogger program is intended to do Co...

Page 137: ...tions the execution times are listed as 0 This occurs when the execution time is unknown e g P23 Burst Measurement FSL Final Storage Label files contain the final storage labels for the data values in...

Page 138: ...r double click the entry in the list If you need more information on an instruction select the instruction and click the Help button Note that to the right of each instruction name is a code for the i...

Page 139: ...line or at the right of instruction or parameter text A semicolon is used to mark comments Comments can also be used to temporarily remove instructions from a program for testing purposes In addition...

Page 140: ...is assumed to be a constant Floating point numbers are limited to six digits plus the decimal point and sign The operator s and or function s used in the expression are limited to those in the Operat...

Page 141: ...in degrees SQRT square root LN natural logarithm EXP exponent of e EXP 2 e2 RCP reciprocal RCP 4 1 4 0 25 ABS absolute value FRAC takes the fraction portion FRAC 2 78 78 INT takes the integer portion...

Page 142: ...perature 107 P11 1 1 2 2 3 1 4 2 5 1 0 6 0 0 2 Z X P31 1 2 2 5 3 Z F P30 1 1 8 2 0 3 3 4 Z X Y P36 1 3 2 5 3 5 5 Z F P30 1 32 2 0 3 3 6 Z X Y P33 1 3 2 5 3 6 Errors That Can Occur With Expressions Som...

Page 143: ...is missing a number or label before and or after the operator 2 An expression with a or operator does not have a number or label after the operator 3 An expression with an operator does not have a num...

Page 144: ...here is no operator between a set of parentheses and a number For Example This error message is displayed when a program contains any of these expressions tee 5 2 mu nu 103 bee 10 52 ef 2 sigma 17 RCP...

Page 145: ...rams and moving around in Edlog TABLE 8 1 2 Editor Keystrokes PgUp Page Up PgDn Page Down Up Arrow Move Up One Line Down Arrow Move Down One Line Right Arrow Move One Character Right Left Arrow Move O...

Page 146: ...can be created to store portions of programs which can then be inserted into a different program Library files are useful if you want to write different programs for the same sensor set or it you have...

Page 147: ...file Save the current file to disk and optionally precompile the program Index the parameter that is selected for information on indexing refer to your datalogger operator s manual Invoke the input l...

Page 148: ...ntion is a visual aid it has no meaning to the datalogger If the programmer chooses to use indention it can be done automatically or manually The settings for indention are found under Options Editor...

Page 149: ...cation number instead of the label use the mouse or press ctrl left arrow 8 2 2 Repetitions Many input output and output processing instructions have a repetitions parameter Repetitions REPS allow one...

Page 150: ...The first time it will sample the value stored in the TempC location The second time it will sample the value stored in the BatteryV location If an Input Location is inserted between the TempC and Ba...

Page 151: ...ags number of reads and writes and block information for a designated location number Wherever the datalogger program references a deleted location label the Input Location s number automatically beco...

Page 152: ...s is Edlog s handling of Input Locations for the REPS parameter Though only one Input Location is specified if REPS is greater than 1 additional Input Locations are created by Edlog There are certain...

Page 153: ...normally the input location label with a suffix indicating the type of output processing instruction that created it In the example below BattVolt_AVG is the average battery voltage that is stored as...

Page 154: ...solution stores data as a 4 byte floating point number Low resolution uses a 2 byte number Inloc Name is the label of the input location that the final storage data is based on Inloc Address is the nu...

Page 155: ...nabled Refer to the datalogger manual or Edlog s help file for additional information on Security in the datalogger 8 4 2 Final Storage Area 2 The ring memory for CR10 CR10X CR510 and CR23X datalogger...

Page 156: ...the size of your DLD file but still want to be able to monitor input locations on PC400 s Monitor Data tab you can put all of the labels that you want to view at the beginning of your list of input l...

Page 157: ...ings option This option refers only to the CR510 CR10X and CR23X NOTE 8 4 6 PakBus Settings PakBus dataloggers have various settings that allow them to function properly in a PakBus network In Edlog d...

Page 158: ...r Filter This option allows you to list expected neighbors that are available to the datalogger in the PakBus network The datalogger will attempt to issue a hello command to all the dataloggers listed...

Page 159: ...R200 Series CR800 Series CR5000 CR9000 and CR9000X dataloggers It is intended for use by experienced datalogger programmers who need more flexibility and control over the datalogger operation than wha...

Page 160: ...ns available in the Instruction Panel by clicking the drop down arrow to the right of the text box above the list This will allow you to display only instructions of a specific type such as Measuremen...

Page 161: ...of variables that have been defined in the program A sample list is shown below The variable list is sorted by variable type and then alphabetically by name In the list above the first green A denotes...

Page 162: ...log box 9 2 2 Right Click Functionality The result of a right click action varies depending upon your cursor location Right click an instruction name to show the Parameter dialog box to edit the instr...

Page 163: ...elect a program file to open File extension filters are provided to list only files of a certain type such as cr5 files for CR5000 programs Data files dat can also be opened Save Saves any changes to...

Page 164: ...cify a text string to search for and a text string to replace it with You can replace all occurrences of the text or check them one at a time to make sure they should be replaced Find Next Finds the n...

Page 165: ...e number will be listed before the error You can double click an error preceded by a line number and that line will be highlighted in the program editing window To move the highlight to the next error...

Page 166: ...e program is new After the compile and save this function sends the program to a user specified datalogger To do this use the Compile Save and Send item on the File menu or Compile menu or you can pre...

Page 167: ...nged or to delete data tables on the CPU that have the same name as tables declared in the new program Delete associated data tables Neither of these options affects existing data files on a card if o...

Page 168: ...program will be run if the datalogger loses power and then powers back up Run Always Run Now and Run On Power up can both be selected This sets the program s file attribute in the datalogger as Run Al...

Page 169: ...nding of the program You can simply reconnect to the datalogger and continue your work NOTE 9 3 3 Templates The use of templates can be a powerful way to quickly create a set of similar datalogger pro...

Page 170: ...ecting GoTo Go To Line 9 3 5 CRBasic Editor File Menu Many of the functions available from the CRBasic Editor Toolbar are found in this menu They have been discussed previously Other options include O...

Page 171: ...7 1 Editor Preferences This option sets up the appearance options for the text instructions and the behavior of pop up hints The Editor tab allows the user to toggle on or off the pop up hints for par...

Page 172: ...ll other fields on this tab will be disabled If either of the other two line options is chosen the remaining fields will be available for the user to customize as desired The Syntax Highlighting tab s...

Page 173: ...sor moves off the parenthesis the formatting will return to normal text 9 3 7 2 Instruction Panel Preferences This option determines whether or not the instruction dialog box will be displayed when th...

Page 174: ...ays a list of available instructions which can be used in your datalogger program based on the pre defined instruction filter selected with the drop down selection box 9 3 8 CRBasic Editor Tools Menu...

Page 175: ...tails about the output tables and the items they store as they are defined in the current CRBasic program The list can be copied to the clipboard for printing or other uses Set DLD Extension This opti...

Page 176: ...e for each instruction to demonstrate the use of the instruction in a program Declarations Make a list of what to measure and calculate Declare constants Within this list include the fixed constants u...

Page 177: ...are wired to sequential channels Rather than insert multiple instructions and several variables a variable array with one name and many elements may be used A thermocouple temperature might be called...

Page 178: ...t processing instructions are procedures that store the results of measurements or calculated values Output processing includes averaging saving maximum or minimum standard deviation FFT etc The instr...

Page 179: ...ew the program at a later date you will know what each section of code does Comments can be inserted into the program by preceding the text with a single quote When the program is compiled the datalog...

Page 180: ...ructure in the datalogger in order to optimize the time and space required Data are stored in tables such as TOA5 StnName Temp TIMESTAMP RECORD RefTemp_Avg TC_Avg 1 TC_Avg 2 TC_Avg 3 TC_Avg 4 TC_Avg 5...

Page 181: ...specify a fixed number or enter 1 to have the datalogger auto allocate the number of records The example creates a table name Temp outputs any time other conditions are met and retains 2000 records in...

Page 182: ...store the result in Table 9 1 and a disable variable that allows excluding readings from the average if conditions are not met A reading will not be included in the average if the disable variable is...

Page 183: ...dditional ways to represent numbers in a program scientific notation binary and hexadecimal Table 9 2 TABLE 9 2 Formats for Entering Numbers in CRBasic Format Example Value Standard 6 832 6 832 Scient...

Page 184: ...ression Evaluation The datalogger s expression evaluator evaluates an expression and returns a number A conditional statement uses the number to decide which way to branch The conditional statement is...

Page 185: ...nt Variable or Expression Constant Variable Array or Expression Name Name or list of Names Variable or Expression Variable Array or Expression Table 9 4 lists the maximum length and allowed characters...

Page 186: ...r Offset but use the same for each repetition For instance in the above example if Mult 2 and Offset 2 were used the instruction would use 0 115 and 0 234 for the Multiplier and Offset respectively fo...

Page 187: ...e timestamp 7 n microseconds into the current second Tablename eventend 1 1 is only valid for a data table using the DataEvent instruction Tablename eventend 1 1 1 if the last record of an event occur...

Page 188: ...Section 9 Datalogger Program Creation with CRBasic Editor 9 30...

Page 189: ...olbar 10 1 CardConvert CardConvert is a utility that is used to quickly read and convert binary datalogger data that is retrieved from a compact flash or a PCMCIA card The converted data is saved on t...

Page 190: ...ions Rebuild File Lists from the menu Any new files that have been stored since you last selected the drive or since the last rebuild will be added to the list Tip Right click within the file list to...

Page 191: ...cessing Use Filemarks CRBasic dataloggers have a FileMark instruction that allows you to store a filemark along with the data These filemarks are ignored by the LoggerNet or PC400 data collection proc...

Page 192: ...e If this option is selected the Julian day day of year will be used for the suffix instead of the year month day hour minute suffix Create New Filenames When the Create New Filenames option is select...

Page 193: ...on You may also want to consider using the Repair File option if you think there is additional data on the card that is not being converted and included in the output file With either case it is possi...

Page 194: ...t user interaction you will first need to create a CCF file that contains the CardConvert settings to be used when running from a command line To create the CCF file open CardConvert and select the de...

Page 195: ...which to enter the Source File and the Program File The Source File is the CSI or DLD file to be converted The Program File is the new CR file that will be created By default the resulting file name f...

Page 196: ...s in the field enable the Show Only Problem Messages check box If a comment in the Action Log is double clicked the associated instructions in both the Edlog program and the CRBasic program will be hi...

Page 197: ...should strongly consider keeping this message intact to avoid the possibility of overwriting a file that you transformed and then subsequently edited in the CRBasic Editor 10 2 2 Controls The followin...

Page 198: ...ng facility where a summary of the current configuration of a device can be shown on the screen and printed This configuration can also be saved to a file and used to restore the settings in the same...

Page 199: ...ge from Connect to Disconnect The tabs on the right side of the window will be replaced with tabs that represent the various operations that are available for that device in a connected state These op...

Page 200: ...alog box to prompt you for the operating system file usually a obj file You may be required to cycle power to the device or press a special program button When the device issues the appropriate prompt...

Page 201: ...outers contain routing tables that list the other PakBus nodes that are known to that datalogger This routing table is only available through the D17 mode see D descriptions in the datalogger s operat...

Page 202: ...mpts the baud rate will be automatically changed and the various protocols will be attempted again When DevConfig recognizes the response from the device and the device type is one of the supported ty...

Page 203: ...form the following functions Break large files into smaller files also known as baling Check for missing records by checking the record number and or timestamp Bale based on time Bale based on File Ma...

Page 204: ...he Convert Check button to convert the file If a conversion is in progress and you wish to stop it press the Abort button Log File If the Write Log File checkbox is checked a Log Txt file will be crea...

Page 205: ...tion to Overwrite the existing file or Cancel the conversion Note that if any of the baling options are selected new filenames will automatically be created as described below Missing Records If Times...

Page 206: ...Section 10 Utilities 10 18 Bale Info Use to specify the Start Time and Interval and start time for baling based on time...

Page 207: ...ded SE or differential DIFF on the wiring panel Many sensors such as thermistor temperature probes and wind vanes output analog signals Array based Datalogger See Mixed array Datalogger B Batch Files...

Page 208: ...ve and send email messages Coaxial cable Special type of cable with two conductors center conductor and outer shield conductor Classified by size impedance and loss characteristics Used to connect MD9...

Page 209: ...erver s data cache compare to Data Retrieval Data Point A data value that is sent to Final Storage as the result of an Output Instruction A group of data points output at the same time makes up a reco...

Page 210: ...rically erasable programmable read only memory the memory CR10X TD CR510 TD and CR23X TD dataloggers use to store their operating system A new operating system can be transferred to the datalogger usi...

Page 211: ...Text or objects can be highlighted by positioning the cursor where you want the highlight to begin holding the left mouse button and dragging it across the words or group of objects to be highlighted...

Page 212: ...erver to a third party application through a standard TCP IP socket Installed with LoggerNet Admin see the associated PDF file for more information Requires record specific acknowledgements for record...

Page 213: ...f dataloggers and communications devices that form the datalogger network Created using the EZWizard in PC400 or Setup screen in LoggerNet to communicate with the various dataloggers Node Part of the...

Page 214: ...nk to communicate with a remote site datalogger Polling Process where a datalogger or other communications device is periodically checked for any packets it needs to send The server polls dataloggers...

Page 215: ...er s wiring panel Q Quiescent Mode Often referred to as sleep mode a low power state between program execution intervals R Real Time Clock All dataloggers have an internal clock The date and time info...

Page 216: ...the U S Geological Survey for hydrologic and environmental sensors SDI 12 was designed to be a simple interface ground 12 volts and signal that improves compatibility between dataloggers and smart mic...

Page 217: ...e Synchronous The transmission of data between devices occurs as groups of zeros and ones For the data to be read correctly the receiving device must begin reading at the proper point in the series In...

Page 218: ...pF TempC 1 8 32 TempC is an input location label and TempF is a new location calculated from TempC CRBasic dataloggers use variables for all measurements processing values including variables to be us...

Page 219: ...d fields Each row in a table represents a record and each column represents a field The number of fields in a record is determined by the output processing instructions in the datalogger program that...

Page 220: ...culations data storage averaging minimum and maximum tracking and data I O operations are placed in the processing task The measurement task is executed at the precise specified scan rate and stores t...

Page 221: ...mined by the datalogger And as with the other dataloggers the size of event driven tables should always be entered by the user or else the datalogger will calculate the amount of memory for the table...

Page 222: ...from the program 4 Save the file to a new file name but do not compile the file when prompted 5 Open the newly created file in Edlog It will be opened using the CR10X TD datalogger template instead of...

Page 223: ...TD program Output processing can be redirected to input locations in a table based datalogger using Instruction P84 Table Data see Edlog s help Instruction 92 If Time Instruction 92 is used to perfor...

Page 224: ...d for the 30 minute table Event driven tables should have a fixed size rather than allowing them to be allocated automatically If automatically allocated event driven tables in the later versions of t...

Page 225: ...s set RecordNumber is incremented each time the clock is set When the datalogger is reset or a new program is loaded RecordNumber is reset to 1 OldTime is the datalogger s clock value before the time...

Page 226: ...a the tables using automatic record allocation can hold NOTE this number is only based on tables stored at intervals Automatically allocating an event based table will often result in very small inter...

Page 227: ...sable for final storage but that will show up as free bytes DLDBytesFree Amount of free space in the CPU RAM disk that is used to store program files ProcessTime Time in microseconds that it took to r...

Page 228: ...tem voltage is up to a safe level StartUpCode A code variable that allows the user to know how the system woke up from poweroff CommActive A variable signaling whether or not communications is current...

Page 229: ...if the running program uses the integration range CalDiffOffset Calibration table differential offset values Each integration range combination has a differential offset associated with it These numb...

Page 230: ...Appendix B Table Based Dataloggers B 12...

Page 231: ...devices in the datalogger network This is the most readable of the logs and contains event messages that are meaningful to most users Examples of these events are Datalogger clock check set Datalogger...

Page 232: ...nds with a carriage return and line feed A single record will consist of two or more fields where each field is surrounded by quotation marks and separated by commas The two fields that will be presen...

Page 233: ...t application failed to attach to the server If unsuccessful logon messages occur frequently use a network monitor to determine who is trying to connect If security is enabled this message will appear...

Page 234: ...arted 27 Data polling complete Data collection by polling completed 28 Data polling failed Data collection by polling failed due to communication failure or a timeout Check communications with the dat...

Page 235: ...Scientific 41 Records received Table name Beginning record number Ending record number Datalogger records have been received and stored in the data cache 42 A datalogger transaction has timed out Time...

Page 236: ...e datalogger If the program did not compile check the error messages Otherwise check communications with the datalogger by trying to check the clock If that fails follow the steps for message 14 54 Pr...

Page 237: ...pted directory 68 Packet delivery failed Fault code 1 Incompatible BMP1 device or malformed packet 2 Routing failure unrecognized station number 3 Temporarily out of resources 4 Link failure This is a...

Page 238: ...setting value has changed Setting Identifier Client s logon name New value of the setting A client has changed one of the device configuration settings 71 A LgrNet setting value has changed Setting Id...

Page 239: ...g shut down If a new server started message is seen without the shut down message before it this is an indication that the server or the PC crashed without exiting properly 80 Collect area initialized...

Page 240: ...14 89 Selective manual poll begun Collect area name A user specified poll has been started for one of the datalogger collect areas 90 Selective manual poll complete Collect area name The user specifie...

Page 241: ...create a data collection area from the stored table configuration file or new table definitions This could be the result of trying to create table files that are too large for the computer system Chec...

Page 242: ...load Transaction 5 Program Up load Transaction 7 Data Advise Command Transaction 8 Data Advise Notification Packet 9 Hole Collection Command Transaction 10 Control Command Set Variable Transaction 11...

Page 243: ...r I O Transaction Terminal Mode 12 Memory Image Down load Transaction 13 Memory Image Up load Transaction 14 Get Table Definitions Transaction 15 RF Test Transaction 16 Communication Status Notificati...

Page 244: ...setting can be found in CoraScript help 111 PakBus route added A new PakBus route has been added to the routing table 112 PakBus route lost A PakBus route has been lost and will be removed from the ro...

Page 245: ...d TestFast 20900 20960 polling 2009 04 15 16 41 06 601 CR1000 21 Hole collected TestFast 20900 20960 2009 04 15 16 41 06 648 CR1000 41 Records received TestFast 20961 20999 polling 2009 04 15 16 41 06...

Page 246: ...munications problem between the computer and the datalogger Check the cables and connectors and make sure the datalogger has power Invalid low level signature The packet received from the device got c...

Page 247: ...ample 2009 04 15 16 41 05 351 CR1000 starting BMP5 operation manage comm resource 2009 04 15 16 41 05 367 CR1000 starting BMP5 operation check set clock 2009 04 15 16 41 05 367 PakBusPort_ip Request T...

Page 248: ...transaction 2009 04 15 16 41 06 367 CR1000 starting BMP5 operation table poll CR1000 TestFast 2009 04 15 16 41 06 367 PakBusPort_ip Request Transaction Focus table poll CR1000 TestFast 217 2009 04 15...

Page 249: ......

Page 250: ...p CSC 11564 149th Street NW Edmonton Alberta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A CSCC 300 N Cementerio Edificio Breller Santo Domingo Her...

Reviews: