Frequently Asked Question

Video: 4.0.1. Creating a C-HIL setup
Last Updated a year ago


Press "Ctrl + F" to find the keyword of your interest.

If you wish to have a direct link access to the video timestamps, please follow these instructions.

Found this video helpful? Why not take the whole HIL Specialist course? A Certificate is waiting for you for free at HIL Academy.

Would you or your organization benefit from having these videos narrated in your native language? Contact us and let us know if you wish to contribute.

TRANSCRIPT

00:00:01

Hello and welcome to the Signals and Interfacesmodule.

00:00:04

In this first lesson, we will introduce Controller-Hardware-in-the-loop,or C-HIL simulation as a development and testing

00:00:11

strategy.

00:00:12

We will also look at how it can be implementedin the Typhoon HIL toolchain.

00:00:17

C-HIL is a development and testing frameworkwhere a real, physical controller is interfaced

00:00:22

with a high-fidelity plant model that is emulatedin real time.

00:00:26

With this setup, the controller is unawarethat it is interacting with an emulated system,

00:00:31

and it operates in response to plant conditionsprecisely as it would in a real system.

00:00:36

The primary purpose of the C-HIL approachis to reduce development risk and speed up

00:00:41

the development and validation of controllerhardware, firmware, and software by enabling

00:00:46

efficient and safe high-fidelity testing.

00:00:49

These tests can cover a wide range of operatingconditions, including hazardous cases such

00:00:54

as fault conditions in both power and controlsystems.

00:00:58

In short, the C-HIL approach lets you performhigh-fidelity tests of your controller hardware

00:01:02

with increased safety, flexibility, expandability,and a lower maintenance cost.

00:01:08

Additionally, C-HIL lets you benefit fromtest automation and test-driven development

00:01:13

capabilities.

00:01:14

Let s take a closer look at this concept.

00:01:17

The left side of the illustration representsa real controller connected to a real power

00:01:21

plant, while the right side represents theC-HIL environment.

00:01:25

When transitioning from a real system to aC-HIL system, we can see that the controller

00:01:29

remains the same, while the power stage isnow modelled and simulated in real-time using

00:01:35

a HIL device.

00:01:36

On the right side, we can see that there are3 main parts of a C-HIL system: the real controller,

00:01:42

which in this case is the device under test,the real-time simulator, and the interface.

00:01:48

In the first video of the HIL Fundamentalscourse, we have shown what a typical C-HIL

00:01:52

setup looks like.

00:01:53

Let s review this now.

00:01:55

In this example, we have a Texas Instrumentscontroller connected to a HIL device.

00:02:01

The interface used is the HIL TI LaunchpadInterface board.

00:02:06

Analog and Digital IOs of the controller areconnected to the HIL device through DIN connectors.

00:02:12

The USB cable you see is intended to be usedfor communication between the controller and

00:02:17

your PC.

00:02:19

Setting up a C-HIL system is done in threemain steps: the first step involves building

00:02:24

and validating the model of the power stagein real time.

00:02:27

This step includes setting and validatingall model parameters, without connecting the

00:02:32

device under test.

00:02:33

The second step is to use a proper interfaceto physically connect the controller to the

00:02:38

real-time simulator.

00:02:39

In our example, this is done by mounting theTexas Instruments Launchpad to Typhoon HIL

00:02:44

s Launchpad interface board, both of whichare available off-the-shelf.

00:02:48

Let s see an example of how this is done;we will cover this same example in more hands-on

00:02:54

way in the HIL for Power Electronics course.

00:02:56

Before mounting the Launchpad in the interfaceboard, make sure that the connectors of the

00:03:01

Launchpad are well aligned with the pins onthe interface card.

00:03:04

This should be done carefully, as mountingincorrectly can cause the pins on the interface

00:03:09

card to bend.

00:03:10

Once you successfully mount the Launchpadto the interface board, connect the analog

00:03:14

and digital connectors of the interface tothe HIL device.

00:03:18

The easiest way to do that is to start onone side, and then the other, as shown here.

00:03:23

Now that the interface card is successfullyconnected to the HIL device, let's plug the

00:03:27

USB cable into the Launchpad DSP.

00:03:31

Here you can see how the Launchpad isThe third step of the setup is to adjust the

00:03:38

model settings related to the interface, linkingthe variables in the model to their respective

00:03:43

physical connections.

00:03:44

In power electronics applications, this usuallyinvolves linking the gate drive signals provided

00:03:50

as digital inputs of the HIL device to theconverter switches in the model, as well as

00:03:55

setting the HIL device analog outputs accordingto the feedback signals required by the controller.

00:04:00

In the next videos, we will go more in depthabout these settings, and how they can be

00:04:05

configured in the Typhoon HIL toolchain.

Please Wait!

Please wait... it will take a second!