openPR Logo
Press release

Measuring & Sending Sensor Data: Analog to CANbus

12-17-2018 10:06 AM CET | Industry, Real Estate & Construction

Press release from: CAS DataLoggers

Introduction

In automotive or other vehicle engineering and development projects it is sometimes useful to convert analog data and send it via CAN. For example, in automotive applications you may need to read data from one or more sensors that provide voltage output and transmit this data via analog to CANbus so that it can be read along with other data being broadcast by an ECU by a single CANbus data logging device. ADwin data acquisition systems provide an ideal platform to implement a simple solution for this.

Program Description
There are a few basic steps to converting sensor data from analog to CANbus data:

Read the analog output of the sensor at the desired sample rate.

Perform any required signal processing such as filtering or averaging and scale the output to the desired engineering units such as temperature, pressure, etc.

Convert the value from engineering units to hexadecimal with any required formatting such as and offset or scale factor.

Encode the hex value in a CAN message with the specified ID and byte/bit offset.

Either broadcast the message or load it into a register in the case of a polled message.

Usage

ADwin systems are available in several different models with different analog input capabilities, but they are all suitable for this application when outfitted with the CANbus interface option. The flexibility of the open programming environment of ADwin systems makes it especially easy to read and scale the data. High level functions and built-in message structures allow the generation and transmission of CAN messages with just a few simple statements as shown in the following sample program.

The ADwin operating system is an event based environment which allows periodic message generation without the need for special timing routines. In the sample program, the GLOBALDELAY statement configures the event loop to read the sensor and send the data every millisecond. In this example the data is being broadcast, but it is quite easy to configure the system to use polled message transmission. In this case, the CAN interface can be configured to look for a particular message ID and generate an interrupt to trigger the event loop and send the data.

Other features of the ADwin systems include built-in high level functions and the ability to freely program calculations with very little overhead. I the example below, a single instruction can be used to return the input voltage. Easy to use math functions allow scaling calculations to be done with a single, intuitive equation. These capabilities enable more complex operations such as averaging, filtering and statistical operations. Internal routines which handle casting operations make it easy to manipulate integer, floating point and binary data transparently.

For development, the ADwin architecture provides for transparent shared data between the internal operating environment of the ADwin system and an attached computer.

This greatly simplifies debugging by monitoring the values of integer and floating point variables. The environment also provides for data arrays to enable charting and logging.

Sample Program

The following sample program is for an ADwin-Pro system with a Pro-Ain-32/16, 16 bit analog input card and a Pro-CAN-2, 2 channel high speed CAN interface card.

View code at: https://www.dataloggerinc.com/about/

For further information on ADwin systems, analog to CANbus, or to find the ideal solution for your application-specific needs, contact a CAS Data Logger Application Specialist at (800) 956-4437 or visit www.dataloggerinc.com.

Computer Aided Solutions, LLC. dba CAS DataLoggers is a distributor of data loggers, paperless recorders and data acquisition equipment.

We have the industry’s most complete selection of data logging equipment, with hundreds of different models from more than 18 manufacturers. With data loggers from 1 to 300 channels we can record temperature, humidity, force/strain, pressure, flow, voltage, current, resistance, vibration and other digital signals, in connection with serial (RS-232/RS-485), CAN/OBD or SDI-12 devices. We sell directly to end users and also work through a network of distributors and resellers throughout the United States, Canada, Central and South America.

CAS DataLoggers
8437 Mayfield Rd Unit 104
Chesterland, OH 44026

This release was published on openPR.

Permanent link to this press release:

Copy
Please set a link in the press area of your homepage to this press release on openPR. openPR disclaims liability for any content contained in this release.

You can edit or delete your press release Measuring & Sending Sensor Data: Analog to CANbus here

News-ID: 1442322 • Views:

More Releases from CAS DataLoggers

New AirGate 4G Cellular Router from Novus
New AirGate 4G Cellular Router from Novus
NOVUS presents AirGate 4G, an industrial VPN router for cellular networks. Data sending is secure with this new device as it uses encryption protocols and firewall systems most commonly used in IT infrastructures, including automatic fallback for 4G, 3G, and 2G cellular networks. AirGate 4G is CE Mark certified and was developed for industrial environments. It can maintain its high availability performance even in extended operation situations, being equipment suitable
New AERINOS ADS-300 from Infinite Informatics
New AERINOS ADS-300 from Infinite Informatics
New Wireless NB-IoT/LTE-M Data Collection End Node CAS DataLoggers is pleased to introduce the new AERINOS ADS-300 wireless sensor end node from Infinite Informatics. The ADS-300 is designed to transmit data via either NB-IoT/LTE-M cellular networks and is targeted at remote monitoring applications. NB-IoT is a wireless protocol designed for the Internet of Things that offers very low-power operation using either existing GSM or newer LTE cellular technology. NB-IoT is a
New TR32B Bluetooth Data Logger From TandD
New TR32B Bluetooth Data Logger From TandD
CAS DataLoggers is pleased to announce the updated TR32B log-EZ as an effective low-cost solution for temperature and humidity measurement. The log-EZ is designed as a compact, user-friendly data logger to easily measure and record ambient temperature and humidity. It provides Bluetooth communication and a smartphone/tablet app that can display and upload data to the cloud. The TR32B provides a measurement range of 0° to 50° Celsius (32° to 122°
New A2-06 Temperature & Alarming Monitoring Pod by CAS
New A2-06 Temperature & Alarming Monitoring Pod by CAS
Medical storage applications depend heavily on monitoring the temperature of their goods in cold storage to protect items such as vaccines, blood, medicine, and tissue samples. CAS DataLoggers is pleased to introduce the A2-06 Ethernet Wired Temperature Measurement Pod designed for measuring temperatures in medical refrigerators, freezers, incubators, and in cryogenic storage. The pod is an Ethernet LAN-wired temperature monitor with connections for two external RTDs and a thermocouple sensor.

All 4 Releases


More Releases for ADwin

ADwin Test System Reduces Application Development Time
Real-Time Data Acquisition and Control Test systems are used to determine the dynamic characteristics and parameters of components and sensors. In R&D, these systems acquire not only component parameters but also characteristics of prototypes and pre-production models. Component endurance is determined by testing them over thousands of test cycles. On production lines, test benches ensure a higher level of quality through either random sample or individual component testing (CAQ). Test information
Cold Atom Physics Experiments Controlled by ADwin
ADwin-Pro-II Real Time Data Acquisition & Control CAS DataLoggers provided the data acquisition and control solution for a professor of physics, specifically focusing on cold atom physics at a major university. They began running an experiment producing ultracold quantum gases containing either bosons and fermions. The experiment took place under high vacuum inside a pyrex glass cell. Researchers collected the atoms in a magneto-optical trap (MOT) which consisted of 6 laser
ADwin Systems for Automotive Test and Control
Online Real-Time System Compiles Code with Just a Mouse Click German manufacturer Jager-ADwin’s popular ADwin Pro-II Data Acquisition and Control system is designed for use in automotive test, ECU test, CANbus applications, test system integration, and more. The PRO-II utilizes an ARM-based Pro-CPU-T12 processor module to deliver the fastest real-time computing power. With the programmability of the local ADwin CPU, users can run real-time data logging and/or control programs with kHz
ADwin for Test & Control of Rotating Machines
Real-Time Data Acquisition Systems for Machine Test Stands Automotive test bench applications require real-time test and measurement to increase PQ and to lower recall rates. To achieve this, the use of data acquisition and control systems is especially common in test stand setups. In particular, product quality technicians and test system integrators who need to view accurate data from rotating/spinning parts in motors, car engines, etc. are often concerned with the
Intelligent Data Logging Using an ADwin
Data Logging with Real-Time Pre-Processing of Data ADwin Real-Time systems are ideal for intelligent data acquisition and control applications. Utilizing the programmability of the local CPU in the ADwin, users can run real-time datalogging and/or control programs with kHz execution speeds up to the MHz range. CAS DataLoggers offers these systems along with technical support-- contact a CAS Data Logger Applications Specialist at (800) 956-4437 or visit our website at www.DataLoggerInc.com. ADwin’s
Jager-ADwin Releases New Software Update
Ver. 6.00.08.01 Adds Support for MATLAB, LabVIEW CHESTERLAND, OH—June 20, 2016 Jager-ADwin has just released a new version of the ADwin CD-ROM. Version 6.00.08.01 adds more support for MATLAB and LabVIEW, improved cache management, and several minor bugfixes. ADwin data acquisition and control systems are ideal for applications in automotive test, laboratory data acquisition, product R&D and more. The new ADwin CD-ROM is ready for download at CAS DataLoggers on our ADwin