Lab::Moose::Instrument::OI_IPS - Oxford Instruments IPS Intelligent Power Supply
version 3.831
use Lab::Moose; # Constructor my $ips = instrument( type => 'OI_IPS', connection_type => 'LinuxGPIB', connection_options => {pad => 10}, # safety limits, should be fixed in a subclass of this driver max_fields => [7, 10], # absolute maximum field of 10T max_field_rates => [0.1, 0.05], # 0.1 T/min maximum rate in range 0T..7T # 0.05 T/min maximum rate in range 7T..10T ); # Get field my $field = $ips->get_field(); # Sweep to 1T with rate 0.1T/min $ips->sweep_to_field(target => 1, rate => 0.1);
my $new_field = $ips->sweep_to_field( target => $target_field, # Tesla rate => $rate, # Tesla/min );
$ips->config_sweep(point => $target, rate => $rate);
Only define setpoints, do not start sweep.
$ips->set_control(value => 1);
Set device local/remote mode (0, 1, 2, 3)
$ips->set_communications_protocol(value => 0);
Allowed values: 0, 2, 4, 6.
0, 2, 4, 6
This driver sets the protocol to 4 "Extended Resolution" on startup.
4
my $status = $ips->examine_status();
Return status (XmnAnCnHnMmnPmn).
my $status = $ips->active();
Return true value if IPS is sweeping. Return false when sweep finished.
if ($ips->in_persistent_mode()) { ... }
Return 1 if in persistent mode; otherwise return false.
$ips->wait();
Wait until current sweep is finished. Print status messages if verbose attribute was set in constructor (default).
verbose
my $value = $ips->read_parameter(value => 1);
Allowed values for value are 0..13
value
my $field = $ips->get_field();
Return current field (Tesla).
Alias for "get_field"
$ips->set_switch_heater(value => 0); # Heater off $ips->set_switch_heater(value => 1); # Heater on (only done if magnet current equals power supply current)
my $switch = $ips->get_switch_heater();
Return values:
This driver consumes the following roles:
This software is copyright (c) 2022 by the Lab::Measurement team; in detail:
Copyright 2019 Simon Reinhardt 2020 Andreas K. Huettel, Simon Reinhardt 2021 Andreas K. Huettel, Fabian Weinelt, 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.