Skip to content

AtvLuaDevice#

Controls a generic ATV Lua device from Python by sending Lua commands. This class inherits from MeasmaticDevice.


method check_errors()#

Checks the device for errors. For the ATV Lua device this does nothing.

Example#

device = measmatic.get_device('device-lua')
device.check_errors()

method execute_and_wait(command: str)#

Executes a Lua command and waits until it has actually been executed. For this a print("ok") is sent afterwards and the response ok is awaited. An error is raised if any other response is received.

Parameters#

Name Description
command The Lua command to execute.

Example#

device = measmatic.get_device('device-lua')
device.execute_and_wait('smu.output_off_all()')

method get_idn()#

Queries the identification string of the device ( *IDN? ).

Returns#

Type Description
str The identification string: manufacturer, device, serial number, firmware version, firmware date.

Example#

device = measmatic.get_device('device-lua')
idn = device.get_idn()