Net
SCPI Command:
SYSTem:COMMunicate:NET:ADAPter
SYSTem:COMMunicate:NET:GATeway
SYSTem:COMMunicate:NET:IPADdress
SYSTem:COMMunicate:NET:HOSTname
SYSTem:COMMunicate:NET:DHCP
- class NetCls[source]
Net commands group definition. 7 total commands, 2 Subgroups, 5 group commands
- get_adapter() str [source]
# SCPI: SYSTem:COMMunicate:NET:ADAPter value: str = driver.system.communicate.net.get_adapter()
Selects the network adapter and thus the connection type to be modified. All SYSTem:COMMunicate:NET… commands affect the selected network adapter. This command does not activate or deactivate a network adapter.
- return:
network_adapter: No help available
- get_dhcp() bool [source]
# SCPI: SYSTem:COMMunicate:NET:DHCP value: bool = driver.system.communicate.net.get_dhcp()
Enables or disables DHCP.
- return:
dhcp_enable: No help available
- get_gateway() str [source]
# SCPI: SYSTem:COMMunicate:NET:GATeway value: str = driver.system.communicate.net.get_gateway()
Defines IPv4 addresses of default gateways. The configuration is only possible if DHCP is disabled. A query returns the currently defined addresses, irrespective of whether they have been specified manually or via DHCP.
- return:
gateway: No help available
- get_hostname() str [source]
# SCPI: SYSTem:COMMunicate:NET:HOSTname value: str = driver.system.communicate.net.get_hostname()
Sets the host name of the CMA.
- return:
hostname: No help available
- get_ip_address() List[str] [source]
# SCPI: SYSTem:COMMunicate:NET:IPADdress value: List[str] = driver.system.communicate.net.get_ip_address()
Assigns one or more IPv4 addresses to the network adapter. The configuration is only possible if DHCP is disabled. A query returns the currently assigned addresses, irrespective of whether they have been assigned manually or via DHCP.
- return:
ip_address: No help available
- set_adapter(network_adapter: str) None [source]
# SCPI: SYSTem:COMMunicate:NET:ADAPter driver.system.communicate.net.set_adapter(network_adapter = '1')
Selects the network adapter and thus the connection type to be modified. All SYSTem:COMMunicate:NET… commands affect the selected network adapter. This command does not activate or deactivate a network adapter.
- param network_adapter:
String parameter
- set_dhcp(dhcp_enable: bool) None [source]
# SCPI: SYSTem:COMMunicate:NET:DHCP driver.system.communicate.net.set_dhcp(dhcp_enable = False)
Enables or disables DHCP.
- param dhcp_enable:
1 | 0 1: DHCP enabled and automatic TCP/IP address configuration 0: DHCP disabled and manual address configuration
- set_gateway(gateway: str) None [source]
# SCPI: SYSTem:COMMunicate:NET:GATeway driver.system.communicate.net.set_gateway(gateway = '1')
Defines IPv4 addresses of default gateways. The configuration is only possible if DHCP is disabled. A query returns the currently defined addresses, irrespective of whether they have been specified manually or via DHCP.
- param gateway:
String parameter, gateway IP address consisting of four blocks separated by dots Several strings separated by commas can be entered, or several addresses separated by commas can be included in one string.
- set_hostname(hostname: str) None [source]
# SCPI: SYSTem:COMMunicate:NET:HOSTname driver.system.communicate.net.set_hostname(hostname = '1')
Sets the host name of the CMA.
- param hostname:
Host name as string
- set_ip_address(ip_address: List[str]) None [source]
# SCPI: SYSTem:COMMunicate:NET:IPADdress driver.system.communicate.net.set_ip_address(ip_address = ['1', '2', '3'])
Assigns one or more IPv4 addresses to the network adapter. The configuration is only possible if DHCP is disabled. A query returns the currently assigned addresses, irrespective of whether they have been assigned manually or via DHCP.
- param ip_address:
String parameter, IP address consisting of four blocks (octets) separated by dots Several strings separated by commas can be entered, or several addresses separated by commas can be included in one string.
Cloning the Group
# Create a clone of the original group, that exists independently
group2 = driver.system.communicate.net.clone()
Subgroups