Measuring & Sending Sensor Data: Analog to CANbus
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.
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.
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.
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.
8437 Mayfield Rd Unit 104
Chesterland, OH 44026
This release was published on openPR.
Permanent link to this press release:
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: 164
More Releases from CAS DataLoggers
New NXprog Programmable I/O Module from Novus
We are pleased to announce the new DigiRail NXprog from Novus Automation. The NXprog unites the best of both worlds: the reliability and robustness of an industrial device for automation applications with the ease of programming from the Arduino community. It provides a rich mix of integrated analog and digital I/O signals, allowing DigiRail NXprog to be used as an extension of standard data logging, data acquisition, and automation systems,
New Simple Logger Series of Data Loggers from AEMC
CAS Dataloggers is pleased to announce the new Simple Logger® series of data loggers from AEMC. The SL family includes ten different small, one channel recording devices powered by two AA alkaline batteries. Models are available for recording AC voltage, DC voltage, DC current, temperature, or digital pulses and events. The simple logger series are extremely easy to configure with just a few parameters to setup – scaling, measurement units,
New DT90 Series Data Loggers from dataTaker
CAS is pleased to announce the new dataTaker DT90 Series of compact, cost-effective, low power data loggers. The new DT90 Series is designed to provide an all-in-one data collection system with an integrated modem, specifically for remote applications. The rugged enclosure and wide operating temperature range provide reliable operation in virtually any environment. There are two models available – the DT90L and DT90N. The DT90N is perfect for
Introducing OdaLog Gas Data Loggers from ThermoFisher
CAS DataLoggers is introducing OdaLog Odor & Gas Data Loggers, a family of portable gas monitors from ThermoFisher Scientific. Effective immediately, CAS will be responsible for the sales and support of all OdaLog products within the United States. OdaLog, owned by ThermoFisher Scientific Australia Pty Ltd, are used extensively in the wastewater industry to record the level of Hydrogen Sulphide (H2S) and other gas emissions in pumping stations, manholes and sewer
More Releases for ADwin
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
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 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 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