Frequently Asked Question

Video: 2.3.2. Real vs Virtual HIL Device
Last Updated 3 years 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:02

Welcome back! In the previous sections, we looked into different ways to build and customize your  

00:00:08

model and SCADA panel. Until now, we have run all of our models using Virtual HIL.  

00:00:13

Virtual HIL is a software module within the Typhoon HIL software tool-chain that emulates  

00:00:18

a Typhoon HIL device on your PC in non-real-time. Due to the software-based nature of Virtual HIL,  

00:00:25

there is no external IO support. Simulating your model in Virtual HIL can be helpful  

00:00:30

for precise HIL device sizing, avoiding any surprises in your HIL purchase decision. 

00:00:35

To find out in which mode the simulation is running you can  

00:00:38

find out in the right corner of HIL SCADA. As you can see, we are now in Virtual HIL mode.  

00:00:44

Also, let’s quickly compare system time with the simulation time.  

00:00:49

We can see that we are not running the model in real time with Virtual HIL. 

00:01:04

Now, let’s see how we can switch from Virtual HIL mode to real time mode. First,  

00:01:10

connect your HIL device to your PC. his particular HIL device is connected using a USB cable. 

00:01:17

Now that we have turned on and connected the HIL device, let’s wait around 30 seconds for  

00:01:21

the HIL device to boot. The process of booting is finished when the LED on the front plate of  

00:01:26

the HIL blinks twice. After this process we can load the model again from within HIL SCADA. 

00:01:34

Now that the HIL is ready, let’s go to the Model menu and load the model. 

00:01:44

Now let’s check if the HIL device is properly connected.  

00:01:47

To see which HIL device we is connected to and what time step we are simulating,  

00:01:51

we can always choose the Show information about loaded model option in the Model menu. If the  

00:01:56

model is running on a HIL device, the serial number and device name will be visible. 

00:02:06

As we can see, it automatically loaded the model to the real HIL device. Also,  

00:02:12

now in the right corner we can see that we are now in real-time mode. 

00:02:16

It is important to note that the model is already compiled. The model compilation  

00:02:21

process we performed earlier generates a file folder which can be used by Virtual HIL or a HIL  

00:02:26

device. This means there is no need to compile the model again when switching from Virtual HIL  

00:02:32

to a HIL device. Let’s open the simple drive system HIL model description file. 

00:02:34

Let’s return to the SCADA panel and start the simulation. 

00:02:35

If we compare the simulation time and system time, we can see that  

00:02:39

we are really in the real time.Also, we can see that LED on the HIL  

00:02:52

device is blinking which means that the simulation is running. 

00:02:57

Also, let’s take few minutes and take a look at the status bar in HIL SCADA. There are two SCADA  

00:03:03

flags and six HIL device flags. SCADA status flags are active in both HIL and virtual HIL mode. 

00:03:11

The next six flags are HIL device flags which are normally only active in real time mode.  

00:03:17

The sole exception to this is the arithmetic overflow flag,  

00:03:20

which can be raised in virtual HIL mode.The first one is the PSU fault indicator.  

00:03:26

It indicates the status of the externally available power supply unit. If you click on  

00:03:30

the PSU flag, a floating panel will open providing more detailed information about the power supply  

00:03:36

status and any faults. This flag is especially useful for simplifying troubleshooting when your  

00:03:42

controller board uses the power supply from the HIL device instead of an external supply. 

00:03:50

Next is the dead time violation flag, which lists the sources of any DTV errors. This indicates a  

00:03:57

shoot-through condition on any of the model's converter phase legs. If you click on the DTV  

00:04:02

flag, a floating panel will open, providing a list of all the latched DTV error sources. 

00:04:10

The Arithmetic overflow indicator or AO, indicates that some values from the simulated model were out  

00:04:16

of the HIL device’s numerical range. This may be followed by erratic model behaviour.  

00:04:22

The Arithmetic Overflow flag is reset when the simulation is stopped.  

00:04:26

As we mention before this indicator can be raised in Virtual HIL mode as well. 

00:04:33

Serial link status indicator or SLD, indicates that the serial link with the HIL device is down.  

00:04:39

The flag is reset when the simulation is stopped. 

00:04:45

Also, one very important status is computing interval overrun or CIO. It indicates that  

00:04:51

the Signal Processing computation time exceeded the reserved time slot. The flag is reset when  

00:04:57

the simulation is stopped. Here you can see the system CPU and the user CPU signal processing time  

00:05:04

utilization. You can see that the user execution rate is 100 micro seconds. You will find out more  

00:05:11

information about the CIO time slot monitor in the Troubleshooting real-time models session. 

00:05:19

The signal processing exception indicator or EXC, indicates that an exception is thrown  

00:05:24

by the generated code running on either System, User, or Communication CPU. The  

00:05:30

flag is reset when the simulation is stopped. If you click on the EXC flag, a floating panel will  

00:05:35

open providing more detailed information about exceptions that have occurred. 

00:05:40

The next two flags are related to HIL SCADA panel. 

00:05:46

The time slot overrun indicator or TSO, indicates that the HIL SCADA computation  

00:05:51

time exceeded the allocated time slot. When this flag is raised,  

00:05:55

it indicates that HIL SCADA cannot do all computations in the specified time slot either  

00:06:00

because of the complexity of the embedded expression scripts, the number of widgets,  

00:06:04

or because of interactions with the rest of the GUI while the simulation is running. 

00:06:11

The widget errors indicator or WER, indicates that one or more errors occurred in some  

00:06:16

of the active Panel’s widgets.In this short session, you saw how to  

00:06:23

easily switch from virtual HIL mode to real time mode. You also learned about the key  

00:06:27

differences in the HIL SCADA environment when working with these two modes.

Please Wait!

Please wait... it will take a second!