03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 2-24. Principle of MCLib testing<br />

Chapter 2 Introduction<br />

In order to test the UUT under all conditions, three types of test vector sets are used:<br />

• Deterministic vectors - a specifically defined set of input values over the entire input<br />

range.<br />

• Stochastic vectors - a pseudo-r<strong>and</strong>omly generated set of values (non-deterministic<br />

values fully covering the input range).<br />

• Boundary vectors - a set of input values <strong>for</strong> which the potential weaknesses of the<br />

tested function are expected. This test is per<strong>for</strong>med only on functions where these<br />

limit conditions might occur.<br />

Each function is considered tested if the required accuracy during deterministic,<br />

stochastic <strong>and</strong> boundary tests has been achieved. The following two subchapters MCLib<br />

Testing based on the MATLAB Simulink Toolbox <strong>and</strong> MCLib target-in-loop Testing<br />

based on the SFIO Toolbox describe the differences between MCLIB testing based on<br />

BAM models <strong>and</strong> target-in-loop testing based on SFIO models.<br />

2.13.1 MCLib Testing based on the MATLAB Simulink Toolbox<br />

An example of the testing principle based on the BAM is depicted in the Clark<br />

trans<strong>for</strong>mation function (Figure 2-25). The Bit Accurate Model contains the binary MEXfile<br />

built from the GMCLIB_Clark function using the MATLAB compiler. This file is<br />

called inside the BAM model, see Figure 2-26. The Reference Model of the Clark<br />

trans<strong>for</strong>mation is not included in the MATLAB Simulink Toolbox <strong>and</strong> hence its<br />

mathematical representation had to be created. A detailed scheme of the Clark RM is in<br />

Figure 2-27.<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

Freescale Semiconductor, Inc. 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!