Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

38 lignes
908B

  1. classdef Oscilloscope < Equipment
  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. % CHAN:DATA:POIN DEF
  22. % CHAN:DATA:POIN?;:CHAN2:DATA:POIN?
  23. % Returned values: 10416;10416
  24. % CHAN:DATA:POIN DMAX
  25. % CHAN:DATA:POIN?;:CHAN2:DATA:POIN?
  26. % Returned values: 124992;124992
  27. % CHAN:DATA:POIN MAX
  28. % CHAN:DATA:POIN?;:CHAN2:DATA:
  29. end
  30. end