Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcollins1983 opened this issue Dec 12, 2022 · 1 comment

Comments

@jcollins1983
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants