Press release
Measuring & Sending Sensor Data: Analog to CANbus
IntroductionIn 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 XH10 & XH11: Data Loggers Enhance Long-Distance Transport
CAS DataLoggers is pleased to announce the XHLogger series from Brainchild Electronics Co., Ltd. The new XH10 and XH11 temperature and humidity data loggers are designed specifically for environmental monitoring during cargo transportation. These reusable devices connect to a computer via USB and automatically generate a PDF report of the recorded data, or they can be used in conjunction with the Data Logger Viewer (DLV) software for in-depth data analysis.…

New MSR Data Loggers from MSR Electronics GmbH
CAS DataLoggers is pleased to announce that we have partnered with Swiss company MSR Electronics GmbH to bring the MSR family of universal data loggers to our customers. Designed to meet the highest standards of precision and reliability, the new MSR data loggers are compact with large memory to handle various measurement tasks such as measuring and recording shocks, vibration, temperature, humidity, pressure, or light.
Why Choose MSR Data Loggers?
The ability…

Ensuring Workplace Safety: Data Loggers for Compliance With California Regulatio …
In workplaces across California, ensuring the health and safety of employees is paramount. This commitment is not just a moral imperative, but a legal requirement under California Code of Regulations Section 3395, which mandates specific measures to ensure workplace safety by protecting workers from heat illness. Among these measures is the monitoring of environmental conditions such as temperature and relative humidity, critical factors that can significantly impact employee well-being.
Understanding California…

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…
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…
Scanning Electron Microscope Loop Control Using ADwin
ADwin-Gold-II DAQ System Offers High-Speed Control
scanning electron microscope application photoCAS DataLoggers supplied the control solution for a university physics department conducting research using a scanning electron microscope (SEM). SEMs generate extremely high-resolution (on the nanometer level) images by focusing a narrow electron beam to scan the sample. Part of the beam is absorbed by the material being scanned, but about 10-20% of the electrons are reflected off the surface. These…
ADwin for Plastic Injection Molding Process Monitoring
Control Shot Injection with an ADwin Gold System
Recently CAS DataLoggers interviewed a long-time customer using an ADwin-Gold Real-Time Data Acquisition & Control System. Read on to learn how his plastic injection molding business has benefitted from high-speed data acquisition—and how your business can do the same.
Q&A Session
Q: You have been using the ADwin Gold system for plastic injection molding process monitoring of your equipment for several years now, how do…
ADwin for High-Speed Test & Control Tasks
Real-Time Data Capture & Control for High-Speed Applications
Manufactured in Germany, ADwin data acquisition systems provide tight nanosecond-level speed for the most demanding test and control applications. Whether users need to control a test bench, a PLC, or an electron microscope, ADwin has the performance to fulfil the highest-precision applications. Learn more about ADwin control systems by calling CAS DataLoggers today at (800) 956-4437.
Ideal for Many Applications:
• Automotive R&D and Production
• ECU test,…
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…