<< ld_PF_Finalise udp_communication ld_PF_Parameter >>

ORTD Scilab Interface Toolbox >> udp_communication > ld_PF_InitInstance

ld_PF_InitInstance

Calling Sequence

[sim, PacketFramework] = ld_PF_InitInstance(sim, InstanceName, Configuration)

Description

Initialise an instance of the Packet Framework

InstanceName - a unique string identifier for the instance

Configuration must include the following properties:

Configuration.UnderlyingProtocoll = &quot;UDP"

Configuration.DestHost

Configuration.DestPort

Configuration.LocalSocketHost

Configuration.LocalSocketPort

Example:

Configuration.UnderlyingProtocoll = &quot;UDP";

Configuration.DestHost = &quot;127.0.0.1";

Configuration.DestPort = 20000;

Configuration.LocalSocketHost = &quot;127.0.0.1";

Configuration.LocalSocketPort = 20001;

[sim, PacketFramework] = ld_PF_InitInstance(sim, InstanceName=&quot;UDPCommunication", Configuration);

Also consider the file webappUDP.js as the counterpart that communicates to ORTD-simulations


Report an issue
<< ld_PF_Finalise udp_communication ld_PF_Parameter >>