SetNetwork

Configures settings that are found in the Network Settings dialog.

Note: Use the Store Settings (TS) native mode command to save changes to the proc.set file. If not saved to the proc.set file, the changes will be lost after power-cycling the In-Sight vision system. For more information, see Store Settings.

SetNetwork Inputs

Syntax: EV SetNetwork(UseDHCP,"HostName","IPAddress","SubnetMask","DefaultGateway","DNSServer","DomainName")

Parameter Description
UseDHCP

0 = Disabled

1 = Enabled

"HostName"

The In-Sight sensor host name.

"IPAddress"

The In-Sight sensor IP address.

"SubnetMask"

The In-Sight sensor subnet mask.

"DefaultGateway"

The In-Sight sensor default gateway.

"DNSServer"

The IP address of the gateway host.

"DomainName" The network domain for the In-Sight sensor.
Note: The IPAddress, SubnetMask, DefaultGateway, DNSServer, and DomainName parameters modify the static fields, not the current fields, as shown in the returns from the GetNetwork command.

SetNetwork Outputs

Returns a status code, followed by the number of characters (in bytes) for the results, then the results in XML format. The status codes are:

Status Codes Description
1 The command was executed successfully.
0 Unrecognized command.
-2 The command could not be executed.
-6 User does not have Full Access to execute the command. For more information, see User Access Settings Dialog.

SetNetwork Example

To configure the following settings:

  • UseDHCP: 0
  • "HostName": is8402_010203
  • "IPAddress": 192.168.0.1
  • "SubnetMask": 255.255.255.0
  • "DefaultGateway": 192.168.0.254
  • "DNSServer": 192.168.0.2
  • "DomainName": yourdomain.com

Issue the following command:  EV SetNetwork(0,"is8402_010203","192.168.0.1","255.255.255.0","192.168.0.254","192.168.0.2","yourdomain.com")

The In-Sight sensor responds with a status code (1), followed by the number of characters, in bytes (18). Finally, the results are returned in XML format.