Skip to content

Starting a dummy instrument from the serverConfig.yml throws error #149

Description

@rroodll

This deosn't seem to effect usage, just seems to be a weird error that I only see starting from the serverConfig.yml. When I try and connect to the dummy instrument directly it does not throw this error in the InstrumentServer log.

Is the below error simply a mis-configuration? (see bottom for config file entry)

[07/21 11:00] [instrumentserver.client.core: INFO] Connecting to tcp://localhost:5555
[dummy_instrument_random_number(DummyInstrumentRandomNumber)] Error getting or interpreting *IDN?: ''
Traceback (most recent call last):
File "C:\ProgramData\miniconda3\envs\qcml\Lib\site-packages\qcodes\instrument\instrument.py", line 100, in get_idn
idstr = self.ask("*IDN?")
^^^^^^^^^^^^^^^^^
File "C:\ProgramData\miniconda3\envs\qcml\Lib\site-packages\qcodes\instrument\instrument.py", line 445, in ask
raise e
File "C:\ProgramData\miniconda3\envs\qcml\Lib\site-packages\qcodes\instrument\instrument.py", line 439, in ask
answer = self.ask_raw(cmd)
^^^^^^^^^^^^^^^^^
File "C:\ProgramData\miniconda3\envs\qcml\Lib\site-packages\qcodes\instrument\instrument.py", line 459, in ask_raw
raise NotImplementedError(
NotImplementedError: ('Instrument DummyInstrumentRandomNumber has not defined an ask method', "asking '*IDN?' to <DummyInstrumentRandomNumber: dummy_instrument_random_number>")

serverConfig.yml:

instruments:
dummy_instrument_random_number:
type: instrumentserver.testing.dummy_instruments.generic.DummyInstrumentRandomNumber
initialize: True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions