Skip to main content

Typhoon HIL Ethernet VE Typhoon HIL logo

VILLASnode can interface with Typhoon HIL simulators via their Ethernet Variable Exchange protocol. On VILLASnode's side this interconnection is realized with the socket node-type and the raw format-type.

Tested Versions​

The setup covered on this page has been tested with the following software versions:

Limitations​

  • Only the UDP protocol is supported by VILLASnode
  • Sending and receiving of string values is not supported by VILLASnode
  • All exchanged signals must use the same number of bytes
    • But data-types can be different for each signal

Typhoon example model​

VILLASnode ships with an example schematic for the Typhoon HIL control center.

Typhoon model schematic
Typhoon model schematic.

Settings​

In this demonstration we use the following settings as an example:

SettingValue
IP Address of Typhoon HIL target192.168.2.100
IP Address of VILLASnode192.168.2.200
Subnet Mask255.255.255.0
UDP Port Number on both sides12000
Number of bytes per signal8 (64 bit)
EndianessLittle

Configuration​

VILLASnode​

This VILLASnode configuration configures a simple loopback of the data send by the Typhoon HIL target back to itself.

typhoon.conf
stats = 1.0

nodes = {
typhoon_1 = {
type = "socket"
layer = "udp"
format = {
type = "raw"
endianess = "little"
bits = 64
}

in = {
address = "*:12000"

hooks = (
"stats"
)

signals = (
{ name = "signal0", type="float" },
{ name = "signal1", type="integer" },
{ name = "signal2", type="boolean" },
{ name = "signal3", type="float" },
{ name = "signal4", type="complex" }
)
}

out = {
address = "192.168.2.100:12000" # IP Address of Typhoon HIL target
}
}
}

paths = (
{
# A simple loopback
in = "typhoon_1"
out = "typhoon_1"
}
)

ETH VE Setup properties​

Property nameValue
IP address192.168.2.100
Subnet mask255.255.255.0
ETH VE Setup properties
ETH VE Setup properties.

VE Send properties​

Please use the following settings for the VE Send blocks:

TabProperty nameValue
NetworkProtocolUDP
NetworkSpecify local send portUnchecked
NetworkDestination IP address192.168.2.200
NetworkDestination port12000
DataConfigurationSee signal configuration section

ETH VE Setup properties 

ETH VE Setup properties
ETH VE Send properties.

VE Receive properties​

TabProperty nameValue
NetworkProtocolUDP
NetworkLocal receive port12000
NetworkSpecify source portUnchecked
NetworkSpecify source IP addressUnchecked
DataConfigurationSee signal configuration section

ETH VE Setup properties 

ETH VE Setup properties
ETH VE Receive properties.

Signal configuration​

You can either configure the signal mapping via Typhoon graphical editor as shown in the screenshot below:

ETH VE Setup properties
ETH VE Signal Configuration.

Or alternatively you can copy the following signal configuration into the Configuration property:

Typhoon Signal Configuration
[
{'signal_name': 'signal0', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'real', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'},
{'signal_name': 'signal1', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'int', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'},
{'signal_name': 'signal2', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'uint', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'},
{'signal_name': 'signal3', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'real', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'},
{'signal_name': 'signal4_real', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'real', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'},
{'signal_name': 'signal4_imag', 'signal_type': 'variable', 'signal_value': 'From input port', 'data_type': 'real', 'length': '8', 'endianess': 'little_endian', 'dimension': 'inherit'}]

Signal type mapping​

VILLAS signal typeTyphoon-HIL signal type
booleanuint
floatreal
integerint
complexuse two consecutive real signals