Lab::XPRESS::Sweep::Repeater - simple repeater
.
use Lab::XPRESS::hub; my $hub = new Lab::XPRESS::hub(); my $repeater = $hub->Sweep('Repeater', { repetitions => 5 });
Parent: Lab::XPRESS::Sweep::Sweep
The Lab::XPRESS::Sweep::Repeater class implements a simple repeater module in the Lab::XPRESS::Sweep framework.
my $repeater = $hub->Sweep('Repeater', { repetitions => 5 });
Instantiates a new repeater with 5 repetitions. Alternatively
my $repeater_array = $hub->Sweep('Repeater', { repetitions => [10, 20, 30, 40, 50] });
Instantiates also a repeater with 5 repetitions. However, the function
$repeater->get_value(); # <-- returns 1,2,3,4,5 depending on the repetition, $repeater->get_array(); # <-- returns 10,20,30,40,50 depending on the repetition. .
number of repetitions. default value is 1, negative values indicate a infinit number of repetitions. When an array is given, the number of reetitions corresponds to the length of the array.
Just an ID.
Defines a postfix, that will be appended to the filenames if necessary.
defines the time in seconds to wait after the starting point has been reached.
This parameter is relevant only if mode = 'step' or 'list' has been selected. Defines the time in seconds to wait after the value for the next step has been reached.
Defines the time in seconds to wait after the sweep has been finished. This delay will be executed before an optional backsweep or optional repetitions of the sweep.
Returns an integer number n corresponding to the nth repetition or if an array @a was given for the parameter 'repetitions' it returns @a[n].
probably none
Christian Butschkow and Stefan Geißler
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Geißler'. Assuming UTF-8
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.