Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Network switch for XR Instructor

  • Last UpdatedDec 04, 2023
  • 1 minute read

Some projects, such as those with multiple trainee simulation runtimes, may require the XR Instructor to disconnect from a network and connect to another one.

For a project to enable network switch at runtime:

  • XR Instructor must be a network client.

  • A define MDSTRING called networks must be defined in the scripts.

The structure of the define must be as shown in following code example and the numberOfNetworks must match the number of set elements.

Code example

This is a code example for a network switch.

<define name="networks" type="mdstring">

<set key="config">

<item key="numberOfNetworks" value="3"/>

</set>

<set key="network_0">

<item key="name" value="N0"/>

<item key="ip" value="192.168.40.111"/>

</set>

<set key="network_1">

<item key="name" value="N1"/>

<item key="ip" value="192.168.40.105"/>

</set>

<set key="network_2">

<item key="name" value="N2"/>

<item key="ip" value="192.168.40.103"/>

</set>

</define>

Create and configure a network

The first network (indicated as network_0) must correspond to what is configured in Message.host define.

Specify the network parameters.

Parameter

Use

Description

name

Mandatory

Network name

IP

Mandatory

IP address of the network server

Related Links
TitleResults for “How to create a CRG?”Also Available in