From 7781af530ffea8abaf479e11649e620266798fda Mon Sep 17 00:00:00 2001 From: Michael Traxler Date: Mon, 1 Mar 2021 23:24:54 +0100 Subject: [PATCH] added direction option, mt --- thresholds/run_thresh_on_system.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/thresholds/run_thresh_on_system.pl b/thresholds/run_thresh_on_system.pl index c2ae259..82d7982 100755 --- a/thresholds/run_thresh_on_system.pl +++ b/thresholds/run_thresh_on_system.pl @@ -17,7 +17,8 @@ my @opt_endpoints; my @opt_chains; my $opt_offset = 0; my $opt_polarity = 0; -my $opt_32channel = 0; +my $default_direction = 0; +my $opt_32channel = 1; my $opt_finetune = false; my $opt_sequential = false; my $mode = "padiwa"; @@ -30,6 +31,7 @@ GetOptions ('h|help' => \$opt_help, 'c|chains=s' => \@opt_chains, 'o|offset=s' => \$opt_offset, 'p|polarity=i' => \$opt_polarity, + 'd|direction=i' => \$default_direction, '32|32channel' => \$opt_32channel, 'f|finetune' => \$opt_finetune, 's|sequential' => \$opt_sequential, @@ -79,7 +81,7 @@ my %pids; foreach my $endpoint (@$endpoints) { foreach my $chain (@$chains) { my $endpoint = sprintf("0x%04x", $endpoint); - $command = "$tool --endpoint $endpoint --offset $opt_offset --chain $chain --polarity $opt_polarity --mode=$mode $opt_32channel $opt_finetune"; + $command = "$tool --endpoint $endpoint --offset $opt_offset --chain $chain --polarity $opt_polarity --direction=$default_direction --mode=$mode $opt_32channel $opt_finetune"; print "command: $command\n"; if($opt_sequential) { @@ -160,11 +162,9 @@ usage: run_threshold_on_system.pl |options] example: -run_threshold_on_system.pl --endpoints=0x301-0x308,0x310..0x315,0x380 --chains=0..3 --offset=4 --polarity=0 +run_threshold_on_system.pl --endpoints=0x301-0x308,0x310..0x315,0x380 --chains=0..3 --offset=4 --polarity=0 --direction=1 will run for endpoints 0x301-0x308 and 0x310-0x315 and 0x380 for all chains (0..3) -read the code.... - EOF } -- 2.43.0