Frequently Asked Question
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.
Hello! In this video you will learn the basics of working in Schematic Editor.
From the Typhoon HIL Control Center main menu, Schematic Editor is the first icon on the left.
Once launched, Schematic Editor shows the recently opened schematic files,
so you can quickly go to any of your current projects. Of course, you also have dedicated
buttons in the interface that you can use to create a new model, load an existing model,
save the current model, and more. You can use the same commands in the File menu.
Now let’s create a model and see how Schematic Editor actually works.
To create a model, you can click the Create a new schematic button here,
or you can go to File -> New -> New model. This opens the New model wizard, letting you choose
the HIL Device for which you want to create the model. In this case, let’s choose HIL 404.
The hardware configuration ID can be selected now or later.
Here, you can also auto-detect the hardware settings of your connected HIL device.
Down here, you can choose the simulation method. You have four methods at your disposal:
exact, trapezoidal, Euler, and bilinear. In the majority of cases,
the exact method is the preferred option; other methods, should only be used in special cases,
for example, if there are memory constraints. Let’s set this to 1 microsecond. Once we finish
with initial settings, let’s click Next, and if everything looks OK, just click Finish.
This blank space that you see is the canvas for your schematic drawings.
You create your model by simply dragging and
dropping the required components onto the canvas and connecting them together.
All the components are located in the Library Explorer on the left side of the screen.
As you can see, Schematic Editor is not much different from other
graphical programming tools that you have already used, so learning it will come easy.
Let’s say that you want to find a Voltage Source: you can find it by typing the keyword
in the search input box or by navigating to Sources in the tree view, where you can find
the Voltage Source. Then, just drag and drop the component to place it into your model schematic.
You can rotate the component, and change the voltage. To adjust the properties of the
component, double-click the component and enter the desired value into the relevant property box.
By double-clicking on the name instead, you can rename the component.
Of course, you can do this with all other components as well.
Let’s add one more component and connect them. We will add a Three-Phase Inverter.
To find this component go to Converter -> Three Phase Inverter. To connect components, just click
the connector. When you move the mouse, you will see that you are now creating a connecting line.
To connect to another connector, just click the target you want to connect to. Like so.
Another really interesting feature is the Model Initialization Script in the Model menu.
What does that actually do? In the script, you can define some variables.
Let’s say that Vdc equals 400 V. This will set and override the initial values for that variable for
the whole model in one place, making defining and changing parameters as easy as possible.
Moreover, you have complete flexibility to deploy any Python code in this script.
This means you can load parameters from the file, or, if you are very proficient in Python,
you can even write a web client that fetches a web page and grabs the relevant parameters.
Or you can take the parameters from GitLab, GitHub, or some other DevOps platform.
So, the fact that you can use Python here, opens up a whole new world of possibilities
and gives you a lot of flexibility. What else can you do? Well, you can add more components.
Let’s add an induction machine. This time,
let’s do it by typing in the search string in the find component box.
There are many types of induction machines, but in this example we are going to use an
Induction Machine with Squirrel Cage - Voltage Behind Reactance. Just drag,
drop, and connect it. Let’s open the properties of the induction machine.
Here you can define basic electrical and mechanical parameters.
Let’s set the combined rotor and load moment of inertia to 10 gram meters squared.
Also, you can set the Load source and type of the source. In this case we will use Model and
torque. In the Feedback tab, it’s possible to set an incremental or absolute encoder.
In the Advanced tab you can set the rotating frame of the angle,
and in the Output tab you can enable the signals which you want to output to the model.
In this example we will select mechanical speed. The outputs will be presented as a
vector. You can find more information about the induction machine by clicking Help.
Now that you’ve added an induction machine, you can also add some current and voltage
measurements. Current and voltage measurements allow you to see them in HIL SCADA when you are
running your simulation. Let’s add one current measurement for the DC current on the DC link,
and one current RMS measurement on the AC side. Also, let’s add one voltage measurement to measure
the line A to line B voltage. Let’s rename all these measurements to Idc, Iac rms, and Vab.
Using Probe monitors you can observe and monitor the signal processing values in the real time.
To find the Probe go to Sinks -> Probe. Now, let’s drag and drop.
Probe components must be connected to a signal processing output.
Measurement components can enable signal processing outputs by navigating to the
Signal Processing tab in their properties menu and setting Signal output to True.
Let’s do that now for the Iac rms component. Also, let’s set the execution rate to 100 micro seconds.
Now, you have a terminal which you can use for signal processing purposes.
Let’s connect the current RMS Iac rms to the probe and change its name to Iarms.
Also, let’s add another probe for mechanical speed measurement and rename it to machine speed.
To control the inverter, we need to enable internal modulator control.
Let’s set the switching frequency to 30 kHz and the dead time period to 0.5 micro seconds.
Another set of features worth mentioning, are features that are jointly called SCADA inputs.
Let’s find them in the Library Explorer. SCADA inputs allow you to set values in
real time when you are interacting with the simulation in HIL SCADA.
Let’s change the name of this SCADA input component to Inverter Enable
and connect the SCADA input to the En inputs of the three-phase inverter.
Also, let’s add another SCADA input to set the load to the induction machine and name it T.
Also, let’s add an alpha beta to abc component and connect the outputs of the component with a
to InA, b to InB, and c to InC. As inputs to the alpha beta to abc component, let’s
use two sinusoidal waveforms which have a phase difference of -90 degrees and a zero constant.
Let’s find these components and drag and drop in to the schematic,
and connect them with the alpha beta to abc component.
Let’s change the name of these components to alpha, beta, and zero.
Good, so let’s take a look at the model that we’ve just built now. You can see that
here you have some blocks that are colored in black and some in blue. These colors indicate
two different domains of the system architecture previously explained in the introductory module.
The black part of the schematic indicates the electrical part of the system. That is the
part that runs on the real time circuit solver with a simulation step down to 200 nanoseconds.
The blue part indicates the signal processing part that runs on the general-purpose CPU and
typically runs at different execution rates. You can see this by double-clicking the
current measurement Iac. As you can see, right now it is set to 100 microseconds.
The Signal processing part is generally used for control loops that are implemented here in the
model, but also for non-electrical domain modeling, such as thermal and mechanical.
Also, there is a possibility to perform software-in-the-loop testing using the
Advanced C function component in the Functions and Tables folder. With this component,
you can import a controller model as C code generated from a third party software, as well as,
import DLL and H files. Schematic Editor also enables you to integrate with various simulation
tools, including co-simulation through FMI, open-source interfaces with Xyce, and OpenDSS.
Now let’s compile and load the model. First, let’s save the model. Let’s create a new folder with
the name “simple drive system” and inside of it save the model with the same name.
Then, we click on the Compile and Load the model button to run the compilation process.
In the message console you can find the information on how the model utilizes the HIL
hardware resources (for example the memory matrix utilization, the time slot utilization, and more).
We will cover hardware utilization in a separate module: Troubleshooting real-time modules.
With this, you have gained the basic skillset necessary to use Typhoon HIL Schematic Editor.
Now, feel free to play around and explore all the
components and blocks that you have at your disposal here in Library Explorer.