Skip to content

Support for 2-channel scopes? #5

@mattncsu

Description

@mattncsu

Hello, I am testing keyoscacquire with a Keysight DSOX1202G and when issuing the scope = koa.Oscilloscope('LONG ADDRESS') command, the library responds with:
Connected to: KEYSIGHT TECHNOLOGIES DSOX1202G (serial CN######)

Then after a delay there is a timeout when trying to query ':CHAN3:DISP?'. Since this is a two channel scope, polling channel 3 causes an error. Changing the range(1 to 5) to range(1 to 3) on lines 319 and 326 of oscilliscope.py clears the error but now it is hardcoded for 2 channels.

Since there isn't a standard SCPI command to determine the number of channels on a scope, perhaps channels could be added as a parameter when initializing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions