DMC, Inc.

LabVIEW Programming for DEWETRON OXYGEN Data Acquisition Integration

On a recent project in the consumer electronics space, DMC developed a turnkey automated test stand with DEWETRON’s highly capable TRIONet3 chassis as the centerpiece of our data acquisition architecture. For this project, the system needed to be able to acquire temperature data, DC voltage measurements, digital tachometer measurements, and AC voltage and current for power analysis to evaluate the overall performance of kitchen blenders.

DEWETRON’s data acquisition chassis uses software called OXYGEN for channel configuration control, high-speed data logging, acquisition triggering, and more. OXYGEN can be controlled via the software front panel itself or, behind the scenes, by any software framework using SCPI commands.

For this test application, DMC chose to integrate control of OXYGEN through our custom application framework based in LabVIEW using DEWETRON’s well-documented SCPI commands and their in-house developed LabVIEW wrappers.

OXYGEN Capability

Before highlighting DMC’s use of SCPI commands to control data acquisition, it is worth noting the design decisions behind selecting DEWETRON’s hardware and the corresponding OXYGEN software.

OXYGEN allows users to configure and manage their own test setups by:

  • Naming specific hardware channels
  • Applying sample rate, units, and scaling to measurement channels
  • Creating trigger events that will start and stop recording data automatically
  • Configuring logging settings, with log types available in TXT, CSV, TDMS, and more
  • Creating digital value displays that update in real time to allow operators to review test data as it is acquired

and, perhaps most notably for our application:

  • Creating AC power groups from available configured channels for detailed multi-phase AC power analysis
    • This power group feature automatically calculates and presents highly accurate and detailed data like active/reactive/apparent power, power factor, fundamental vs total power, and more from simple voltage and current measurements on each AC phase.
Example simulated three-phase power analysis capability in OXYGEN

Having all of these features configurable in OXYGEN and accessible via SCPI commands on the back-end means we can let users configure and control their data acquisition through DMC’s custom LabVIEW application, which also integrates custom test sequencing.

OXYGEN Channel Configuration Example – Simulated TRION3-1600-dLV-32-D-CAN module

Interfacing with OXYGEN using SCPI Commands

In order to integrate OXYGEN control into our custom LabVIEW application, we first had to dive deep into DEWETRON’s SCPI programming guide to determine the correct commands. Though this is standard practice when creating new hardware drivers, DEWETRON provides a great LabVIEW driver set that exposes basic SCPI control of OXYGEN via TCP/IP. This driver set includes built-in SCPI functionality to:

  • Read channel properties
    • Each channel has separate configurable properties that vary based on the type of hardware
  • Configure, start, and stop external data streaming
  • Query measurement values for one or more channels
  • Query system errors

In addition to the basic drivers listed above, DMC developed additional custom SCPI code modules to:

  • Create and configure automated OXYGEN trigger events for controlling digital output channels
  • Write OXYGEN channel properties like units, sample rate, etc., from the user’s test configuration setup
  • Create time-stamped, descriptive data markers when measurement values exceed any user-configured guiderails during testing

Integrating OXYGEN Commands into LabVIEW

A question that the reader may have at this point is: Why bother with using LabVIEW at all? Why not just use OXYGEN to do all data acquisition and skip the SCPI commands?

The answer is that integrating with our custom application framework in LabVIEW enables us to use a tried-and-true device control and measurement sequencing architecture and to integrate with a variety of measurement devices from several manufacturers. It also allowed for a custom user interface experience.

DMC is well-versed in test application development in LabVIEW and has developed several in-house LabVIEW toolkits that allow us to present data to our users in information-dense, highly configurable custom applications.

For this project, DMC has used its custom-developed sequencing toolkit based in LabVIEW that allows our users to configure device control and measurement test sequences with custom test limits. Users can use pre-made sequence steps and string them together to create custom automated test routines tailored to their various systems, and manage those sequence files and their revisions, all within DMC’s LabVIEW application. These test routines may reconfigure a device’s settings, turn a device on/off, start/stop data acquisition, continuously monitor safety circuits, and allow the user to pause, restart, and stop execution at any point.

A view of the test software with sequence monitoring, data plots, and a live data table view

Additionally, integrating remote control of devices like OXYGEN within our LabVIEW application allows us to modify and standardize on things like:

  • Error and warning messages to the user from different devices
  • Centralized sequence and diagnostic logging from different devices for system-level troubleshooting
  • Standardized device control widgets that are exposed to the user
  • Simulated devices for testing in non-laboratory development environments

Conclusion

By leveraging the powerful capabilities of the DEWETRON OXYGEN software and measurement hardware via SCPI commands, DMC seamlessly integrated detailed power analysis and high-speed data acquisition from the TRIONet3 chassis into our custom test sequencing application.

Ready to take your Test & Measurement project to the next level? Contact us today to learn more about our solutions and how we can help you achieve your goals.