# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent driver keysight_N8740A = { vendor = keysight; device = N8740A; protocol = std class = environment simulation_group = environment_simulation group = { type = int; var state = { readable = 2; read_command = 'OUTPUT:STATE?'; writeable = 1; write_command = 'OUTPUT:STATE '; allowed = '0,1'; } } group current = { type = float; var sensor = { readable = 1; read_command = 'MEASURE:CURRENT?'; writeable = 1; read_command = 'MEASURE:CURRENT '; } var setpoint = { readable = 1; read_command = 'SOURCE:CURRENT?'; writeable = 1; read_command = 'SOURCE:CURRENT '; } var limit = { readable = 1; read_command = 'SOURCE:CURRENT:PROTECTION?'; writeable = 1; read_command = 'SOURCE:CURRENT:PROTECTION '; } } group voltage = { type = float; var sensor = { readable = 1; read_command = 'MEASURE:VOLTAGE?'; writeable = 1; read_command = 'MEASURE:VOLTAGE '; } var setpoint = { readable = 1; read_command = 'SOURCE:VOLTAGE?'; writeable = 1; read_command = 'SOURCE:VOLTAGE '; } var limit = { readable = 1; read_command = 'SOURCE:VOLTAGE:PROTECTION?'; writeable = 1; read_command = 'SOURCE:VOLTAGE:PROTECTION '; } } group system = { type = text; data = false; control = false; mutable = false; nxsave = false; var error = { readable = 1; read_command = 'SYSTEM:ERROR?'; } var version = { readable = 1; read_command = 'SYSTEM:VERSION?'; } } }