Skip to content

Lab::Visa doesn't recognize USB instruments #1

@gpetrowitsch

Description

@gpetrowitsch

I have various USB instruments, which have resource names like

USB0::0x0957::0x4D18::MY54190007::INSTR

This is currently not recognized by Lab::Visa. However, if this is added to the _check_resource_name function in Visa.pm, all works fine for me.

elsif (
        $resname =~ /^USB[0-9]*::0x[0-9A-F]*::0x[0-9A-F]*::\w+(::INSTR)?$/    # USB INSTR
        ) {
        return 1;
    }

I don't know, if the regexp captures all valid USB resource names, but I can't improve this, because I don't know the rules for these resource names. Maybe you do...

Thanks & regards, Gerhard

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