Lab::Moose - Convenient loaders and constructors for Lab::Moose::Instrument, Lab::Moose::DataFolder and Lab::Moose::DataFile
version 3.611
use Lab::Moose; my $vna = instrument( type => 'RS_ZVA', connection_type => 'LinuxGPIB', connection_options => {timeout => 2} ); my $folder = datafolder(); my $file = datafile( type => 'Gnuplot', folder => $folder, filename => 'data.dat', columns => ['gate', 'bias', 'current'], ); my $meta_file = datafile( type => 'Meta', folder => $folder, filename => 'file.yml' );
Load an instrument driver module and call the constructor.
Create instrument with a new connection:
my $instr = instrument( instrument_type => $type, instrument_options => {%instrument_options}, connection_type => $connection_type, connection_options => {%connection_options}, );
Create instrument with existing connection:
my $instr = instrument( instrument_type => $type, connection => $connection_object, instrument_options => {%instrument_options}, );
The instrument_options hashref is optional in both cases.
instrument_options
my $folder = datafolder(%args);
Load Lab::Moose::DataFolder and call it's new method with %args.
new
%args
my $file = datafile(type => $type, %args);
Load Lab::Moose::DataFile::$type and call it's new method with %args.
$type
This software is copyright (c) 2017 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt 2017 Andreas K. Huettel, Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.