PrePAN

Sign in to PrePAN

USB::TMC Perl interface to USBTMC Test&Measurement backend

Author
amba@github
Date
URL
https://github.com/amba/USB-TMC
Status
In Review
Good

Synopsis

 use USB::TMC;

 # Open usb connection to  Agilent 34410A digital multimeter
 my $ctx = USB::TMC->new(vid => 0x0957, pid => 0x0607,
                         serial => 'MY47000419' # only needed if vid/pid is ambiguous
 );
 
 $driver->write(data => "*CLS\n");
 $driver->write(data => "VOLT:NPLC 10\n");

 print $driver->query(data => ":read?\n", length => 100);
 
 my $capabilities = $driver->get_capabilities();
 my $support_term_char = $capabilities->{support_term_char};

Description

Based on USB::LibUSB.

Does not yet support the additional usb488_subclass.

Comments

Please sign up to post a review.