Resource Center

Videos and Tutorials

Use Include files to simplify complex programs

Streamlining Large CRBasic Programs with Include Files

Video thumbnail

Overview

Maintaining a network of data loggers deployed across multiple locations can be challenging. Individual data logger programs may be similar, but often differ in variables, measurements, and data tables. When these sections grow large, it can become difficult to quickly scroll to key parts of the program—such as the main scan. By creating reusable code libraries, you can use the CRBasic IncludeSection() instruction to move variables, measurements, and data tables into separate library files. This keeps the main program concise and makes it much easier to navigate directly to the main scan. It also greatly simplifies updating and maintaining the entire network. This video demonstrates how to use the IncludeSection() instruction to streamline a CRBasic program and verify proper operation once the information from the code library is imported.

Connect With Us

envelope icon
Phone Numbers
General: (435) 227-9000
location icon
Corporate Address
815 W 1800 N
Logan, UT 84321
send icon
Email Address
sales@campbellsci.com

As a trusted leader in measurement systems for more than 50 years, our top priority at Campbell Scientific has always been to provide the most accurate, reliable data for research and industry.