Python Core API ziDAQServer¶
zhinst.core.ziDAQServer(host, port, api_level, allow_version_mismatch=False)
¶
Class to connect with a Zurich Instruments data server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host |
str
|
Host string e.g. '127.0.0.1' for localhost |
required |
port |
int
|
Port number e.g. 8004 for the ziDataServer. |
required |
api_level |
Literal[0, 1, 4, 5, 6]
|
API level number. |
required |
allow_version_mismatch |
bool
|
if set to True, the connection to the data-server will succeed even if the data-server is on a different version of LabOne. If False, an exception will be raised if the data-server is on a different version. (default = False) |
False
|
Properties¶
api_level: Literal[0, 1, 4, 5, 6]
property
¶
The ziAPI level used for the active connection.
.. versionadded:: 22.08
host: str
property
¶
The host used for the active connection.
.. versionadded:: 22.08
port: int
property
¶
The port used for the active connection.
.. versionadded:: 22.08