We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efc181f + 8f49677 commit 5962e2aCopy full SHA for 5962e2a
1 file changed
absscpi/client.py
@@ -477,6 +477,23 @@ def get_alarms(self) -> int:
477
self.__check_err(res)
478
return alarms.value
479
480
+ def get_interlock_state(self) -> bool:
481
+ """Query the system interlock state. When in interlock, the system will
482
+ be put into its PoR state and cannot be controlled until the interlock
483
+ is lifted.
484
+
485
+ Returns:
486
+ The interlock state.
487
488
+ Raises:
489
+ ScpiClientError: An error occurred while executing the query.
490
+ """
491
+ state = c_bool()
492
+ res = self.__dll.AbsScpiClient_GetInterlockState(
493
+ self.__handle, byref(state))
494
+ self.__check_err(res)
495
+ return state.value
496
497
def assert_soft_interlock(self):
498
"""Assert the software interlock (a recoverable alarm).
499
0 commit comments