User manual
Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-87
:LAN:IPADdress
Syntax
:LAN:IPADdress <string>
:LAN:IPADdress?
Description
Sets or queries the IP address of the instrument.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the first section of
"nnn" is from 0 to 223 (except 127), and the ranges of the other three sections of
"nnn" are from 0 to 255.
When you use the command, the IP configuration mode should be static IP.
Besides, the DHCP and auto IP should be disabled.
Return
Format
The query returns the current IP address in strings.
Example
:LAN:IPADdress 192.168.1.10 /*Sets the IP address to 192.168.1.10.*/
:LAN:IPADdress? /*The query returns the current IP address.*/
:LAN:SMASk
Syntax
:LAN:SMASk <string>
:LAN:SMASk?
Description
Sets or queries the subnet mask.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the section "nnn" is
from 0 to 255.
When you use the command, the IP configuration mode should be static IP. The
DHCP and auto IP should be disabled.
Return
Format
The query returns the current subnet mask in strings.
Example
:LAN:SMASk 255.255.255.0 /*Sets the subnet mask to 255.255.255.0*/
:LAN:SMASk? /*The query returns the current subnet mask.*/
:LAN:STATus?
Syntax
:LAN:STATus?
Description
Queries the current network configuration status.
Return
Format
The query returns UNLINK, CONNECTED, INIT, IPCONFLICT, BUSY, CONFIGURED,
DHCPFAILED, INVALIDIP, or IPLOS.
UNLINK: not connected.
CONNECTED: the network is successfully connected.
INIT: the instrument is acquiring an IP address.
IPCONFLICT: there is an IP address conflict.
BUSY: please waiting…
CONFIGURED: the network configuration has been successfully configured.