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.

36 lines
851B

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