Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/27/2019 in all areas

  1. I know this is a OOP question, but there are other ways of addressing your problem that use "duck typing", such as Shaun's SCPI instruments. In my case, there would probably be an "actor" somewhere that responds to requests for current readings, and any actor that responds to those same messages is capable of substituting for it.
    1 point
  2. If the DVM and power supply are SCPI compliant; you only need to change the address of the command you send.
    1 point
  3. I agree with James. That could be achieved through composition and adding an abstraction layer. (Sink and Source in the diagram below)
    1 point
  4. Could you use an adaptor around the DVM that inherits from the desired abstract classes? That has been my solution to this problem in the past.
    1 point
  5. 1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.