[sim, PacketFramework] = ld_PF_InitInstance(sim, InstanceName, Configuration)
Initialise an instance of the Packet Framework
InstanceName - a unique string identifier for the instance
Configuration must include the following properties:
Configuration.UnderlyingProtocoll = "UDP"
Configuration.DestHost
Configuration.DestPort
Configuration.LocalSocketHost
Configuration.LocalSocketPort
Example:
Configuration.UnderlyingProtocoll = "UDP";
Configuration.DestHost = "127.0.0.1";
Configuration.DestPort = 20000;
Configuration.LocalSocketHost = "127.0.0.1";
Configuration.LocalSocketPort = 20001;
[sim, PacketFramework] = ld_PF_InitInstance(sim, InstanceName="UDPCommunication", Configuration);
Also consider the file webappUDP.js as the counterpart that communicates to ORTD-simulations