Programming Topics

About the Blog

These articles provide information to help you understand and write datalogger programs.


Search the Blog


Subscribe to the Blog

Set up your preferences for receiving email notifications when new blog articles are posted that match your areas of interest.


Area / Application

Product Category

Activity

Corporate / News

Enter your email address:



Suggest an Article

Is there a topic you would like to learn more about? Let us know. Please be as specific as possible.

Leave this field empty

Displaying 1 - 20 of 25 articles

Do You Use R? Here's a Tool for Importing Campbell Scientific Data

Author: Dirk Baker | Last Updated: 12/21/2016 | Comments: 0

You may be familiar with R for data processing and analysis. But do you know how to easily import data that is in Campbell Scientific’s TOA5 format into R? In this article, I’ll briefly discuss R and TOA5, and then share a function to create... read more

How to Prevent a Program Update from Causing a Loss of Communication

Author: Robert Hyatt | Last Updated: 11/10/2016 | Comments: 3

Imagine that you have a datalogger station three hours away that gathers your measurement data. To physically get to your station, not only do you have to drive for three hours, but then you have to hike for an hour up a snow-covered mountain. A couple... read more

How to Access Your Measurement Data Using DNP3

Author: Paul Smart | Last Updated: 09/02/2016 | Comments: 0

Turning your Campbell Scientific datalogger into a DNP3 outstation is a great way to allow systems that use the DNP3 protocol to have access to your live measurement data, as well as historical data. When you use your datalogger as a DNP3 outstation, the datalogger is... read more

The Best Way to Edit Input Locations in Edlog Programs

Author: Janet Albers | Last Updated: 06/08/2016 | Comments: 0

If you have one of our retired dataloggers that uses the Edlog programming language, do you know the best way to change an Input Location name? It’s possible that you may want to use a different name or insert a name where one is missing... read more

How to Select the Correct Pulse Type for Your Measurements

Author: Jacob Davis | Last Updated: 04/21/2016 | Comments: 0

Have you ever had a sensor work on a P (pulse) datalogger terminal, but not on a C (control) terminal? Is the list of choices for the PConfig parameter in the PulseCount() instruction daunting? Campbell Scientific dataloggers offer several options for measuring pulse signals. Our Short Cut Program Generator will... read more

How to Access Live Measurement Data Using Modbus

Author: Paul Smart | Last Updated: 04/07/2016 | Comments: 2

Did you know that you can turn your Campbell Scientific datalogger into a Modbus TCP/IP slave? Do you know why that’s a good idea? Campbell Scientific dataloggers are commonly used as Modbus slave devices. This means that the datalogger is configured to implement the Modbus... read more

5 Steps to Post Your CR6 Data to Weather Underground

Author: Sam Utley | Last Updated: 03/23/2016 | Comments: 1

Over the years, you may have seen a number of Weather Underground PWS (personal weather station) discussions and solutions posted on the Campbell Scientific User Forum. In this article, I’ll show you how to post your data directly from an Internet-connected CR6 Measurement and Control Datalogger... read more

6 Steps to Easily Parse Data from a Trusted Source

Author: Gary Roberts | Last Updated: 03/02/2016 | Comments: 1

Would it be helpful to include data from a reputable source with your own data? If you have permission to use another source’s data for free or by agreement, how can you easily extract the specific data you want to use without doing a lot... read more

How to Create Custom Sensors in Short Cut

Author: Jason Ritter | Last Updated: 02/24/2016 | Comments: 0

Have you ever wanted Short Cut to support more sensors? Although Short Cut supports many sensors, you may have found that the sensor you want to measure is not on the list. What do you do then? How do you add that sensor to your... read more

Getting to Know DNP3

Author: Paul Smart | Last Updated: 01/20/2016 | Comments: 0

Have you heard of DNP3 but been unsure of what it is or what it’s used for? In this brief article, I’ll introduce you to this communications protocol, its role in SCADA applications, and how you can use it with your Campbell Scientific equipment and... read more

How to Programmatically Access Stored Data Values

Author: Janet Albers | Last Updated: 01/13/2016 | Comments: 6

After you store measurements and other data in your datalogger’s tables, how do you access that data to perform operations in your CRBasic program? Where can you get an all-access pass to your data? This article will explain how you can use a special CRBasic... read more

How to Convert Wind Directions in Degrees to Compass Directions

Author: Jacob Davis | Last Updated: 01/06/2016 | Comments: 0

Do you feel lost when sifting through wind direction data that is listed in degrees? For example, can you picture in your mind what direction 195 degrees is? Would it be easier if your datalogger could put your data in compass directions instead? In this... read more

Use Time Intervals for More than Storing Data: Decisions and Control

Author: Janet Albers | Last Updated: 12/30/2015 | Comments: 0

We all know that Campbell Scientific dataloggers are really good at taking measurements and storing data. But did you know that they can also make decisions and control other devices? Often, device control is done based on a time interval. This article briefly illustrates how... read more

How to Access and Control Your Raven Modem via TCP/IP

Author: Gary Roberts | Last Updated: 12/09/2015 | Comments: 0

Have you ever wanted the ability to control your Raven cellular modem with your datalogger? Would it be nice to be able to get data on the health of your cellular modem and its data network? Maybe you even want to reset your Raven modem.... read more

How to Rename Field Names for Easier Data Identification

Author: Janet Albers | Last Updated: 11/11/2015 | Comments: 0

When you view your measurement data in tabular format, such as in View Pro or similar software, are your column headings, or field names, helpful to you? At a glance, do your field names quickly identify the data in the columns? If not, you may... read more

Serving up the RealTime() Instruction with a Side of Alias Declarations

Author: Janet Albers | Last Updated: 10/07/2015 | Comments: 0

CRBasic has a full menu of instructions to help you write or edit your datalogger program. This article offers a main course of scheduling your datalogger actions using the RealTime() instruction with a side dish of making your program easier to read with Alias declarations. The... read more

Making Sense of an Edlog Program File for Your Retired Datalogger

Author: Janet Albers | Last Updated: 09/09/2015 | Comments: 0

Our retired dataloggers are still in use, and some of them use the Edlog programming language. Do you have an Edlog datalogger with a .dld compiled program file that you don’t know how to read? Does your .dld file have codes that you don’t understand?... read more

5 Things to Know before Discussing Your Datalogger Programming Issue

Author: Janet Albers | Last Updated: 08/26/2015 | Comments: 0

If you need help programming a Campbell Scientific datalogger, here are some things you can do to have a more productive conversation with a Customer Support and Implementation Engineer. At a minimum you’ll want to know: What datalogger you’re working with—such as a CR6, CR1000, CR200, CR5000,... read more

CRBasic Tips to Simplify Data Post-Processing

Author: Barbra Utley | Last Updated: 08/12/2015 | Comments: 0

You’ve collected your measurement data, but how do you easily make sense out of it? How can you simplify the post-processing of your data and start analyzing it sooner? In this article, I’ll explain how adding some code to your CRBasic program can save you... read more

The Benefits of Using Constants in CRBasic

Author: Janet Albers | Last Updated: 08/05/2015 | Comments: 0

Why should you use a Constant declaration in your CRBasic program? What is a Constant anyway? In a previous article ("Going Public with Your Variables in CRBasic"), we talked about the Public and Dim variable declarations. Variables are just that—variable; they change. Constants, on the other hand, don’t change;... read more


We're now on Twitter!
Stay informed with our latest updates by following @CampbellSci