I'm trying to create a class which inherits from the visa class from the Instrument Control Toolbox, such that I can define my own methods and properties.
So far I have the following code:
classdef DAQ970A < visa
methods
function obj = DAQ970A()
obj = obj@visa('keysight', 'USB0::0x2A8D::0x5101::MY58003119::0::INSTR');
end
end
end
However, when I try to inspect the class, double clicking it the the workspace tab, I get an error pop-up with the title "Inspection error" and descrption "Too many input arguments". What am I doing wrong?
If I try accessing the properties from the parent class, like so:
Daq = DAQ970A();
Daq.InputBufferSize
I get the following error:
Error using instrument/subsref (line 113)
Too many input arguments.
I suspect these are related.