HIL Configuration Using Matlab
HIL Configuration Using Matlab
using Matlab/SIMULINK
Introduction
HILS is known as hardware-in-the-loop simulation testing
where uses interaction between hardware and software.
xPC Target is a real-time software environment from
MathWorks which runs on a separate workstation
xPC Target is used as part of the real-time control
system for the projects.
In real-time control systems, the act of reading sensors,
generating feedback, and changing the corresponding
control input is guaranteed within a set response time.
Installation
xPC installation is a one-time
process, after which you will have the
freedom to work on simulation and
control design on your laptop while
using the desktop to test hardware
implementation.
Equipments
Configuration of Host PC
LAN
Go to Control Panel > Network and Internet >
Network and Sharing Center > Manage network
connections (for Vista) or Change adapter
settings
(Windows 7).
Select Local Area Connection > Properties.
Go to TCP/IP v4 Properties.
Select Use the following IP address and click
Advanced without filling in the details.
Set IP address to 192.168.1.1
Set the subnet to 255.255.255.0
Testing Procedure
Create a mdl file in SIMULINK to
interlink Host PC and Target PC using
the analog input (for ex: PCI 6221
since this the NI DAQ board serial
name)
Build the system to Target PC by
clicking Control+B
The xPC Target compiled the system
and upload in Target PC.
Thank you..