TECHNICAL UPDATES
 
Products Updates
 

New test management tools for system verification and validation.
What is SystemTest?

SystemTest provides MATLABŪ and SimulinkŪ users a framework that integrates software, hardware, simulation, and other types of testing in one environment.

You use predefined elements to build test sections that simplify the development and maintenance of standard test routines. You can save and share tests throughout a development project to ensure standard and repeatable test verification. SystemTest offers integrated data management and analysis capabilities for creating and executing tests, and saving test results in order to enable continuous testing across the development process.

 

This figure illustrates the structure of a test in SystemTest
 
SystemTest is integrated with MATLAB, enabling you to use the MATLAB scripting language and analysis tools to explore large data sets and gain further insight into the behavior of the system.
 


The SystemTest desktop displays key information about your test structure, vectors, variables, elements, and results.

 
What can you do with SystemTest?
   
Develop, manage, and edit your test structures
Use predefined test elements to test your MATLAB algorithms and Simulink models
Incorporate your MATLAB scripts directly into a test
Map your MATLAB and Simulink workspace variables to test variables
Visualize and analyze your multidimensional test results
 

For more information about SystemTest, please visit the following URL:
http://www.mathworks.com/products/systemtest/index.html

To learn more about SystemTest through the following online recorded webinar, please visit the following URL:
New Test Management Tool for System Verification and Validation

Through this webinar, attendees will see how SystemTest is used for automating tests for verifying algorithms or models, continuous verification and validation in Model-Based Design, setting up and executing tests and analyzing results

To view the demo, click here.

NEW SimHydraulic extends fundamental set of physical modeling tools; Enables multidomain modeling of hydraulic systems

SimHydraulics provides expanded capabilities for simulating physical systems in Simulink.

While, standard Simulink blocks define a transfer function between input and output signal flows, SimHydraulics extends Simulink with tools for modeling and simulating hydraulic power and control systems.

SimHydraulics enables you to describe multidomain systems containing connected hydraulic and mechanical components as physical networks. It provides a representative library of hydraulic components and building blocks that lets you implement other components.

Together with SimMechanics, SimDriveline, and SimPowerSystems, SimHydraulics lets you model complex interactions in hydromechanical and hydroelectrical systems.

Key Features

  • Modeling environment for building hydraulic and hydromechanical systems as physical networks
  • More than 75 hydraulic and mechanical components, including pumps, valves, accumulators, and pipelines
  • Foundation library of hydraulic building blocks and fundamental mechanical and mathematical elements
  • Customizable library of common hydraulic fluids

To learn more about SimHydraulics:
http://www.mathworks.com/products/simhydraulics/

Recorded webinar regarding modeling mechanical, electrical, and hydraulic systems in Simulink:
http://www.mathworks.com/wbnr11865

 
 
 
Tips and Techniques
 

Incorporating MATLAB M-Code into SIMULINK Models

How can I have a SIMULINK block that performs the similar functionalities that I had in MATLAB M-code? Can I transfer my M-code into SIMULINK and model it as a block?

With the Embedded MATLAB Function Block in SIMULINK, you can now incorporate M-code into your SIMULINK models, model the dynamic systems for simulation and for code generation purposes.

What is Embedded MATLAB Function Block?

The Embedded MATLAB Function block contains a MATLAB Function in a SIMULINK model. The function accepts multiple input signals and produces multiple output signals.

How Embedded MATLAB Function Block works?

The following example using an Embedded MATLAB Function block lets you compose a MATLAB function in Simulink to compute the statistical mean (mean) and standard deviation (stdev ):

You can input M-codes into in the Embedded MATLAB Editor in Embedded MATLAB Function block:

Embedded MATLAB Function Block supports embedded codes generation

On top of that, the SIMULINK model that created using Embedded MATLAB Function block enables you to generate efficient C codes for a Real-Time Workshop targets.

For detail information on Embedded MATLAB Function block, please kindly refer to the URL below:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f6-6010.html

 

Analyzing Time-Based Data Make Easy with Time Series Tools

Does your workflow require analyzing and visualizing time-based information, e.g. data from processes, experiments or financial servers? Manipulating time-series in MATLAB would normally require the use of functions to incorporate date and time information. With Time Series Tools (tstool) GUI, you can now easily import, visualize and analyze time-based data all from the convenience of a few clicks of buttons.

Accessing Time Series Tools

To open Time Series Tool GUI, type the following command at the MATLAB prompt:
>> tstool

The Time Series Tools window consist of the following three areas:

a) Time Series Session tree
  Organizes time-series data and plots
   
b) Options and Settings pane
  Displays options and settings pertaining to the selected node
   
c) Context-Sensitive Help pane
  Prove help information and instructions

How does it work?

When you analyze data using Time Series Tools, your workflow might include the following tasks:

a) Import data from an Excel workbook, MAT-file, or MATLAB workspace.
b) Create a time plot to gain insight into the data features.
c) Select data subset for analysis.
d) Edit the data by:
 
Identifying and removing outliers or "dead time".
 
Manually correcting errors
e) Process the data by
 
Interpolating or removing missing values.
 
Detrending data by subtracting a mean value or a linear trend.
 
Filtering to smooth and shape the data.
 
Algebraically manipulating existing time series to create a new time series.
 
Resampling data using a specified time vector by selecting or interpolating values.
f) Generating correlation plots, spectral plots, histograms, and XY plots.
g) Exporting data from Time Series Tools to the MATLAB workspace or to a file.

For detailed information on Time Series Tools, please kindly refer to the URL below:
http://www.mathworks.com/access/helpdesk/help/techdoc/data_analysis/f4-6010.html

 
 
 EVENTS & TRAINING
 

MATLAB Training by Experts

Accelerate your learning with MATLAB and attend Activemedia's training conducted by experts. MATLAB professional training series include:

 
Comprehensive MATLAB
3 Days
Advanced MATLAB Programming Techniques
1 Day
Comprehensive SIMULINK
3 Days
Advanced SIMULINK Techniques for Effective System Modeling
1 Day
1 Day
SIMULINK S-Functions for System Algorithm Modeling
1 Day
Object Oriented Programming using MATLAB
1 Day
Applying Image Processing Techniques with MATLAB and SIMULINK
2 Days
Applying Communication Design with SIMULINK
2 Days
Applying Control Design with MATLAB & SIMULINK
2 Days
Applying Signal Processing with MATLAB & SIMULINK
2 Days
Applying Neural Network with MATLAB
2 Days
Applying Finite State Machine Modeling with STATEFLOW
1 Day
Data Analysis & Statistics with MATLAB
2 Days
 

Featured training:
Applying Image Processing with MATLAB and SIMULINK

This two-day course shows how to perform various image processing techniques using the Image Processing Toolbox in MATLAB environment and 'Video and Image Processing Blockset' in SIMULINK environment. The course explores the different types of image representations, how to enhance image characteristics, image filtering, and how to reduce the effects of noise and blurring in an image. It also introduces different methods used to extract features and objects within an image and introduction to Video and Image Processing Blockset. A demonstration of the Image Acquisition Toolbox will also be introduced in the course.

 
 
Visit www.activemedia.com.sg or Contact us at:
Singapore:
(65) 6742 8173
enquiry@activemedia.com.sg
Malaysia:
(60) 3 7880 8522
enquiry@activemedia.com.my
Thailand:
(66) 2 612 9390-1
info@activemedia.in.th
 
 
User Stories
 

More than 1,000 Georgia Tech Engineering Students Learn Computer Science Concepts Each Semester with MATLAB

To teach engineering undergraduates the fundamentals of computer science within a practical engineering framework
Use MATLAB to illustrate computer science concepts in a hands-on, problem-solving approach
• Students prepared for advanced studies.
• Students interested and engaged.
• Focus on engineering maintained.
 

At the Georgia Institute of Technology, or Georgia Tech, professors within the College of Engineering have long recognized the value of teaching computer science concepts to their students. However, developing a course that enabled students to learn and apply computer science fundamentals to solve engineering problems has not always been easy.

"We have tried various ways to develop a computing course, but we were never satisfied with the results," says Dr. James Craig, professor of aerospace engineering at Georgia Tech. "We realized that we were teaching tools, but were missing the computer science concepts."


Students use MATLAB to construct views of solid objects.
 

Recently, the College of Computing worked with the College of Engineering to develop a practical introduction to computer science for engineers using MATLAB. Today, each semester, more than 1,000 students take the course, CS1371 - Computing for Engineers.

MATLAB enables students to learn the computer science concepts in a way that is directly applicable to engineering. MATLAB is an excellent first language for engineers and an ideal environment for engineering computation," says Craig. "In the upper-level engineering classes, we are very impressed with the capabilities of the students now. The course has been a huge success."

Challenge

Instructors and students struggled with earlier versions of the course, which were based on languages such as Pseudocode and Scheme. "Our approaches were missing something," notes Craig. "If we needed to do matrix multiplication or solve simultaneous equations, we were stuck because we had to write our own low-level functions for those tasks."

The college also wanted the course to engage the engineering students and enable them to develop skills that they could leverage throughout their undergraduate studies and beyond.

"With MATLAB, we are combining computer science theory and concepts with problem solving in engineering. MATLAB is the one language that we want our students to use-the one that we all use in our classrooms."

Dr. James Craig,
Georgia Institute of Technology
 

Solution

Georgia Tech adopted MATLAB as the foundation for CS1371 - Computing for Engineers. Taught by the College of Computing, this course is required for all Georgia Tech engineering students and is now a pre-requisite for many advanced level courses.

Instructors teach the course with MATLAB open, writing code to illustrate new concepts as they are discussed.

Concepts in Computer Science Implemented in MATLAB, written by David Smith, a primary instructor for the course, guides the coursework. The course is delivered in three segments: basic procedural programming, writing applications, and dynamic data structures.

The first three weeks are devoted to writing functions and scripts and operating on vectors, conditionals, loops, and iteration. The first segment concludes with structures, arrays, character strings, and an introduction to recursion.

In the next segment, the students begin working with plots and images. "After week six, the applications become more relevant to the students' interests," notes Smith. "The students learn how to do two- and three-dimensional parametric plotting with MATLAB."

The course also dedicates a week to numerical methods, applying MATLAB functions before concluding the second segment with a discussion of sorting.

In the third segment, devoted to dynamic data structures, the students implement linked lists, binary trees, N-ary trees, and graphs in MATLAB.

"Students really identify with visual projects, so we work with images," notes Smith. "For example, I show how to find the gray sky in a picture using MATLAB, and replace it with a blue sky without destroying the rest of the picture."

After completing the course, Georgia Tech engineering students continue using MathWorks tools throughout their undergraduate studies. Instructors in virtually every engineering discipline leverage tools such as Simulink, the Control System Toolbox, and Real-Time Workshop.

 

Results

  • Students prepared for advanced studies. "The students are now much better prepared and can tackle more ambitious projects in their later courses," says Craig. "In my senior-level course in the fundamentals of finite element structural analysis, the students use MATLAB to create a sophisticated graphical application. We would have never taken that on, had these students not gone through the CS1371 class."

  •  
  • Students interested and engaged. On one homework assignment, students used MATLAB to analyze data of calculated air flow around an aircraft wing and produced plots to display stream lines, velocity contours, and pressure contours around the airfoil. "Engineering students are engaged because they can create something recognizable out of a mass of data. In the process, they learn how to manipulate array structures and use MATLAB visualization capabilities," notes Craig.
     
  • Focus on engineering maintained. "MATLAB has a set of functions for easily opening image and sound files and processing data structures," says Smith. "If we attempted this in Python, Perl, or Java, we would need to develop the functionality ourselves."

Products Used

Control System Toolbox
MATLAB®
Real-Time Workshop®
Simulink®

 
 

Philips Lighting and Its Partners Use MATLAB to Ensure the Performance of High-Intensity Discharge Lighting Systems

To develop a standard tool for measuring ripple power and ensuring standards in high-intensity discharge lamps
Use MathWorks tools to implement a standards validation tool that can be used throughout the lighting industry
• Ripple current testing simplified.
• Deeper analysis facilitated.
• Project initiated quickly.
 

From the Eiffel Tower to the Sydney Opera House, high-intensity discharge (HID) lamps illuminate some of the most recognizable landmarks in the world. Such large areas typically require more light than can be provided by conventional incandescent or fluorescent lamps. HID lamps are optimal for lighting vast outdoor spaces because they deliver high light output. For indoor applications, HID lamps are primarily used for accent and decorative lighting.


MATLAB application for calculating ripple power of high-intensity discharge lamps.
 

A division of Royal Philips Electronics, Philips Lighting, together with partners in the European Lamp Manufacturers Association in the Preparation of Standards (ELMAPS), have taken a leadership position in delivering HID lighting solutions and ensuring safety and performance through industry standards for electronic ballasts. Philips Lighting engineers use MATLAB to enable other lighting component manufacturers to verify that a key performance critical aspect of electronic HID ballasts, ripple power, is within acceptable limits.

"We wanted to create a widely available tool to help companies ensure compliance with this standard," says Don Couwenberg, global HID consultant at Philips Lighting. "Working from a sophisticated mathematical description of the problem, we used MATLAB to build a standalone tool that everyone can use easily."

Challenge

HID lamps incorporate a ballast, circuitry that delivers a high-voltage pulse during startup and limits lamp current once it is in steady state. The ballast is a switch-mode power supply that transforms power from the main power source and produces the voltages and nominal current needed by the lamp. As a byproduct, the ballast typically also produces a ripple current at frequencies higher than 10 kHz. When the associated power with this ripple current exceeds 1.5 percent of the nominal power of the lamp, the lamp can become unstable and potentially fail.

Philips Lighting, Osram, GE, and Sylvania agreed on a method of computing the ripple current in a lamp based on measured lamp voltages and current over time. Warren Moskowitz of Osram proposed the method, which was presented in 2004 at the Lighting Conference LS10 in Toulouse, France. While acquiring the data required for this computation is fairly straightforward, the process for determining the ripple current is complex. Philips Lighting needed a tool to calculate ripple power from measured data. They also needed the tool to be easily distributed to and employed by ballast manufacturers.

"We want to promote this standard so that our next generation of products can incorporate components from other vendors. We need specifications so that there are no incompatibilities, the lamps perform optimally and safely, and our customers get the full benefits of standardization," says Couwenberg.

"At Philips Lighting, MATLAB and Simulink are key tools for mathematical analysis and computation. For HID lamps, MATLAB plays an important role in measuring ripple power and ensuring that performance standards are met in the industry."

Don Couwenberg,
Philips Lighting
 

Solution

Using MATLAB and the MATLAB Compiler, Philips Lighting created a standalone application for calculating ripple current and ensuring compliance with industry standards.

Couwenberg started by engaging MathWorks Consulting to develop a first proof-of-concept version of the application using MATLAB. Working from this version, Philips Lighting engineers continued using MATLAB to develop a full-featured version.

The engineers used MATLAB to implement an algorithm that analyzes a series of lamp voltages and lamp current measurements taken at periodic intervals to determine the harmonics of the ripple current.

The group used the Signal Processing Toolbox to perform the fast Fourier transform and perform sensitivity analysis by evaluating various windows, such as Blackman and Hamming windows.

They also used MATLAB development tools to create a graphical user interface that displays the harmonics as well as a test pass/fail indicator that verifies ballasts are within acceptable standards when the computed ripple power is less than 1.5 percent of the nominal power.

Engineers then used the MATLAB Compiler to create a standalone executable version of the tool that can be run outside MATLAB, saving them time in rewriting the application.

Philips Lighting is in the final stages of prerelease testing of the tool. They are also using Simulink and additional MathWorks tools to model sophisticated control loops for the switch mode power supply of lamps to enhance color performance and light quality.

 

Results

  • Ripple current testing simplified. "Availability and accessibility are key advantages of using MATLAB for this project," says Couwenberg. "By creating an executable file that provides authorized compliance test results, we have removed all barriers for manufacturers to ensure their electronics meet the industry standard for ripple current."

  •  
  • Deeper analysis facilitated. In addition to providing a standalone application, ELMAPS is releasing the MATLAB code to enable vendors to determine how the end results are obtained. "If someone wants to look in more detail or perform further analysis, they can use MATLAB and the code to get more insight," says Couwenberg.
     
  • Project initiated quickly. "After we had agreed on the mathematical description of how to calculate the ripple current, I contacted MathWorks Consulting," says Couwenberg. "One of the specialists created the first version of the tool for us, which was a great help in getting the development started."

Products Used

MATLAB®
MATLAB® Compiler
Signal Processing Toolbox
Simulink®