You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
757B

  1. classdef Oscilloscope < Equipment
  2. %OSCILLOSCOPE Summary of this class goes here
  3. % Detailed explanation goes here
  4. properties
  5. end
  6. methods
  7. function obj = Oscilloscope(ipAddress,port,nchannels)
  8. %OSCILLOSCOPE Construct an instance of this class
  9. % Detailed explanation goes here
  10. obj@Equipment(ipAddress,port,-1);
  11. for i = 1:nchannels
  12. obj.(['ch',num2str(i)]) = Channel(inputArg1,inputArg2);
  13. end
  14. end
  15. function outputArg = method1(obj,inputArg)
  16. %METHOD1 Summary of this method goes here
  17. % Detailed explanation goes here
  18. outputArg = obj.Property1 + inputArg;
  19. end
  20. end
  21. end