de Jason Ritter | Atualizada: 02/27/2019 | Comentários: 4
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 data logger program? In this article, we’ll discuss how you can easily create your own custom sensor files in Short Cut for use in your programs.
The Short Cut Program Generator is a software tool to help novices and experts create data logger programs in five easy steps. As an added benefit, Short Cut also creates for you a printable wiring diagram. Short Cut comes bundled with LoggerNet and PC400 software. You can also download the tool free of charge from the Short Cut download page.
The content of this article assumes that you are already familiar with the five steps to create a data logger program using Short Cut and that you are ready to create your own custom sensor file. If you’re fairly new to Short Cut, you can learn the basics by watching the videos on the Short Cut web page.
Short Cut has a Sensors folder titled “Generic Measurements” with several different types of measurements. If you know what type of output your sensor has, you may be able to use one of these generic measurements—especially if you will only be programming for that sensor once. Generic measurements, however, are probably not the best choice when you have a sensor that you use often and you don’t want to edit the generic measurement every time you use the sensor. If you create a custom sensor, it will save you time and effort later.
In this example, we’ll walk through the steps of how to create a custom sensor in Short Cut. For this example, imagine the following:
With Short Cut running, the first step to create a custom sensor is to select Tools | Options from the menu at the top of the screen. In the Options dialog box that opens, select the Enable Creation of Custom Sensor Files checkbox, and select the OK button.
To add your tensiometer to the list of sensors in Short Cut, follow these steps:
When you’re done editing, your custom sensor screen may look something like this:
In this example, the Long Name field creates a new folder titled “Custom” where the new sensor will be found the next time you want to use it in a CR1000 program.
Now that you have created your custom sensor file, it will show up in the Available Sensors and Devices field whenever you use Short Cut to write a CR1000 program. The display looks like this:
Because some of the fields were hidden from view, the only editable items in this window are the sensor name and the measurement units.
Note: If you want to use your custom sensor on other data logger models, you will have to repeat the steps outlined here. In Short Cut, be sure to select a different data logger.
Tip: Regularly make a backup of your Campbellsci working directory to preserve all of your custom sensor files, data logger programs, and especially your data logger data.
When you create custom sensor files in Short Cut, you enable this tool to more effectively help you create data logger programs. With a little bit of practice, you can add a whole suite of non-standard sensors to Short Cut and create data logger programs and wiring diagrams faster than ever.
If you have any custom sensor programming questions, post them below.
Comentários
BZKM | 07/19/2020 at 05:25 PM
Hi Jason,
I am using a cr1000 data logger and loggerNet software with three sensors namely:
1. Combitech Ice monitor , output(4-20 mA) ( ice weight measuring)
2. Lambrecht Eulos, output(Rs-422) , measures(wind direction, wind speed, air temperature, relative humidity, barometric pressure)
3. Holooptics t44, output (0-5V ,digital high/low), (detecct icing)
when i go to sensors in the loggerNet software i cannot find any of these in the list. Do i need to custom add them like you told here? if yes then how to add the 2,3 sensors . i got from this video how to add sensor 1.
Thanks
Notso | 01/22/2021 at 11:20 AM
I apologize for the very late response to these questions. Unfortunately the generic measurements available in Short Cut do not support serial sensors, so the Lambrecht Eulos with RS-422 output cannot be created as a custom sensor. The CRBasic program editor will have to be used for programming the serial commands that allow the CR1000 to communicate with that sensor.
The Holo Optics t44 ice sensor has a signal that can be measured by a pulse channel on the datalogger, so the generic measurement called Pulse, set to measure high frequency with a raw measurement result of frequency could be used to create a custom sensor. It appears that other processing of the measured frequency may be needed, which cannot be done in the Pulse instruction. Additional processing might be accomplished by using User Entered in the Calculations folder of Short Cut. It may be easier however, to do the programming with the CRBasic program editor.
Dale Reid | 02/18/2022 at 01:39 AM
I'm working on a new project with a CR3000 data logger doing some meterologic monitoring.
I have an RM Young 41382VF temperature/humidity sensor, -50F to 150F 1.000 volts and 0% to 100% humidity, 1.000 v outputs.
I still have some work to do in order to understand all the Custom Sensor settings, especially as far as naming the table fields so as to be compatible with the receiving program's requirements, but having more time to understand that will no doubt solve that naming problem.
I currently have two instances of a custom sensor, one for the temperature and one for the humidity and would like to have ONE sensor which presents the data, similar to what a wind speed/direction indicator does. I've yet to get the custom setup to do that. It may have to do with my not understanding what the REV option does.
In addition I would like to make the documentation clear, and would add the power and ground connections to the wiring diagram, but so far haven't been able to figure out how to add those. I know where they go and can make notes for installation and future technician's understanding (admittedly not too complex) but is there a way to force the wiring diagram portion of the custom setup screens to allow me to specify the power and ground connections, and make the wiring color be exact to our configuration? Thank you for any additional pointers to more documentation, or any specific comments to get me to master this portion of Short Cut. Dale
Notso | 03/30/2022 at 03:57 PM
Hi Dale
Unfortunately, creating a custom sensor using the Generic folder in Short Cut does not allow for combining two sensors as a single custom sensor. We have created Short Cut files that do combine air temperature and relative humidity measurements into a single sensor, but have only done that for sensors in the Campbell Scientific product line. One of those files could probably be edited to give you exactly what you want, but that is beyond the scope of this article. We could discuss this further if you send an email to support@campbellsci.com. Include my name (Jason Ritter) in the email and it will get routed to me.
Please log in or register to comment.