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 30 articles

Replacing Your CR1000 Datalogger with a CR1000X: What You Should Know

Author: Timothy Jeppsen | Last Updated: 10/11/2017 | Comments: 0

replacing your cr1000 datalogger with a cr1000x: what you should know

As soon as people learned that we were replacing the CR1000 datalogger with the CR1000X datalogger, they asked us these questions: “Can I load a program I wrote for my CR1000 into a CR1000X?” and “Will the CR1000X fit in the same space as my... read more

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

Author: Dirk Baker | Last Updated: 10/03/2017 | Comments: 2

do you use r? here's a tool for importing campbell scientific data

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

Using Loops in CRBasic to Prevent Unnecessary Skipped Scans

Author: Gary Roberts | Last Updated: 05/31/2017 | Comments: 0

using loops in crbasic to prevent unnecessary skipped scans

Maybe you’re like me when it comes to skipped scans. I have always disliked seeing skipped scans in my dataloggers. I have been trained to watch out for them and do my best to write my CRBasic programs in a way that makes them not... read more

Use Pointers to Make Your CRBasic Programs More Efficient

Author: Gary Roberts | Last Updated: 03/23/2017 | Comments: 0

use pointers to make your crbasic programs more efficient

Pointers are a great tool for CRBasic programs. If you use them carefully, pointers can reduce the amount of program code you need to write, thereby increasing your program’s efficiency and enabling you to use less memory. (Your program can run faster because it does... read more

How to Use Call-back Capability so Your Datalogger Initiates Data Retrieval

Author: Jacob Davis | Last Updated: 02/22/2017 | Comments: 0

how to use call-back capability so your datalogger initiates data retrieval

Have you come across situations where you want your datalogger to initiate data retrieval, rather than your PC? For example, do you have an environmental condition that you want to transmit alarm data for? Although IP-based communication is prevalent, sometimes you may need datalogger-initiated communication because... read more

Sending Email from Your Datalogger Just Got Easier!

Author: Dana Worley | Last Updated: 01/25/2017 | Comments: 6

sending email from your datalogger just got easier!

Have you had problems finding an SMTP server to use to send emails from your datalogger? Are compatibility issues causing you to look for a work-around? Keep reading for a solution that may be just what you need. Some Background In 2006, we added the ability in... read more

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

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

how to prevent a program update from causing a loss of communication

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

how to access your measurement data using dnp3

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

the best way to edit input locations in edlog programs

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

how to select the correct pulse type for your measurements

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

how to access live measurement data using modbus

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: 4

5 steps to post your cr6 data to weather underground

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

6 steps to easily parse data from a trusted source

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

how to create custom sensors in short cut

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

getting to know dnp3

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

how to programmatically access stored data values

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

how to convert wind directions in degrees to compass directions

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: 2

use time intervals for more than storing data: decisions and control

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

how to access and control your raven modem via tcp/ip

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

how to rename field names for easier data identification

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


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