Skip to content

sub instruments #8

Description

@phsdv

Is there a nice way to use instruments in instruments?

For example in an oscilloscope there could be a function generator build in. It would be nice if we can program all the functions of this function generator in a separate file and class. This could than look like this:

with DSOX3000('USB0::0x0957::0x17A6::MY1234567::INSTR') as scope:
    scope.funcgen.function = "SINE"
    scope.funcgen.offset = 1.34 * V
    scope.funcgen.frequency = 23.45e+6 * Hz

Would this be possible and how should we write the funcgen class within the scope class?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions