Importing Short Cut Code Into Crbasic Editor - Campbell 05103 User Manual

R.m. young wind monitors
Hide thumbs Also See for 05103:
Table of Contents

Advertisement

Appendix E. Importing Short Cut Code
into CRBasic Editor
NOTE
This tutorial shows:
How to import a Short Cut program into a program editor for additional
refinement
How to import a wiring diagram from Short Cut into the comments of a custom
program
Short Cut creates files, which can be imported into CRBasic Editor. Assuming
defaults were used when Short Cut was installed, these files reside in the
C:\campbellsci\SCWin folder:
.DEF (wiring and memory usage information)
.CR2 (CR200(X)-series datalogger code)
.CR300 (CR300-series datalogger code)
.CR6 (CR6-series datalogger code)
.CR8 (CR800-series datalogger code)
.CR1X (CR1000X datalogger code)
.CR1 (CR1000 datalogger code)
.CR3 (CR3000 datalogger code)
.CR5 (CR5000 datalogger code)
Use the following procedure to import Short Cut code and wiring diagram into
CRBasic Editor.
1.
Create the Short Cut program following the procedure in Section 4, QuickStart
. Finish the program and exit Short Cut. Make note of the file name used
(p. 2)
when saving the Short Cut program.
2.
Open CRBasic Editor.
3.
Click File | Open. Assuming the default paths were used when Short Cut was
installed, navigate to C:\CampbellSci\SCWin folder. The file of interest has the
.CR2, .CR300, .CR6, .CR8, .CR1, .CR3, or .CR5 extension. Select the file and
click Open.
4.
Immediately save the file in a folder different from C:\Campbellsci\SCWin, or
save the file with a different file name.
Once the file is edited with CRBasic Editor, Short Cut can no longer
be used to edit the datalogger program. Change the name of the
program file or move it, or Short Cut may overwrite it next time it is
used.
5.
The program can now be edited, saved, and sent to the datalogger.
6.
Import wiring information to the program by opening the associated .DEF file.
Copy and paste the section beginning with heading "-Wiring for CRXXX–" into
the CRBasic program, usually at the head of the file. After pasting, edit the
information such that an apostrophe (') begins each line. This character instructs
the datalogger compiler to ignore the line when compiling.
E-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

0510605103-4505108-450530505108

Table of Contents