We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ef718 commit b475aefCopy full SHA for b475aef
1 file changed
absscpi/client.py
@@ -1333,6 +1333,22 @@ def get_model_info(self) -> AbsModelInfo:
1333
self.__check_err(res)
1334
return info
1335
1336
+ def get_model_id(self) -> str:
1337
+ """Query the ID of the currently loaded model. This ID is user-defined
1338
+ and is not used by the unit. It is intended for use by tools.
1339
+
1340
+ Returns:
1341
+ Model ID.
1342
1343
+ Raises:
1344
+ ScpiClientError: An error occurred while executing the query.
1345
+ """
1346
+ buf = create_string_buffer(256)
1347
+ res = self.__dll.AbsScpiClient_GetModelId(
1348
+ self.__handle, byref(buf), c_uint(len(buf)))
1349
+ self.__check_err(res)
1350
+ return buf.value.decode()
1351
1352
def set_global_model_input(self, index: int, value: float):
1353
"""Set a single global model input.
1354
0 commit comments