<s>
PLECS	B-Algorithm
(	O
Piecewise	O
Linear	O
Electrical	B-Language
Circuit	I-Language
Simulation	I-Language
)	O
is	O
a	O
software	O
tool	O
for	O
system-level	O
simulations	O
of	O
electrical	O
circuits	O
developed	O
by	O
Plexim	O
.	O
</s>
<s>
PLECS	B-Algorithm
includes	O
the	O
possibility	O
to	O
model	O
controls	O
and	O
different	O
physical	O
domains	O
(	O
thermal	O
,	O
magnetic	O
and	O
mechanical	O
)	O
besides	O
the	O
electrical	O
system	O
.	O
</s>
<s>
Most	O
circuit	B-Language
simulation	I-Language
programs	I-Language
model	O
switches	O
as	O
highly	O
nonlinear	O
elements	O
.	O
</s>
<s>
This	O
approach	O
,	O
which	O
is	O
implemented	O
in	O
PLECS	B-Algorithm
,	O
has	O
two	O
major	O
advantages	O
:	O
Firstly	O
,	O
it	O
yields	O
systems	O
that	O
are	O
piecewise-linear	O
across	O
switching	O
instants	O
,	O
thus	O
resolving	O
the	O
otherwise	O
difficult	O
problem	O
of	O
simulating	O
the	O
non-linear	O
discontinuity	O
that	O
occurs	O
in	O
the	O
equivalent-circuit	O
at	O
the	O
switching	O
instant	O
.	O
</s>
<s>
In	O
recent	O
years	O
,	O
PLECS	B-Algorithm
has	O
been	O
extended	O
to	O
also	O
support	O
model-based	O
development	O
of	O
controls	O
with	O
automatic	O
code	B-Application
generation	I-Application
.	O
</s>
<s>
In	O
addition	O
to	O
software	O
,	O
the	O
PLECS	B-Algorithm
product	O
family	O
includes	O
real-time	O
simulation	O
hardware	O
for	O
both	O
hardware-in-the-loop	B-Application
(	O
HIL	O
)	O
testing	O
and	O
rapid	O
control	O
prototyping	O
.	O
</s>
<s>
The	O
PLECS	B-Algorithm
software	O
is	O
available	O
in	O
two	O
editions	O
:	O
PLECS	B-Algorithm
Blockset	O
for	O
integration	O
with	O
MATLAB®	O
/Simulink	O
®	O
,	O
and	O
PLECS	B-Algorithm
Standalone	O
,	O
a	O
completely	O
independent	O
product	O
.	O
</s>
<s>
When	O
using	O
PLECS	B-Algorithm
Blockset	O
,	O
the	O
control	O
loops	O
are	O
usually	O
created	O
in	O
Simulink	B-Application
,	O
while	O
the	O
electrical	O
circuits	O
are	O
modelled	O
in	O
PLECS	B-Algorithm
.	O
</s>
<s>
PLECS	B-Algorithm
Standalone	O
on	O
the	O
other	O
hand	O
can	O
be	O
operated	O
independently	O
from	O
other	O
software	O
and	O
offers	O
an	O
all-in-one	O
solution	O
for	O
modelling	O
electrical	O
circuits	O
and	O
controls	O
in	O
a	O
single	O
environment	O
.	O
</s>
<s>
The	O
main	O
difference	O
between	O
the	O
two	O
versions	O
is	O
that	O
PLECS	B-Algorithm
Standalone	O
runs	O
faster	O
than	O
PLECS	B-Algorithm
Blockset	O
due	O
to	O
its	O
optimised	O
engine	O
.	O
</s>
<s>
A	O
code	B-Application
generator	I-Application
usually	O
converts	O
some	O
intermediate	O
representation	O
of	O
source	O
code	O
into	O
machine	O
code	O
.	O
</s>
<s>
The	O
PLECS	B-Algorithm
Coder	O
is	O
an	O
add-on	O
to	O
PLECS	B-Algorithm
Blockset	O
and	O
PLECS	B-Algorithm
Standalone	O
.	O
</s>
<s>
It	O
generates	O
ANSI-C	O
code	O
from	O
a	O
PLECS	B-Algorithm
model	O
which	O
can	O
be	O
compiled	O
to	O
execute	O
on	O
the	O
simulation	O
host	O
or	O
a	O
separate	O
target	O
.	O
</s>
<s>
The	O
PLECS	B-Algorithm
Coder	O
can	O
also	O
produce	O
embedded	O
code	O
for	O
specific	O
hardware	O
targets	O
.	O
</s>
<s>
It	O
allows	O
engineers	O
to	O
test	O
their	O
control	O
algorithms	O
on	O
the	O
real	O
hardware	O
inside	O
a	O
virtual	O
circuit	B-Language
simulator	I-Language
.	O
</s>
<s>
As	O
an	O
add-on	O
to	O
PLECS	B-Algorithm
Blockset	O
and	O
PLECS	B-Algorithm
Standalone	O
,	O
PLECS	B-Algorithm
PIL	O
provides	O
that	O
solution	O
.	O
</s>
<s>
The	O
PLECS	B-Algorithm
RT	O
Box	O
is	O
a	O
real-time	O
simulator	O
specially	O
designed	O
for	O
power	O
electronics	O
applications	O
.	O
</s>
<s>
It	O
is	O
a	O
processing	O
unit	O
for	O
both	O
real-time	O
hardware-in-the-loop	B-Application
(	O
HIL	O
)	O
testing	O
and	O
rapid	O
control	O
prototyping	O
.	O
</s>
<s>
A	O
PLECS	B-Algorithm
RT	O
Box	O
can	O
be	O
programmed	O
and	O
operated	O
from	O
PLECS	B-Algorithm
.	O
</s>
<s>
Thus	O
,	O
a	O
software	O
license	O
of	O
PLECS	B-Algorithm
(	O
Blockset	O
or	O
Standalone	O
)	O
and	O
a	O
PLECS	B-Algorithm
Coder	O
license	O
are	O
required	O
to	O
operate	O
the	O
hardware	O
.	O
</s>
