PyFixate / Fixate

Framework for hardware test fixtures and automatic test environments
MIT License
22 stars 16 forks source link

GUI hangs on "Unkown system error (miscellaneous error)" thrown by Visa #165

Open jcollins1983 opened 1 year ago

jcollins1983 commented 1 year ago

image

Traceback:


  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\sequencer.py", line 317, in run_test
    current_level.current().set_up()
  File "C:\wc\JIGS\J474 - IPD Processor tester\trunk\test scripts\as2081_validation_tests.py", line 218, in set_up
    reset_and_start_outlet()
  File "C:\wc\JIGS\J474 - IPD Processor tester\trunk\test scripts\as2081_validation_tests.py", line 162, in reset_and_start_outlet
    dm.dmm.voltage_dc(_range=20)
  File "C:\wc\JIGS\J474 - IPD Processor tester\trunk\test scripts\as2081_validation_jig.py", line 46, in dmm
    self._dmm = dmm.open()
  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\drivers\dmm\__init__.py", line 23, in open
    driver = Fluke8846A(rm.open_resource(instrument.address))
  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\drivers\dmm\fluke_8846a.py", line 55, in __init__
    self.reset()
  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\drivers\dmm\fluke_8846a.py", line 131, in reset
    self._is_error(silent=True)
  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\drivers\dmm\fluke_8846a.py", line 196, in _is_error
    code, msg = self._check_errors()
  File "c:\dev\py_envs\amptest\lib\site-packages\fixate\drivers\dmm\fluke_8846a.py", line 178, in _check_errors
    resp = self.instrument.query("SYST:ERR?")
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\resources\messagebased.py", line 642, in query
    self.write(message)
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\resources\messagebased.py", line 197, in write
    count = self.write_raw(message.encode(enco))
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\resources\messagebased.py", line 157, in write_raw
    return self.visalib.write(self.session, message)[0]
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\ctwrapper\functions.py", line 2796, in write
    ret = library.viWrite(session, data, len(data), byref(return_count))
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\ctwrapper\highlevel.py", line 226, in _return_handler
    return self.handle_return_value(session, ret_value)  # type: ignore
  File "c:\dev\py_envs\amptest\lib\site-packages\pyvisa\highlevel.py", line 251, in handle_return_value
    raise errors.VisaIOError(rv)

Using fixate version 0.6.0
John2202W commented 1 year ago

GUI hanging is a current issue when exceptions occur in testlist.exits(). Have a fix for the exception handling in the pipeline and can push when I next have time.