Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
l1_sw [2018/09/24 13:04] – sindre | l1_sw [2023/09/06 11:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Implementation of software on the Campbell Scientific CR6 is done with the use of PC400 Datalogger | + | =====L1 |
- | Support | + | |
- | several functions. First of all, it enables the user to send program code and retrieve | + | |
- | data from the unit via USB interface with a Windows computer. It also lets the user | + | |
- | set the internal clock of the CR6 easily. With the Windows program, publicly declared | + | |
- | variables can be read in real time from the device via the USB cable to ease the process | + | |
- | of debugging. Unfortunately, | + | |
- | of common tools such as breakpoints and memory access. The lack of such tools | + | |
- | does increase development time significantly and should be taken into account when | + | |
- | planning development of future system functions. | + | |
- | The CR Basic editor lets the user write programs for the CR6 device. The editor | ||
- | has a built-in compile function that will check for faults such as syntax errors and | ||
- | incorrect memory allocation, but the program is recompiled on the CR6 device after it | ||
- | has been transferred to the device. The file extension of the programs that are sent to | ||
- | the CR6 is " | ||
- | language that was released in 1964. | ||
- | The operating system (OS) on the CR6 automatically runs the program when the device | + | Implementation of software |
- | can only have one thread. Hence, the OS does not have the characteristics associated | + | The CR Basic editor lets the user write programs |
- | with a real-time operating | + | |
- | implementation of the system functions, but it could be positive for future developers | + | |
- | who are not accustomed | + | |
- | A CR Basic program consists of one file only and has the following form: | + | |
- | 1. Definition of constants | + | {{:cr6.png?800|}} |
- | 2. Declaration of global variables | ||
- | 3. Definition of data tables for logging of data | + | =====CR6 Basic Editor===== |
- | 4. Definition | + | There are two methods for implementing the desired behaviour on the CR6. One method is to use a program called Short Cut, the other option is to use the CR Basic Editor. Short Cut can be used for simple tasks such as sampling a sensor at a set interval and storing the data, CR Basic Editor is the only suitable alternative for the USV system. The CR Basic programming language is based on BASIC, which is a programming language that was released in 1964 (26). Although CR Basic has functionality that was seen in the original BASIC language, it is a lot more similar to newer procedure- oriented dialects |
- | 5. Program code that runs at power on | ||
+ | {{: |