Moose/Instrument/AttoCube_AMC.pm

filter: Statementstmt 4.0% 35 / 857 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 4.2% 9 / 212 Podpod 97.9% 195 / 199 totaltotal 18.5% 239 / 1286 CC 8 SCAR 9.2
CC
8
Cov
4%
_receive_response
20.0
handle_error
12.0
_send_command
6.0
CRAP 2.5
« Moose/Instrument/Rigol_DSA815.pm ↑ Summary Moose/DataFolder.pm »
1 package Lab::Moose::Instrument::AttoCube_AMC;
2 1 $Lab::Moose::Instrument::AttoCube_AMC::VERSION = '3.931';
3 #ABSTRACT: AttoCube Motion Controller
4  
5 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Time::HiRes qw/time/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Lab::Moose::Instrument qw/validated_getter validated_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 #use Lab::Moose::Instrument::Cache;
12 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use JSON::PP;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Tie::IxHash;
Subroutine BEGIN: called CC=1 SCAR=0.0
17
18 # (1)
19 1 extends 'Lab::Moose::Instrument';
20  
21 1 has 'request_id' => (
22 is => 'rw',
23 isa => 'Int',
24 default => int(rand(100000))
25 );
26  
27 1 has 'api_version' => (
28 is => 'ro',
29 isa => 'Int',
30 default => 2
31 );
32  
33 1 has 'language' => (
34 is => 'ro',
35 isa => 'Int',
36 default => 0
37 );
38  
39 has 'json' => (
40 is => 'ro',
41 isa => 'JSON::PP',
42 0 ▶ default => sub { JSON::PP->new },
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 1 );
44  
45 has 'response_qeue' => (
46 is => 'rw',
47 isa => 'HashRef',
48 0 ▶ default => sub { {} },
Subroutine __ANON__: not called CC=1 SCAR=6.9
49 1 );
50  
51  
52 # This is manually written:
53
54 # (3)
55 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
56 0 my $self = shift;
57 0 $self->clear();
58 # $self->cls();
59 }
60
61 0 ▶sub _send_command {
Subroutine _send_command: not called CC=2 SCAR=17.9
62 0 my ($self, $method, $params, %args) = validated_list (
63 \@_,
64 method => { isa => 'Str' },
65 params => { isa => 'ArrayRef' },
66 );
67 # TODO: list the arbitrary array %args really needed? check that!
68 # Further check which type the content of params should have?
69  
70 # for checking, TODO: remove later
71 0 print("This is method: $method, and this param: $params\n");
72  
73 # Create the JSON-RPC request TODO: change to JSON::RPC2 if it complies?
74 # my $request = {
75 # id => $self->request_id(), # You can increment this ID if needed
76 # params => $params || {},
77 # api => 2,
78 # method => $method,
79 # jsonrpc => "2.0",
80 # };
81  
82 # Try to create an orderd hash for the JSON-RPC request
83 0 ▶ tie my %request, 'Tie::IxHash',
Condition0%0/2
$params || {}
l!l
00
MC/DC0%0/1
$params || {}
$params
Truth table0%0/2
A
A= $params
Aresult
11
00
84 jsonrpc => "2.0",
85 method => $method,
86 api => 2,
87 params => $params || {},
88 id => $self->request_id();
89  
90 # Encode the request to JSON
91 0 my $json_request = $self->json->encode(\%request);
92  
93 # Send the JSON request over the TCP socket
94 0 $self->write(command => $json_request);
95
96 # increment request id and store old id to return
97 0 my $old_id = $self->request_id;
98 0 $self->request_id($self->request_id + 1);
99
100 0 return $old_id;
101 }
102  
103 0 ▶sub _receive_response {
Subroutine _receive_response: not called CC=4 SCAR=30.0
104 0 my ($self, $response_id) = validated_list(
105 \@_,
106 response_id => { isa => 'Int' },
107 );
108  
109 0 my $start_time = time();
110 0 while (1) {
111 # Check if response is in queue
112 0 ▶ if (exists $self->response_qeue->{$response_id}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->response_qeue->{$response_id}) 0 0 0
113 0 my $response = $self->response_qeue->{$response_id};
114 0 delete $self->response_qeue->{$response_id};
115 0 return $response;
116 }
117  
118 0 ▶ if (time() - $start_time > 10) {
Branch: 1 branch
BranchTrueFalseTotal
if (&Lab::Moose::Instrument::AttoCube_AMC::time() - $start_time > 10) 0 0 0
119 0 croak "Received no response from server after 10 seconds";
120 }
121  
122 # TODO: Add a lock check?
123 # Receive the response from the server
124 0 my $response = $self->read();
125  
126 # Decode the JSON response
127 0 my $decoded_response = $self->json->decode($response);
128  
129 # check if response id matches request id
130 0 ▶ if ($self->request_id != $decoded_response->{id}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->request_id != $decoded_response->{'id'}) { } 0 0 0
131 # add response to queue
132 0 $self->response_qeue->{$decoded_response->{id}} = $decoded_response;
133 } else {
134 0 return $decoded_response;
135 }
136 }
137 }
138  
139 0 ▶sub request {
Subroutine request: not called CC=1 SCAR=6.9
Pod undocumented
140 0 my ($self, $method, $params, %args) = validated_list (
141 @_,
142 method => { isa => 'Str' },
143 params => { isa => 'ArrayRef' },
144 );
145 0 my $request_id = $self->_send_command($method, $params, %args);
146 0 return $self->_receive_response($request_id);
147 }
148  
149 0 ▶sub handle_error {
Subroutine handle_error: not called CC=3 SCAR=24.8
Pod undocumented
150 0 my ($self, $response) = validated_list(
151 \@_,
152 response => { isa => 'HashRef' },
153 );
154 ## Check for JSON-RPC protocol errors
155 ## TODO: this was broken, I commented it out
156 #if 'error' in $response {
157 # my $error = $response->{error};
158 # croak "JSON-RPC Error occured: $error->{message} ($error->{code})\n";
159 #}
160 # Check for AttoCube errors
161 0 my $errNo = $response->{result}[0];
162 # TODO: add ignoreFunctionError here as well?
163 0 ▶ if ($errNo != 0 and $errNo != 'null') {
Branch: 1 branch
BranchTrueFalseTotal
if ($errNo != 0 and $errNo != "null") 0 0 0
Condition0%0/3
$errNo != 0 and $errNo != "null"
!ll&&!rl&&r
000
MC/DC0%0/2
$errNo != 0 and $errNo != "null"
$errNo != 0 $errNo != "null"
Truth table0%0/3
A and B
A= $errNo != 0B= $errNo != "null"
ABresult
0X0
100
111
164 0 my $errStr = $self.errorNumberToString($self->language, $errNo);
165 0 croak "AttoCube Error: $errNo\nError Text: $errStr\n";
166 }
167 0 return $errNo;
168 }
169  
170 0 ▶sub measure {
Subroutine measure: not called CC=2 SCAR=17.9
Pod undocumented
171 0 my ($self) = @_;
172  
173 # Use the send_json_rpc_command method to request a measurement
174 0 my $result = $self->_send_command(method => 'com.attocube.amc.control.setSensorEnabled', params => [0, 1]);
175 0 $result = $self->_send_command(method => 'com.attocube.amc.move.getPosition', params => [0]);
176 0 $result = $self->_send_command(method => 'com.attocube.amc.control.getSensorEnabled', params => [0]);
177  
178 0 ▶ if (defined $result) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $result) { } 0 0 0
179 0 return $result;
180 } else {
181 0 die "Measurement failed\n";
182 }
183  
184 }
185  
186  
187  
188 0 ▶sub getLockStatus {
Subroutine getLockStatus: not called CC=1 SCAR=6.9
Pod documented
189 0 my $self = shift;
190  
191 0 my $response = $self->request(method => 'getLockStatus');
192  
193 0 $self->handle_error($response);
194  
195 0 return $response;
196 }
197  
198  
199 0 ▶sub grantAccess {
Subroutine grantAccess: not called CC=1 SCAR=6.9
Pod documented
200 0 my ($self, $password, %args) = validated_list(
201 password => {isa => 'Str', optional => 0,},
202 );
203  
204 0 my $response = $self->request(method => 'grantAccess', params => [$password]);
205  
206 0 $self->handle_error($response);
207  
208 0 return $response;
209 }
210  
211  
212 0 ▶sub lock {
Subroutine lock: not called CC=1 SCAR=6.9
Pod documented
213 0 my ($self, $password, %args) = validated_list(
214 password => {isa => 'Str', optional => 0,},
215 );
216  
217 0 my $response = $self->request(method => 'lock', params => [$password]);
218  
219 0 $self->handle_error($response);
220  
221 0 return $response;
222 }
223  
224  
225 0 ▶sub unlock {
Subroutine unlock: not called CC=1 SCAR=6.9
Pod documented
226 0 my ($self, $password, %args) = validated_list(
227 password => {isa => 'Str', optional => 0,},
228 );
229  
230 0 my $response = $self->request(method => 'unlock', params => [$password]);
231  
232 0 $self->handle_error($response);
233  
234 0 return $response;
235 }
236  
237  
238 0 ▶sub getLowerSoftLimit {
Subroutine getLowerSoftLimit: not called CC=1 SCAR=6.9
Pod documented
239 0 my ($self, $axis, %args) = validated_list(
240 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
241 );
242  
243 0 my $response = $self->request(method => 'com.attocube.amc.amcids.getLowerSoftLimit', params => [$axis]);
244  
245 0 $self->handle_error($response);
246  
247 0 return $response;
248 }
249  
250  
251 0 ▶sub getSoftLimitEnabled {
Subroutine getSoftLimitEnabled: not called CC=1 SCAR=6.9
Pod documented
252 0 my ($self, $axis, %args) = validated_list(
253 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
254 );
255  
256 0 my $response = $self->request(method => 'com.attocube.amc.amcids.getSoftLimitEnabled', params => [$axis]);
257  
258 0 $self->handle_error($response);
259  
260 0 return $response;
261 }
262  
263  
264 0 ▶sub getSoftLimitReached {
Subroutine getSoftLimitReached: not called CC=1 SCAR=6.9
Pod documented
265 0 my ($self, $axis, %args) = validated_list(
266 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
267 );
268  
269 0 my $response = $self->request(method => 'com.attocube.amc.amcids.getSoftLimitReached', params => [$axis]);
270  
271 0 $self->handle_error($response);
272  
273 0 return $response;
274 }
275  
276  
277 0 ▶sub getUpperSoftLimit {
Subroutine getUpperSoftLimit: not called CC=1 SCAR=6.9
Pod documented
278 0 my ($self, $axis, %args) = validated_list(
279 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
280 );
281  
282 0 my $response = $self->request(method => 'com.attocube.amc.amcids.getUpperSoftLimit', params => [$axis]);
283  
284 0 $self->handle_error($response);
285  
286 0 return $response;
287 }
288  
289  
290 0 ▶sub resetIdsAxis {
Subroutine resetIdsAxis: not called CC=1 SCAR=6.9
Pod documented
291 0 my ($self, $axis, %args) = validated_list(
292 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
293 );
294  
295 0 my $response = $self->request(method => 'com.attocube.amc.amcids.resetIdsAxis', params => [$axis]);
296  
297 0 $self->handle_error($response);
298  
299 0 return $response;
300 }
301  
302  
303 0 ▶sub setLowerSoftLimit {
Subroutine setLowerSoftLimit: not called CC=1 SCAR=6.9
Pod documented
304 0 my ($self, $axis, $limit, %args) = validated_list(
305 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
306 limit => {optional => 0,},
307 );
308  
309 0 my $response = $self->request(method => 'com.attocube.amc.amcids.setLowerSoftLimit', params => [$axis, $limit]);
310  
311 0 $self->handle_error($response);
312  
313 0 return $response;
314 }
315  
316  
317 0 ▶sub setSoftLimitEnabled {
Subroutine setSoftLimitEnabled: not called CC=1 SCAR=6.9
Pod documented
318 0 my ($self, $axis, $enabled, %args) = validated_list(
319 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
320 enabled => {isa => 'Bool', optional => 0,},
321 );
322  
323 0 my $response = $self->request(method => 'com.attocube.amc.amcids.setSoftLimitEnabled', params => [$axis, $enabled]);
324  
325 0 $self->handle_error($response);
326  
327 0 return $response;
328 }
329  
330  
331 0 ▶sub setUpperSoftLimit {
Subroutine setUpperSoftLimit: not called CC=1 SCAR=6.9
Pod documented
332 0 my ($self, $axis, $limit, %args) = validated_list(
333 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
334 limit => {optional => 0,},
335 );
336  
337 0 my $response = $self->request(method => 'com.attocube.amc.amcids.setUpperSoftLimit', params => [$axis, $limit]);
338  
339 0 $self->handle_error($response);
340  
341 0 return $response;
342 }
343  
344  
345 0 ▶sub MultiAxisPositioning {
Subroutine MultiAxisPositioning: not called CC=1 SCAR=6.9
Pod documented
346 0 my ($self, $set1, $set2, $set3, $target1, $target2, $target3, %args) = validated_list(
347 set1 => {optional => 0,},
348 set2 => {optional => 0,},
349 set3 => {optional => 0,},
350 target1 => {optional => 0,},
351 target2 => {optional => 0,},
352 target3 => {optional => 0,},
353 );
354  
355 0 my $response = $self->request(method => 'com.attocube.amc.control.MultiAxisPositioning', params => [$set1, $set2, $set3, $target1, $target2, $target3]);
356  
357 0 $self->handle_error($response);
358  
359 0 return $response;
360 }
361  
362  
363 0 ▶sub getActorName {
Subroutine getActorName: not called CC=1 SCAR=6.9
Pod documented
364 0 my ($self, $axis, %args) = validated_list(
365 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
366 );
367  
368 0 my $response = $self->request(method => 'com.attocube.amc.control.getActorName', params => [$axis]);
369  
370 0 $self->handle_error($response);
371  
372 0 return $response;
373 }
374  
375  
376 0 ▶sub getActorParametersActorName {
Subroutine getActorParametersActorName: not called CC=1 SCAR=6.9
Pod documented
377 0 my ($self, $axis, %args) = validated_list(
378 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
379 );
380  
381 0 my $response = $self->request(method => 'com.attocube.amc.control.getActorParametersActorName', params => [$axis]);
382  
383 0 $self->handle_error($response);
384  
385 0 return $response;
386 }
387  
388  
389 0 ▶sub getActorSensitivity {
Subroutine getActorSensitivity: not called CC=1 SCAR=6.9
Pod documented
390 0 my ($self, $axis, %args) = validated_list(
391 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
392 );
393  
394 0 my $response = $self->request(method => 'com.attocube.amc.control.getActorSensitivity', params => [$axis]);
395  
396 0 $self->handle_error($response);
397  
398 0 return $response;
399 }
400  
401  
402 0 ▶sub getActorType {
Subroutine getActorType: not called CC=1 SCAR=6.9
Pod documented
403 0 my ($self, $axis, %args) = validated_list(
404 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
405 );
406  
407 0 my $response = $self->request(method => 'com.attocube.amc.control.getActorType', params => [$axis]);
408  
409 0 $self->handle_error($response);
410  
411 0 return $response;
412 }
413  
414  
415 0 ▶sub getAutoMeasure {
Subroutine getAutoMeasure: not called CC=1 SCAR=6.9
Pod documented
416 0 my ($self, $axis, %args) = validated_list(
417 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
418 );
419  
420 0 my $response = $self->request(method => 'com.attocube.amc.control.getAutoMeasure', params => [$axis]);
421  
422 0 $self->handle_error($response);
423  
424 0 return $response;
425 }
426  
427  
428 0 ▶sub getControlAmplitude {
Subroutine getControlAmplitude: not called CC=1 SCAR=6.9
Pod documented
429 0 my ($self, $axis, %args) = validated_list(
430 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
431 );
432  
433 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlAmplitude', params => [$axis]);
434  
435 0 $self->handle_error($response);
436  
437 0 return $response;
438 }
439  
440  
441 0 ▶sub getControlAutoReset {
Subroutine getControlAutoReset: not called CC=1 SCAR=6.9
Pod documented
442 0 my ($self, $axis, %args) = validated_list(
443 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
444 );
445  
446 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlAutoReset', params => [$axis]);
447  
448 0 $self->handle_error($response);
449  
450 0 return $response;
451 }
452  
453  
454 0 ▶sub getControlFixOutputVoltage {
Subroutine getControlFixOutputVoltage: not called CC=1 SCAR=6.9
Pod documented
455 0 my ($self, $axis, %args) = validated_list(
456 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
457 );
458  
459 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlFixOutputVoltage', params => [$axis]);
460  
461 0 $self->handle_error($response);
462  
463 0 return $response;
464 }
465  
466  
467 0 ▶sub getControlFrequency {
Subroutine getControlFrequency: not called CC=1 SCAR=6.9
Pod documented
468 0 my ($self, $axis, %args) = validated_list(
469 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
470 );
471  
472 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlFrequency', params => [$axis]);
473  
474 0 $self->handle_error($response);
475  
476 0 return $response;
477 }
478  
479  
480 0 ▶sub getControlMove {
Subroutine getControlMove: not called CC=1 SCAR=6.9
Pod documented
481 0 my ($self, $axis, %args) = validated_list(
482 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
483 );
484  
485 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlMove', params => [$axis]);
486  
487 0 $self->handle_error($response);
488  
489 0 return $response;
490 }
491  
492  
493 0 ▶sub getControlOutput {
Subroutine getControlOutput: not called CC=1 SCAR=6.9
Pod documented
494 0 my ($self, $axis, %args) = validated_list(
495 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
496 );
497  
498 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlOutput', params => [$axis]);
499  
500 0 $self->handle_error($response);
501  
502 0 return $response;
503 }
504  
505  
506 0 ▶sub getControlReferenceAutoUpdate {
Subroutine getControlReferenceAutoUpdate: not called CC=1 SCAR=6.9
Pod documented
507 0 my ($self, $axis, %args) = validated_list(
508 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
509 );
510  
511 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlReferenceAutoUpdate', params => [$axis]);
512  
513 0 $self->handle_error($response);
514  
515 0 return $response;
516 }
517  
518  
519 0 ▶sub getControlTargetRange {
Subroutine getControlTargetRange: not called CC=1 SCAR=6.9
Pod documented
520 0 my ($self, $axis, %args) = validated_list(
521 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
522 );
523  
524 0 my $response = $self->request(method => 'com.attocube.amc.control.getControlTargetRange', params => [$axis]);
525  
526 0 $self->handle_error($response);
527  
528 0 return $response;
529 }
530  
531  
532 0 ▶sub getCrosstalkThreshold {
Subroutine getCrosstalkThreshold: not called CC=1 SCAR=6.9
Pod documented
533 0 my ($self, $axis, %args) = validated_list(
534 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
535 );
536  
537 0 my $response = $self->request(method => 'com.attocube.amc.control.getCrosstalkThreshold', params => [$axis]);
538  
539 0 $self->handle_error($response);
540  
541 0 return $response;
542 }
543  
544  
545 0 ▶sub getCurrentOutputVoltage {
Subroutine getCurrentOutputVoltage: not called CC=1 SCAR=6.9
Pod documented
546 0 my ($self, $axis, %args) = validated_list(
547 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
548 );
549  
550 0 my $response = $self->request(method => 'com.attocube.amc.control.getCurrentOutputVoltage', params => [$axis]);
551  
552 0 $self->handle_error($response);
553  
554 0 return $response;
555 }
556  
557  
558 0 ▶sub getExternalSensor {
Subroutine getExternalSensor: not called CC=1 SCAR=6.9
Pod documented
559 0 my ($self, $axis, %args) = validated_list(
560 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
561 );
562  
563 0 my $response = $self->request(method => 'com.attocube.amc.control.getExternalSensor', params => [$axis]);
564  
565 0 $self->handle_error($response);
566  
567 0 return $response;
568 }
569  
570  
571 0 ▶sub getFinePositioningRange {
Subroutine getFinePositioningRange: not called CC=1 SCAR=6.9
Pod documented
572 0 my ($self, $axis, %args) = validated_list(
573 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
574 );
575  
576 0 my $response = $self->request(method => 'com.attocube.amc.control.getFinePositioningRange', params => [$axis]);
577  
578 0 $self->handle_error($response);
579  
580 0 return $response;
581 }
582  
583  
584 0 ▶sub getFinePositioningSlewRate {
Subroutine getFinePositioningSlewRate: not called CC=1 SCAR=6.9
Pod documented
585 0 my ($self, $axis, %args) = validated_list(
586 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
587 );
588  
589 0 my $response = $self->request(method => 'com.attocube.amc.control.getFinePositioningSlewRate', params => [$axis]);
590  
591 0 $self->handle_error($response);
592  
593 0 return $response;
594 }
595  
596  
597 0 ▶sub getMotionControlThreshold {
Subroutine getMotionControlThreshold: not called CC=1 SCAR=6.9
Pod documented
598 0 my ($self, $axis, %args) = validated_list(
599 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
600 );
601  
602 0 my $response = $self->request(method => 'com.attocube.amc.control.getMotionControlThreshold', params => [$axis]);
603  
604 0 $self->handle_error($response);
605  
606 0 return $response;
607 }
608  
609  
610 0 ▶sub getPositionsAndVoltages {
Subroutine getPositionsAndVoltages: not called CC=1 SCAR=6.9
Pod documented
611 0 my $self = shift;
612  
613 0 my $response = $self->request(method => 'com.attocube.amc.control.getPositionsAndVoltages');
614  
615 0 $self->handle_error($response);
616  
617 0 return $response;
618 }
619  
620  
621 0 ▶sub getReferencePosition {
Subroutine getReferencePosition: not called CC=1 SCAR=6.9
Pod documented
622 0 my ($self, $axis, %args) = validated_list(
623 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
624 );
625  
626 0 my $response = $self->request(method => 'com.attocube.amc.control.getReferencePosition', params => [$axis]);
627  
628 0 $self->handle_error($response);
629  
630 0 return $response;
631 }
632  
633  
634 0 ▶sub getSensorDirection {
Subroutine getSensorDirection: not called CC=1 SCAR=6.9
Pod documented
635 0 my ($self, $axis, %args) = validated_list(
636 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
637 );
638  
639 0 my $response = $self->request(method => 'com.attocube.amc.control.getSensorDirection', params => [$axis]);
640  
641 0 $self->handle_error($response);
642  
643 0 return $response;
644 }
645  
646  
647 0 ▶sub getSensorEnabled {
Subroutine getSensorEnabled: not called CC=1 SCAR=6.9
Pod documented
648 0 my ($self, $axis, %args) = validated_list(
649 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
650 );
651  
652 0 my $response = $self->request(method => 'com.attocube.amc.control.getSensorEnabled', params => [$axis]);
653  
654 0 $self->handle_error($response);
655  
656 0 return $response;
657 }
658  
659  
660 0 ▶sub getStatusMovingAllAxes {
Subroutine getStatusMovingAllAxes: not called CC=1 SCAR=6.9
Pod documented
661 0 my $self = shift;
662  
663 0 my $response = $self->request(method => 'com.attocube.amc.control.getStatusMovingAllAxes');
664  
665 0 $self->handle_error($response);
666  
667 0 return $response;
668 }
669  
670  
671 0 ▶sub searchReferencePosition {
Subroutine searchReferencePosition: not called CC=1 SCAR=6.9
Pod documented
672 0 my ($self, $axis, %args) = validated_list(
673 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
674 );
675  
676 0 my $response = $self->request(method => 'com.attocube.amc.control.searchReferencePosition', params => [$axis]);
677  
678 0 $self->handle_error($response);
679  
680 0 return $response;
681 }
682  
683  
684 0 ▶sub setActorParametersByName {
Subroutine setActorParametersByName: not called CC=1 SCAR=6.9
Pod documented
685 0 my ($self, $axis, $actorname, %args) = validated_list(
686 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
687 actorname => {optional => 0,},
688 );
689  
690 0 my $response = $self->request(method => 'com.attocube.amc.control.setActorParametersByName', params => [$axis, $actorname]);
691  
692 0 $self->handle_error($response);
693  
694 0 return $response;
695 }
696  
697  
698 0 ▶sub setActorParametersJson {
Subroutine setActorParametersJson: not called CC=1 SCAR=6.9
Pod documented
699 0 my ($self, $axis, $json_dict, %args) = validated_list(
700 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
701 json_dict => {optional => 0,},
702 );
703  
704 0 my $response = $self->request(method => 'com.attocube.amc.control.setActorParametersJson', params => [$axis, $json_dict]);
705  
706 0 $self->handle_error($response);
707  
708 0 return $response;
709 }
710  
711  
712 0 ▶sub setActorSensitivity {
Subroutine setActorSensitivity: not called CC=1 SCAR=6.9
Pod documented
713 0 my ($self, $axis, $sensitivity, %args) = validated_list(
714 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
715 sensitivity => {optional => 0,},
716 );
717  
718 0 my $response = $self->request(method => 'com.attocube.amc.control.setActorSensitivity', params => [$axis, $sensitivity]);
719  
720 0 $self->handle_error($response);
721  
722 0 return $response;
723 }
724  
725  
726 0 ▶sub setAutoMeasure {
Subroutine setAutoMeasure: not called CC=1 SCAR=6.9
Pod documented
727 0 my ($self, $axis, $enable, %args) = validated_list(
728 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
729 enable => {optional => 0,},
730 );
731  
732 0 my $response = $self->request(method => 'com.attocube.amc.control.setAutoMeasure', params => [$axis, $enable]);
733  
734 0 $self->handle_error($response);
735  
736 0 return $response;
737 }
738  
739  
740 0 ▶sub setControlAmplitude {
Subroutine setControlAmplitude: not called CC=1 SCAR=6.9
Pod documented
741 0 my ($self, $axis, $amplitude, %args) = validated_list(
742 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
743 amplitude => {optional => 0,},
744 );
745  
746 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlAmplitude', params => [$axis, $amplitude]);
747  
748 0 $self->handle_error($response);
749  
750 0 return $response;
751 }
752  
753  
754 0 ▶sub setControlAutoReset {
Subroutine setControlAutoReset: not called CC=1 SCAR=6.9
Pod documented
755 0 my ($self, $axis, $enable, %args) = validated_list(
756 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
757 enable => {optional => 0,},
758 );
759  
760 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlAutoReset', params => [$axis, $enable]);
761  
762 0 $self->handle_error($response);
763  
764 0 return $response;
765 }
766  
767  
768 0 ▶sub setControlFixOutputVoltage {
Subroutine setControlFixOutputVoltage: not called CC=1 SCAR=6.9
Pod documented
769 0 my ($self, $axis, $amplitude_mv, %args) = validated_list(
770 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
771 amplitude_mv => {optional => 0,},
772 );
773  
774 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlFixOutputVoltage', params => [$axis, $amplitude_mv]);
775  
776 0 $self->handle_error($response);
777  
778 0 return $response;
779 }
780  
781  
782 0 ▶sub setControlFrequency {
Subroutine setControlFrequency: not called CC=1 SCAR=6.9
Pod documented
783 0 my ($self, $axis, $frequency, %args) = validated_list(
784 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
785 frequency => {optional => 0,},
786 );
787  
788 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlFrequency', params => [$axis, $frequency]);
789  
790 0 $self->handle_error($response);
791  
792 0 return $response;
793 }
794  
795  
796 0 ▶sub setControlMove {
Subroutine setControlMove: not called CC=1 SCAR=6.9
Pod documented
797 0 my ($self, $axis, $enable, %args) = validated_list(
798 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
799 enable => {optional => 0,},
800 );
801  
802 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlMove', params => [$axis, $enable]);
803  
804 0 $self->handle_error($response);
805  
806 0 return $response;
807 }
808  
809  
810 0 ▶sub setControlOutput {
Subroutine setControlOutput: not called CC=1 SCAR=6.9
Pod documented
811 0 my ($self, $axis, $enable, %args) = validated_list(
812 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
813 enable => {optional => 0,},
814 );
815  
816 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlOutput', params => [$axis, $enable]);
817  
818 0 $self->handle_error($response);
819  
820 0 return $response;
821 }
822  
823  
824 0 ▶sub setControlReferenceAutoUpdate {
Subroutine setControlReferenceAutoUpdate: not called CC=1 SCAR=6.9
Pod documented
825 0 my ($self, $axis, $enable, %args) = validated_list(
826 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
827 enable => {optional => 0,},
828 );
829  
830 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlReferenceAutoUpdate', params => [$axis, $enable]);
831  
832 0 $self->handle_error($response);
833  
834 0 return $response;
835 }
836  
837  
838 0 ▶sub setControlTargetRange {
Subroutine setControlTargetRange: not called CC=1 SCAR=6.9
Pod documented
839 0 my ($self, $axis, $range, %args) = validated_list(
840 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
841 range => {optional => 0,},
842 );
843  
844 0 my $response = $self->request(method => 'com.attocube.amc.control.setControlTargetRange', params => [$axis, $range]);
845  
846 0 $self->handle_error($response);
847  
848 0 return $response;
849 }
850  
851  
852 0 ▶sub setCrosstalkThreshold {
Subroutine setCrosstalkThreshold: not called CC=1 SCAR=6.9
Pod documented
853 0 my ($self, $axis, $threshold, $slipphasetime, %args) = validated_list(
854 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
855 threshold => {optional => 0,},
856 slipphasetime => {optional => 0,},
857 );
858  
859 0 my $response = $self->request(method => 'com.attocube.amc.control.setCrosstalkThreshold', params => [$axis, $threshold, $slipphasetime]);
860  
861 0 $self->handle_error($response);
862  
863 0 return $response;
864 }
865  
866  
867 0 ▶sub setExternalSensor {
Subroutine setExternalSensor: not called CC=1 SCAR=6.9
Pod documented
868 0 my ($self, $axis, $enabled, %args) = validated_list(
869 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
870 enabled => {isa => 'Bool', optional => 0,},
871 );
872  
873 0 my $response = $self->request(method => 'com.attocube.amc.control.setExternalSensor', params => [$axis, $enabled]);
874  
875 0 $self->handle_error($response);
876  
877 0 return $response;
878 }
879  
880  
881 0 ▶sub setFinePositioningRange {
Subroutine setFinePositioningRange: not called CC=1 SCAR=6.9
Pod documented
882 0 my ($self, $axis, $range, %args) = validated_list(
883 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
884 range => {optional => 0,},
885 );
886  
887 0 my $response = $self->request(method => 'com.attocube.amc.control.setFinePositioningRange', params => [$axis, $range]);
888  
889 0 $self->handle_error($response);
890  
891 0 return $response;
892 }
893  
894  
895 0 ▶sub setFinePositioningSlewRate {
Subroutine setFinePositioningSlewRate: not called CC=1 SCAR=6.9
Pod documented
896 0 my ($self, $axis, $slewrate, %args) = validated_list(
897 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
898 slewrate => {optional => 0,},
899 );
900  
901 0 my $response = $self->request(method => 'com.attocube.amc.control.setFinePositioningSlewRate', params => [$axis, $slewrate]);
902  
903 0 $self->handle_error($response);
904  
905 0 return $response;
906 }
907  
908  
909 0 ▶sub setMotionControlThreshold {
Subroutine setMotionControlThreshold: not called CC=1 SCAR=6.9
Pod documented
910 0 my ($self, $axis, $threshold, %args) = validated_list(
911 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
912 threshold => {optional => 0,},
913 );
914  
915 0 my $response = $self->request(method => 'com.attocube.amc.control.setMotionControlThreshold', params => [$axis, $threshold]);
916  
917 0 $self->handle_error($response);
918  
919 0 return $response;
920 }
921  
922  
923 0 ▶sub setReset {
Subroutine setReset: not called CC=1 SCAR=6.9
Pod documented
924 0 my ($self, $axis, %args) = validated_list(
925 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
926 );
927  
928 0 my $response = $self->request(method => 'com.attocube.amc.control.setReset', params => [$axis]);
929  
930 0 $self->handle_error($response);
931  
932 0 return $response;
933 }
934  
935  
936 0 ▶sub setSensorDirection {
Subroutine setSensorDirection: not called CC=1 SCAR=6.9
Pod documented
937 0 my ($self, $axis, $inverted, %args) = validated_list(
938 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
939 inverted => {optional => 0,},
940 );
941  
942 0 my $response = $self->request(method => 'com.attocube.amc.control.setSensorDirection', params => [$axis, $inverted]);
943  
944 0 $self->handle_error($response);
945  
946 0 return $response;
947 }
948  
949  
950 0 ▶sub setSensorEnabled {
Subroutine setSensorEnabled: not called CC=1 SCAR=6.9
Pod documented
951 0 my ($self, $axis, $value, %args) = validated_list(
952 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
953 value => {optional => 0,},
954 );
955  
956 0 my $response = $self->request(method => 'com.attocube.amc.control.setSensorEnabled', params => [$axis, $value]);
957  
958 0 $self->handle_error($response);
959  
960 0 return $response;
961 }
962  
963  
964 0 ▶sub checkChassisNbr {
Subroutine checkChassisNbr: not called CC=1 SCAR=6.9
Pod documented
965 0 my $self = shift;
966  
967 0 my $response = $self->request(method => 'com.attocube.amc.description.checkChassisNbr');
968  
969 0 $self->handle_error($response);
970  
971 0 return $response;
972 }
973  
974  
975 0 ▶sub getDeviceType {
Subroutine getDeviceType: not called CC=1 SCAR=6.9
Pod documented
976 0 my $self = shift;
977  
978 0 my $response = $self->request(method => 'com.attocube.amc.description.getDeviceType');
979  
980 0 $self->handle_error($response);
981  
982 0 return $response;
983 }
984  
985  
986 0 ▶sub getFeaturesActivated {
Subroutine getFeaturesActivated: not called CC=1 SCAR=6.9
Pod documented
987 0 my $self = shift;
988  
989 0 my $response = $self->request(method => 'com.attocube.amc.description.getFeaturesActivated');
990  
991 0 $self->handle_error($response);
992  
993 0 return $response;
994 }
995  
996  
997 0 ▶sub getPositionersList {
Subroutine getPositionersList: not called CC=1 SCAR=6.9
Pod documented
998 0 my $self = shift;
999  
1000 0 my $response = $self->request(method => 'com.attocube.amc.description.getPositionersList');
1001  
1002 0 $self->handle_error($response);
1003  
1004 0 return $response;
1005 }
1006  
1007  
1008 0 ▶sub getDiagnosticPower {
Subroutine getDiagnosticPower: not called CC=1 SCAR=6.9
Pod documented
1009 0 my ($self, $axis, %args) = validated_list(
1010 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1011 );
1012  
1013 0 my $response = $self->request(method => 'com.attocube.amc.diagnostic.getDiagnosticPower', params => [$axis]);
1014  
1015 0 $self->handle_error($response);
1016  
1017 0 return $response;
1018 }
1019  
1020  
1021 0 ▶sub getDiagnosticResults {
Subroutine getDiagnosticResults: not called CC=1 SCAR=6.9
Pod documented
1022 0 my ($self, $axis, %args) = validated_list(
1023 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1024 );
1025  
1026 0 my $response = $self->request(method => 'com.attocube.amc.diagnostic.getDiagnosticResults', params => [$axis]);
1027  
1028 0 $self->handle_error($response);
1029  
1030 0 return $response;
1031 }
1032  
1033  
1034 0 ▶sub getDiagnosticStepSize {
Subroutine getDiagnosticStepSize: not called CC=1 SCAR=6.9
Pod documented
1035 0 my ($self, $axis, %args) = validated_list(
1036 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1037 );
1038  
1039 0 my $response = $self->request(method => 'com.attocube.amc.diagnostic.getDiagnosticStepSize', params => [$axis]);
1040  
1041 0 $self->handle_error($response);
1042  
1043 0 return $response;
1044 }
1045  
1046  
1047 0 ▶sub getDiagnosticTemperature {
Subroutine getDiagnosticTemperature: not called CC=1 SCAR=6.9
Pod documented
1048 0 my ($self, $axis, %args) = validated_list(
1049 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1050 );
1051  
1052 0 my $response = $self->request(method => 'com.attocube.amc.diagnostic.getDiagnosticTemperature', params => [$axis]);
1053  
1054 0 $self->handle_error($response);
1055  
1056 0 return $response;
1057 }
1058  
1059  
1060 0 ▶sub startDiagnostic {
Subroutine startDiagnostic: not called CC=1 SCAR=6.9
Pod documented
1061 0 my ($self, $axis, %args) = validated_list(
1062 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1063 );
1064  
1065 0 my $response = $self->request(method => 'com.attocube.amc.diagnostic.startDiagnostic', params => [$axis]);
1066  
1067 0 $self->handle_error($response);
1068  
1069 0 return $response;
1070 }
1071  
1072  
1073 0 ▶sub getControlContinuousBkwd {
Subroutine getControlContinuousBkwd: not called CC=1 SCAR=6.9
Pod documented
1074 0 my ($self, $axis, %args) = validated_list(
1075 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1076 );
1077  
1078 0 my $response = $self->request(method => 'com.attocube.amc.move.getControlContinuousBkwd', params => [$axis]);
1079  
1080 0 $self->handle_error($response);
1081  
1082 0 return $response;
1083 }
1084  
1085  
1086 0 ▶sub getControlContinuousFwd {
Subroutine getControlContinuousFwd: not called CC=1 SCAR=6.9
Pod documented
1087 0 my ($self, $axis, %args) = validated_list(
1088 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1089 );
1090  
1091 0 my $response = $self->request(method => 'com.attocube.amc.move.getControlContinuousFwd', params => [$axis]);
1092  
1093 0 $self->handle_error($response);
1094  
1095 0 return $response;
1096 }
1097  
1098  
1099 0 ▶sub getControlEotOutputDeactive {
Subroutine getControlEotOutputDeactive: not called CC=1 SCAR=6.9
Pod documented
1100 0 my ($self, $axis, %args) = validated_list(
1101 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1102 );
1103  
1104 0 my $response = $self->request(method => 'com.attocube.amc.move.getControlEotOutputDeactive', params => [$axis]);
1105  
1106 0 $self->handle_error($response);
1107  
1108 0 return $response;
1109 }
1110  
1111  
1112 0 ▶sub getControlTargetPosition {
Subroutine getControlTargetPosition: not called CC=1 SCAR=6.9
Pod documented
1113 0 my ($self, $axis, %args) = validated_list(
1114 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1115 );
1116  
1117 0 my $response = $self->request(method => 'com.attocube.amc.move.getControlTargetPosition', params => [$axis]);
1118  
1119 0 $self->handle_error($response);
1120  
1121 0 return $response;
1122 }
1123  
1124  
1125 0 ▶sub getGroundAxis {
Subroutine getGroundAxis: not called CC=1 SCAR=6.9
Pod documented
1126 0 my ($self, $axis, %args) = validated_list(
1127 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1128 );
1129  
1130 0 my $response = $self->request(method => 'com.attocube.amc.move.getGroundAxis', params => [$axis]);
1131  
1132 0 $self->handle_error($response);
1133  
1134 0 return $response;
1135 }
1136  
1137  
1138 0 ▶sub getGroundAxisAutoOnTarget {
Subroutine getGroundAxisAutoOnTarget: not called CC=1 SCAR=6.9
Pod documented
1139 0 my ($self, $axis, %args) = validated_list(
1140 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1141 );
1142  
1143 0 my $response = $self->request(method => 'com.attocube.amc.move.getGroundAxisAutoOnTarget', params => [$axis]);
1144  
1145 0 $self->handle_error($response);
1146  
1147 0 return $response;
1148 }
1149  
1150  
1151 0 ▶sub getGroundTargetRange {
Subroutine getGroundTargetRange: not called CC=1 SCAR=6.9
Pod documented
1152 0 my ($self, $axis, %args) = validated_list(
1153 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1154 );
1155  
1156 0 my $response = $self->request(method => 'com.attocube.amc.move.getGroundTargetRange', params => [$axis]);
1157  
1158 0 $self->handle_error($response);
1159  
1160 0 return $response;
1161 }
1162  
1163  
1164 0 ▶sub getNSteps {
Subroutine getNSteps: not called CC=1 SCAR=6.9
Pod documented
1165 0 my ($self, $axis, %args) = validated_list(
1166 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1167 );
1168  
1169 0 my $response = $self->request(method => 'com.attocube.amc.move.getNSteps', params => [$axis]);
1170  
1171 0 $self->handle_error($response);
1172  
1173 0 return $response;
1174 }
1175  
1176  
1177 0 ▶sub getPosition {
Subroutine getPosition: not called CC=1 SCAR=6.9
Pod documented
1178 0 my ($self, $axis, %args) = validated_list(
1179 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1180 );
1181  
1182 0 my $response = $self->request(method => 'com.attocube.amc.move.getPosition', params => [$axis]);
1183  
1184 0 $self->handle_error($response);
1185  
1186 0 return $response;
1187 }
1188  
1189  
1190 0 ▶sub moveReference {
Subroutine moveReference: not called CC=1 SCAR=6.9
Pod documented
1191 0 my ($self, $axis, %args) = validated_list(
1192 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1193 );
1194  
1195 0 my $response = $self->request(method => 'com.attocube.amc.move.moveReference', params => [$axis]);
1196  
1197 0 $self->handle_error($response);
1198  
1199 0 return $response;
1200 }
1201  
1202  
1203 0 ▶sub performNSteps {
Subroutine performNSteps: not called CC=1 SCAR=6.9
Pod documented
1204 0 my ($self, $axis, $backward, %args) = validated_list(
1205 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1206 backward => {optional => 0,},
1207 );
1208  
1209 0 my $response = $self->request(method => 'com.attocube.amc.move.performNSteps', params => [$axis, $backward]);
1210  
1211 0 $self->handle_error($response);
1212  
1213 0 return $response;
1214 }
1215  
1216  
1217 0 ▶sub setControlContinuousBkwd {
Subroutine setControlContinuousBkwd: not called CC=1 SCAR=6.9
Pod documented
1218 0 my ($self, $axis, $enable, %args) = validated_list(
1219 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1220 enable => {optional => 0,},
1221 );
1222  
1223 0 my $response = $self->request(method => 'com.attocube.amc.move.setControlContinuousBkwd', params => [$axis, $enable]);
1224  
1225 0 $self->handle_error($response);
1226  
1227 0 return $response;
1228 }
1229  
1230  
1231 0 ▶sub setControlContinuousFwd {
Subroutine setControlContinuousFwd: not called CC=1 SCAR=6.9
Pod documented
1232 0 my ($self, $axis, $enable, %args) = validated_list(
1233 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1234 enable => {optional => 0,},
1235 );
1236  
1237 0 my $response = $self->request(method => 'com.attocube.amc.move.setControlContinuousFwd', params => [$axis, $enable]);
1238  
1239 0 $self->handle_error($response);
1240  
1241 0 return $response;
1242 }
1243  
1244  
1245 0 ▶sub setControlEotOutputDeactive {
Subroutine setControlEotOutputDeactive: not called CC=1 SCAR=6.9
Pod documented
1246 0 my ($self, $axis, $enable, %args) = validated_list(
1247 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1248 enable => {optional => 0,},
1249 );
1250  
1251 0 my $response = $self->request(method => 'com.attocube.amc.move.setControlEotOutputDeactive', params => [$axis, $enable]);
1252  
1253 0 $self->handle_error($response);
1254  
1255 0 return $response;
1256 }
1257  
1258  
1259 0 ▶sub setControlTargetPosition {
Subroutine setControlTargetPosition: not called CC=1 SCAR=6.9
Pod documented
1260 0 my ($self, $axis, $target, %args) = validated_list(
1261 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1262 target => {optional => 0,},
1263 );
1264  
1265 0 my $response = $self->request(method => 'com.attocube.amc.move.setControlTargetPosition', params => [$axis, $target]);
1266  
1267 0 $self->handle_error($response);
1268  
1269 0 return $response;
1270 }
1271  
1272  
1273 0 ▶sub setGroundAxis {
Subroutine setGroundAxis: not called CC=1 SCAR=6.9
Pod documented
1274 0 my ($self, $axis, $enabled, %args) = validated_list(
1275 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1276 enabled => {isa => 'Bool', optional => 0,},
1277 );
1278  
1279 0 my $response = $self->request(method => 'com.attocube.amc.move.setGroundAxis', params => [$axis, $enabled]);
1280  
1281 0 $self->handle_error($response);
1282  
1283 0 return $response;
1284 }
1285  
1286  
1287 0 ▶sub setGroundAxisAutoOnTarget {
Subroutine setGroundAxisAutoOnTarget: not called CC=1 SCAR=6.9
Pod documented
1288 0 my ($self, $axis, $enabled, %args) = validated_list(
1289 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1290 enabled => {isa => 'Bool', optional => 0,},
1291 );
1292  
1293 0 my $response = $self->request(method => 'com.attocube.amc.move.setGroundAxisAutoOnTarget', params => [$axis, $enabled]);
1294  
1295 0 $self->handle_error($response);
1296  
1297 0 return $response;
1298 }
1299  
1300  
1301 0 ▶sub setGroundTargetRange {
Subroutine setGroundTargetRange: not called CC=1 SCAR=6.9
Pod documented
1302 0 my ($self, $axis, $range, %args) = validated_list(
1303 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1304 range => {optional => 0,},
1305 );
1306  
1307 0 my $response = $self->request(method => 'com.attocube.amc.move.setGroundTargetRange', params => [$axis, $range]);
1308  
1309 0 $self->handle_error($response);
1310  
1311 0 return $response;
1312 }
1313  
1314  
1315 0 ▶sub setNSteps {
Subroutine setNSteps: not called CC=1 SCAR=6.9
Pod documented
1316 0 my ($self, $axis, $backward, $step, %args) = validated_list(
1317 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1318 backward => {optional => 0,},
1319 step => {optional => 0,},
1320 );
1321  
1322 0 my $response = $self->request(method => 'com.attocube.amc.move.setNSteps', params => [$axis, $backward, $step]);
1323  
1324 0 $self->handle_error($response);
1325  
1326 0 return $response;
1327 }
1328  
1329  
1330 0 ▶sub setSingleStep {
Subroutine setSingleStep: not called CC=1 SCAR=6.9
Pod documented
1331 0 my ($self, $axis, $backward, %args) = validated_list(
1332 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1333 backward => {optional => 0,},
1334 );
1335  
1336 0 my $response = $self->request(method => 'com.attocube.amc.move.setSingleStep', params => [$axis, $backward]);
1337  
1338 0 $self->handle_error($response);
1339  
1340 0 return $response;
1341 }
1342  
1343  
1344 0 ▶sub writeNSteps {
Subroutine writeNSteps: not called CC=1 SCAR=6.9
Pod documented
1345 0 my ($self, $axis, $step, %args) = validated_list(
1346 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1347 step => {optional => 0,},
1348 );
1349  
1350 0 my $response = $self->request(method => 'com.attocube.amc.move.writeNSteps', params => [$axis, $step]);
1351  
1352 0 $self->handle_error($response);
1353  
1354 0 return $response;
1355 }
1356  
1357  
1358 0 ▶sub getChainGain {
Subroutine getChainGain: not called CC=1 SCAR=6.9
Pod documented
1359 0 my ($self, $axis, %args) = validated_list(
1360 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1361 );
1362  
1363 0 my $response = $self->request(method => 'com.attocube.amc.res.getChainGain', params => [$axis]);
1364  
1365 0 $self->handle_error($response);
1366  
1367 0 return $response;
1368 }
1369  
1370  
1371 0 ▶sub getLinearization {
Subroutine getLinearization: not called CC=1 SCAR=6.9
Pod documented
1372 0 my ($self, $axis, %args) = validated_list(
1373 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1374 );
1375  
1376 0 my $response = $self->request(method => 'com.attocube.amc.res.getLinearization', params => [$axis]);
1377  
1378 0 $self->handle_error($response);
1379  
1380 0 return $response;
1381 }
1382  
1383  
1384 0 ▶sub getLutSn {
Subroutine getLutSn: not called CC=1 SCAR=6.9
Pod documented
1385 0 my ($self, $axis, %args) = validated_list(
1386 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1387 );
1388  
1389 0 my $response = $self->request(method => 'com.attocube.amc.res.getLutSn', params => [$axis]);
1390  
1391 0 $self->handle_error($response);
1392  
1393 0 return $response;
1394 }
1395  
1396  
1397 0 ▶sub res_getMode {
Subroutine res_getMode: not called CC=1 SCAR=6.9
Pod documented
1398 0 my $self = shift;
1399  
1400 0 my $response = $self->request(method => 'com.attocube.amc.res.getMode');
1401  
1402 0 $self->handle_error($response);
1403  
1404 0 return $response;
1405 }
1406  
1407  
1408 0 ▶sub getSensorStatus {
Subroutine getSensorStatus: not called CC=1 SCAR=6.9
Pod documented
1409 0 my ($self, $axis, %args) = validated_list(
1410 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1411 );
1412  
1413 0 my $response = $self->request(method => 'com.attocube.amc.res.getSensorStatus', params => [$axis]);
1414  
1415 0 $self->handle_error($response);
1416  
1417 0 return $response;
1418 }
1419  
1420  
1421 0 ▶sub setChainGain {
Subroutine setChainGain: not called CC=1 SCAR=6.9
Pod documented
1422 0 my ($self, $axis, $gainconfig, %args) = validated_list(
1423 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1424 gainconfig => {optional => 0,},
1425 );
1426  
1427 0 my $response = $self->request(method => 'com.attocube.amc.res.setChainGain', params => [$axis, $gainconfig]);
1428  
1429 0 $self->handle_error($response);
1430  
1431 0 return $response;
1432 }
1433  
1434  
1435 0 ▶sub setConfigurationFile {
Subroutine setConfigurationFile: not called CC=1 SCAR=6.9
Pod documented
1436 0 my ($self, $axis, $content, %args) = validated_list(
1437 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1438 content => {optional => 0,},
1439 );
1440  
1441 0 my $response = $self->request(method => 'com.attocube.amc.res.setConfigurationFile', params => [$axis, $content]);
1442  
1443 0 $self->handle_error($response);
1444  
1445 0 return $response;
1446 }
1447  
1448  
1449 0 ▶sub setLinearization {
Subroutine setLinearization: not called CC=1 SCAR=6.9
Pod documented
1450 0 my ($self, $axis, $enable, %args) = validated_list(
1451 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1452 enable => {optional => 0,},
1453 );
1454  
1455 0 my $response = $self->request(method => 'com.attocube.amc.res.setLinearization', params => [$axis, $enable]);
1456  
1457 0 $self->handle_error($response);
1458  
1459 0 return $response;
1460 }
1461  
1462  
1463 0 ▶sub res_setMode {
Subroutine res_setMode: not called CC=1 SCAR=6.9
Pod documented
1464 0 my ($self, $mode, %args) = validated_list(
1465 mode => {optional => 0,},
1466 );
1467  
1468 0 my $response = $self->request(method => 'com.attocube.amc.res.setMode', params => [$mode]);
1469  
1470 0 $self->handle_error($response);
1471  
1472 0 return $response;
1473 }
1474  
1475  
1476 0 ▶sub getControlTargetRanges {
Subroutine getControlTargetRanges: not called CC=1 SCAR=6.9
Pod documented
1477 0 my $self = shift;
1478  
1479 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.getControlTargetRanges');
1480  
1481 0 $self->handle_error($response);
1482  
1483 0 return $response;
1484 }
1485  
1486  
1487 0 ▶sub getEnabled {
Subroutine getEnabled: not called CC=1 SCAR=6.9
Pod documented
1488 0 my $self = shift;
1489  
1490 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.getEnabled');
1491  
1492 0 $self->handle_error($response);
1493  
1494 0 return $response;
1495 }
1496  
1497  
1498 0 ▶sub getLUT {
Subroutine getLUT: not called CC=1 SCAR=6.9
Pod documented
1499 0 my $self = shift;
1500  
1501 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.getLUT');
1502  
1503 0 $self->handle_error($response);
1504  
1505 0 return $response;
1506 }
1507  
1508  
1509 0 ▶sub setEnabled {
Subroutine setEnabled: not called CC=1 SCAR=6.9
Pod documented
1510 0 my ($self, $enabled, %args) = validated_list(
1511 enabled => {isa => 'Bool', optional => 0,},
1512 );
1513  
1514 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.setEnabled', params => [$enabled]);
1515  
1516 0 $self->handle_error($response);
1517  
1518 0 return $response;
1519 }
1520  
1521  
1522 0 ▶sub setLUT {
Subroutine setLUT: not called CC=1 SCAR=6.9
Pod documented
1523 0 my ($self, $lut_string, %args) = validated_list(
1524 lut_string => {optional => 0,},
1525 );
1526  
1527 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.setLUT', params => [$lut_string]);
1528  
1529 0 $self->handle_error($response);
1530  
1531 0 return $response;
1532 }
1533  
1534  
1535 0 ▶sub updateOffsets {
Subroutine updateOffsets: not called CC=1 SCAR=6.9
Pod documented
1536 0 my ($self, $offset_axis0, $offset_axis1, $offset_axis2, %args) = validated_list(
1537 offset_axis0 => {optional => 0,},
1538 offset_axis1 => {optional => 0,},
1539 offset_axis2 => {optional => 0,},
1540 );
1541  
1542 0 my $response = $self->request(method => 'com.attocube.amc.rotcomp.updateOffsets', params => [$offset_axis0, $offset_axis1, $offset_axis2]);
1543  
1544 0 $self->handle_error($response);
1545  
1546 0 return $response;
1547 }
1548  
1549  
1550 0 ▶sub rtin_apply {
Subroutine rtin_apply: not called CC=1 SCAR=6.9
Pod documented
1551 0 my $self = shift;
1552  
1553 0 my $response = $self->request(method => 'com.attocube.amc.rtin.apply');
1554  
1555 0 $self->handle_error($response);
1556  
1557 0 return $response;
1558 }
1559  
1560  
1561 0 ▶sub rtin_discard {
Subroutine rtin_discard: not called CC=1 SCAR=6.9
Pod documented
1562 0 my $self = shift;
1563  
1564 0 my $response = $self->request(method => 'com.attocube.amc.rtin.discard');
1565  
1566 0 $self->handle_error($response);
1567  
1568 0 return $response;
1569 }
1570  
1571  
1572 0 ▶sub getControlAQuadBInResolution {
Subroutine getControlAQuadBInResolution: not called CC=1 SCAR=6.9
Pod documented
1573 0 my ($self, $axis, %args) = validated_list(
1574 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1575 );
1576  
1577 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getControlAQuadBInResolution', params => [$axis]);
1578  
1579 0 $self->handle_error($response);
1580  
1581 0 return $response;
1582 }
1583  
1584  
1585 0 ▶sub getControlMoveGPIO {
Subroutine getControlMoveGPIO: not called CC=1 SCAR=6.9
Pod documented
1586 0 my ($self, $axis, %args) = validated_list(
1587 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1588 );
1589  
1590 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getControlMoveGPIO', params => [$axis]);
1591  
1592 0 $self->handle_error($response);
1593  
1594 0 return $response;
1595 }
1596  
1597  
1598 0 ▶sub getGpioMode {
Subroutine getGpioMode: not called CC=1 SCAR=6.9
Pod documented
1599 0 my $self = shift;
1600  
1601 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getGpioMode');
1602  
1603 0 $self->handle_error($response);
1604  
1605 0 return $response;
1606 }
1607  
1608  
1609 0 ▶sub getNslMux {
Subroutine getNslMux: not called CC=1 SCAR=6.9
Pod documented
1610 0 my ($self, $mux_mode, %args) = validated_list(
1611 mux_mode => {optional => 0,},
1612 );
1613  
1614 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getNslMux', params => [$mux_mode]);
1615  
1616 0 $self->handle_error($response);
1617  
1618 0 return $response;
1619 }
1620  
1621  
1622 0 ▶sub getRealTimeInChangePerPulse {
Subroutine getRealTimeInChangePerPulse: not called CC=1 SCAR=6.9
Pod documented
1623 0 my ($self, $axis, %args) = validated_list(
1624 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1625 );
1626  
1627 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getRealTimeInChangePerPulse', params => [$axis]);
1628  
1629 0 $self->handle_error($response);
1630  
1631 0 return $response;
1632 }
1633  
1634  
1635 0 ▶sub getRealTimeInFeedbackLoopMode {
Subroutine getRealTimeInFeedbackLoopMode: not called CC=1 SCAR=6.9
Pod documented
1636 0 my ($self, $axis, %args) = validated_list(
1637 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1638 );
1639  
1640 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getRealTimeInFeedbackLoopMode', params => [$axis]);
1641  
1642 0 $self->handle_error($response);
1643  
1644 0 return $response;
1645 }
1646  
1647  
1648 0 ▶sub getRealTimeInMode {
Subroutine getRealTimeInMode: not called CC=1 SCAR=6.9
Pod documented
1649 0 my ($self, $axis, %args) = validated_list(
1650 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1651 );
1652  
1653 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getRealTimeInMode', params => [$axis]);
1654  
1655 0 $self->handle_error($response);
1656  
1657 0 return $response;
1658 }
1659  
1660  
1661 0 ▶sub getRealTimeInStepsPerPulse {
Subroutine getRealTimeInStepsPerPulse: not called CC=1 SCAR=6.9
Pod documented
1662 0 my ($self, $axis, %args) = validated_list(
1663 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1664 );
1665  
1666 0 my $response = $self->request(method => 'com.attocube.amc.rtin.getRealTimeInStepsPerPulse', params => [$axis]);
1667  
1668 0 $self->handle_error($response);
1669  
1670 0 return $response;
1671 }
1672  
1673  
1674 0 ▶sub setControlAQuadBInResolution {
Subroutine setControlAQuadBInResolution: not called CC=1 SCAR=6.9
Pod documented
1675 0 my ($self, $axis, $resolution, %args) = validated_list(
1676 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1677 resolution => {optional => 0,},
1678 );
1679  
1680 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setControlAQuadBInResolution', params => [$axis, $resolution]);
1681  
1682 0 $self->handle_error($response);
1683  
1684 0 return $response;
1685 }
1686  
1687  
1688 0 ▶sub setControlMoveGPIO {
Subroutine setControlMoveGPIO: not called CC=1 SCAR=6.9
Pod documented
1689 0 my ($self, $axis, $enable, %args) = validated_list(
1690 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1691 enable => {optional => 0,},
1692 );
1693  
1694 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setControlMoveGPIO', params => [$axis, $enable]);
1695  
1696 0 $self->handle_error($response);
1697  
1698 0 return $response;
1699 }
1700  
1701  
1702 0 ▶sub setGpioMode {
Subroutine setGpioMode: not called CC=1 SCAR=6.9
Pod documented
1703 0 my ($self, $gpio_mode, %args) = validated_list(
1704 gpio_mode => {optional => 0,},
1705 );
1706  
1707 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setGpioMode', params => [$gpio_mode]);
1708  
1709 0 $self->handle_error($response);
1710  
1711 0 return $response;
1712 }
1713  
1714  
1715 0 ▶sub setNslMux {
Subroutine setNslMux: not called CC=1 SCAR=6.9
Pod documented
1716 0 my ($self, $mux_mode, %args) = validated_list(
1717 mux_mode => {optional => 0,},
1718 );
1719  
1720 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setNslMux', params => [$mux_mode]);
1721  
1722 0 $self->handle_error($response);
1723  
1724 0 return $response;
1725 }
1726  
1727  
1728 0 ▶sub setRealTimeInChangePerPulse {
Subroutine setRealTimeInChangePerPulse: not called CC=1 SCAR=6.9
Pod documented
1729 0 my ($self, $axis, $delta, %args) = validated_list(
1730 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1731 delta => {optional => 0,},
1732 );
1733  
1734 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setRealTimeInChangePerPulse', params => [$axis, $delta]);
1735  
1736 0 $self->handle_error($response);
1737  
1738 0 return $response;
1739 }
1740  
1741  
1742 0 ▶sub setRealTimeInFeedbackLoopMode {
Subroutine setRealTimeInFeedbackLoopMode: not called CC=1 SCAR=6.9
Pod documented
1743 0 my ($self, $axis, $mode, %args) = validated_list(
1744 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1745 mode => {optional => 0,},
1746 );
1747  
1748 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setRealTimeInFeedbackLoopMode', params => [$axis, $mode]);
1749  
1750 0 $self->handle_error($response);
1751  
1752 0 return $response;
1753 }
1754  
1755  
1756 0 ▶sub setRealTimeInMode {
Subroutine setRealTimeInMode: not called CC=1 SCAR=6.9
Pod documented
1757 0 my ($self, $axis, $mode, %args) = validated_list(
1758 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1759 mode => {optional => 0,},
1760 );
1761  
1762 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setRealTimeInMode', params => [$axis, $mode]);
1763  
1764 0 $self->handle_error($response);
1765  
1766 0 return $response;
1767 }
1768  
1769  
1770 0 ▶sub setRealTimeInStepsPerPulse {
Subroutine setRealTimeInStepsPerPulse: not called CC=1 SCAR=6.9
Pod documented
1771 0 my ($self, $axis, $steps, %args) = validated_list(
1772 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1773 steps => {optional => 0,},
1774 );
1775  
1776 0 my $response = $self->request(method => 'com.attocube.amc.rtin.setRealTimeInStepsPerPulse', params => [$axis, $steps]);
1777  
1778 0 $self->handle_error($response);
1779  
1780 0 return $response;
1781 }
1782  
1783  
1784 0 ▶sub rtout_apply {
Subroutine rtout_apply: not called CC=1 SCAR=6.9
Pod documented
1785 0 my $self = shift;
1786  
1787 0 my $response = $self->request(method => 'com.attocube.amc.rtout.apply');
1788  
1789 0 $self->handle_error($response);
1790  
1791 0 return $response;
1792 }
1793  
1794  
1795 0 ▶sub applyAxis {
Subroutine applyAxis: not called CC=1 SCAR=6.9
Pod documented
1796 0 my ($self, $axis, %args) = validated_list(
1797 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1798 );
1799  
1800 0 my $response = $self->request(method => 'com.attocube.amc.rtout.applyAxis', params => [$axis]);
1801  
1802 0 $self->handle_error($response);
1803  
1804 0 return $response;
1805 }
1806  
1807  
1808 0 ▶sub rtout_discard {
Subroutine rtout_discard: not called CC=1 SCAR=6.9
Pod documented
1809 0 my $self = shift;
1810  
1811 0 my $response = $self->request(method => 'com.attocube.amc.rtout.discard');
1812  
1813 0 $self->handle_error($response);
1814  
1815 0 return $response;
1816 }
1817  
1818  
1819 0 ▶sub discardAxis {
Subroutine discardAxis: not called CC=1 SCAR=6.9
Pod documented
1820 0 my ($self, $axis, %args) = validated_list(
1821 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1822 );
1823  
1824 0 my $response = $self->request(method => 'com.attocube.amc.rtout.discardAxis', params => [$axis]);
1825  
1826 0 $self->handle_error($response);
1827  
1828 0 return $response;
1829 }
1830  
1831  
1832 0 ▶sub discardSignalMode {
Subroutine discardSignalMode: not called CC=1 SCAR=6.9
Pod documented
1833 0 my $self = shift;
1834  
1835 0 my $response = $self->request(method => 'com.attocube.amc.rtout.discardSignalMode');
1836  
1837 0 $self->handle_error($response);
1838  
1839 0 return $response;
1840 }
1841  
1842  
1843 0 ▶sub getControlAQuadBOut {
Subroutine getControlAQuadBOut: not called CC=1 SCAR=6.9
Pod documented
1844 0 my ($self, $axis, %args) = validated_list(
1845 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1846 );
1847  
1848 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getControlAQuadBOut', params => [$axis]);
1849  
1850 0 $self->handle_error($response);
1851  
1852 0 return $response;
1853 }
1854  
1855  
1856 0 ▶sub getControlAQuadBOutClock {
Subroutine getControlAQuadBOutClock: not called CC=1 SCAR=6.9
Pod documented
1857 0 my ($self, $axis, %args) = validated_list(
1858 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1859 );
1860  
1861 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getControlAQuadBOutClock', params => [$axis]);
1862  
1863 0 $self->handle_error($response);
1864  
1865 0 return $response;
1866 }
1867  
1868  
1869 0 ▶sub getControlAQuadBOutResolution {
Subroutine getControlAQuadBOutResolution: not called CC=1 SCAR=6.9
Pod documented
1870 0 my ($self, $axis, %args) = validated_list(
1871 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1872 );
1873  
1874 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getControlAQuadBOutResolution', params => [$axis]);
1875  
1876 0 $self->handle_error($response);
1877  
1878 0 return $response;
1879 }
1880  
1881  
1882 0 ▶sub rtout_getMode {
Subroutine rtout_getMode: not called CC=1 SCAR=6.9
Pod documented
1883 0 my ($self, $axis, %args) = validated_list(
1884 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1885 );
1886  
1887 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getMode', params => [$axis]);
1888  
1889 0 $self->handle_error($response);
1890  
1891 0 return $response;
1892 }
1893  
1894  
1895 0 ▶sub getSignalMode {
Subroutine getSignalMode: not called CC=1 SCAR=6.9
Pod documented
1896 0 my $self = shift;
1897  
1898 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getSignalMode');
1899  
1900 0 $self->handle_error($response);
1901  
1902 0 return $response;
1903 }
1904  
1905  
1906 0 ▶sub getTriggerConfig {
Subroutine getTriggerConfig: not called CC=1 SCAR=6.9
Pod documented
1907 0 my ($self, $axis, %args) = validated_list(
1908 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1909 );
1910  
1911 0 my $response = $self->request(method => 'com.attocube.amc.rtout.getTriggerConfig', params => [$axis]);
1912  
1913 0 $self->handle_error($response);
1914  
1915 0 return $response;
1916 }
1917  
1918  
1919 0 ▶sub setControlAQuadBOutClock {
Subroutine setControlAQuadBOutClock: not called CC=1 SCAR=6.9
Pod documented
1920 0 my ($self, $axis, $clock, %args) = validated_list(
1921 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1922 clock => {optional => 0,},
1923 );
1924  
1925 0 my $response = $self->request(method => 'com.attocube.amc.rtout.setControlAQuadBOutClock', params => [$axis, $clock]);
1926  
1927 0 $self->handle_error($response);
1928  
1929 0 return $response;
1930 }
1931  
1932  
1933 0 ▶sub setControlAQuadBOutResolution {
Subroutine setControlAQuadBOutResolution: not called CC=1 SCAR=6.9
Pod documented
1934 0 my ($self, $axis, $resolution, %args) = validated_list(
1935 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1936 resolution => {optional => 0,},
1937 );
1938  
1939 0 my $response = $self->request(method => 'com.attocube.amc.rtout.setControlAQuadBOutResolution', params => [$axis, $resolution]);
1940  
1941 0 $self->handle_error($response);
1942  
1943 0 return $response;
1944 }
1945  
1946  
1947 0 ▶sub rtout_setMode {
Subroutine rtout_setMode: not called CC=1 SCAR=6.9
Pod documented
1948 0 my ($self, $axis, $mode, %args) = validated_list(
1949 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1950 mode => {optional => 0,},
1951 );
1952  
1953 0 my $response = $self->request(method => 'com.attocube.amc.rtout.setMode', params => [$axis, $mode]);
1954  
1955 0 $self->handle_error($response);
1956  
1957 0 return $response;
1958 }
1959  
1960  
1961 0 ▶sub setSignalMode {
Subroutine setSignalMode: not called CC=1 SCAR=6.9
Pod documented
1962 0 my ($self, $mode, %args) = validated_list(
1963 mode => {optional => 0,},
1964 );
1965  
1966 0 my $response = $self->request(method => 'com.attocube.amc.rtout.setSignalMode', params => [$mode]);
1967  
1968 0 $self->handle_error($response);
1969  
1970 0 return $response;
1971 }
1972  
1973  
1974 0 ▶sub setTriggerConfig {
Subroutine setTriggerConfig: not called CC=1 SCAR=6.9
Pod documented
1975 0 my ($self, $axis, $higher, $lower, $epsilon, $polarity, %args) = validated_list(
1976 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1977 higher => {optional => 0,},
1978 lower => {optional => 0,},
1979 epsilon => {optional => 0,},
1980 polarity => {optional => 0,},
1981 );
1982  
1983 0 my $response = $self->request(method => 'com.attocube.amc.rtout.setTriggerConfig', params => [$axis, $higher, $lower, $epsilon, $polarity]);
1984  
1985 0 $self->handle_error($response);
1986  
1987 0 return $response;
1988 }
1989  
1990  
1991 0 ▶sub getFullCombinedStatus {
Subroutine getFullCombinedStatus: not called CC=1 SCAR=6.9
Pod documented
1992 0 my ($self, $axis, %args) = validated_list(
1993 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
1994 );
1995  
1996 0 my $response = $self->request(method => 'com.attocube.amc.status.getFullCombinedStatus', params => [$axis]);
1997  
1998 0 $self->handle_error($response);
1999  
2000 0 return $response;
2001 }
2002  
2003  
2004 0 ▶sub getOlStatus {
Subroutine getOlStatus: not called CC=1 SCAR=6.9
Pod documented
2005 0 my ($self, $axis, %args) = validated_list(
2006 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2007 );
2008  
2009 0 my $response = $self->request(method => 'com.attocube.amc.status.getOlStatus', params => [$axis]);
2010  
2011 0 $self->handle_error($response);
2012  
2013 0 return $response;
2014 }
2015  
2016  
2017 0 ▶sub getStatusConnected {
Subroutine getStatusConnected: not called CC=1 SCAR=6.9
Pod documented
2018 0 my ($self, $axis, %args) = validated_list(
2019 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2020 );
2021  
2022 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusConnected', params => [$axis]);
2023  
2024 0 $self->handle_error($response);
2025  
2026 0 return $response;
2027 }
2028  
2029  
2030 0 ▶sub getStatusEot {
Subroutine getStatusEot: not called CC=1 SCAR=6.9
Pod documented
2031 0 my ($self, $axis, %args) = validated_list(
2032 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2033 );
2034  
2035 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusEot', params => [$axis]);
2036  
2037 0 $self->handle_error($response);
2038  
2039 0 return $response;
2040 }
2041  
2042  
2043 0 ▶sub getStatusEotBkwd {
Subroutine getStatusEotBkwd: not called CC=1 SCAR=6.9
Pod documented
2044 0 my ($self, $axis, %args) = validated_list(
2045 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2046 );
2047  
2048 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusEotBkwd', params => [$axis]);
2049  
2050 0 $self->handle_error($response);
2051  
2052 0 return $response;
2053 }
2054  
2055  
2056 0 ▶sub getStatusEotFwd {
Subroutine getStatusEotFwd: not called CC=1 SCAR=6.9
Pod documented
2057 0 my ($self, $axis, %args) = validated_list(
2058 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2059 );
2060  
2061 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusEotFwd', params => [$axis]);
2062  
2063 0 $self->handle_error($response);
2064  
2065 0 return $response;
2066 }
2067  
2068  
2069 0 ▶sub getStatusMoving {
Subroutine getStatusMoving: not called CC=1 SCAR=6.9
Pod documented
2070 0 my ($self, $axis, %args) = validated_list(
2071 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2072 );
2073  
2074 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusMoving', params => [$axis]);
2075  
2076 0 $self->handle_error($response);
2077  
2078 0 return $response;
2079 }
2080  
2081  
2082 0 ▶sub getStatusReference {
Subroutine getStatusReference: not called CC=1 SCAR=6.9
Pod documented
2083 0 my ($self, $axis, %args) = validated_list(
2084 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2085 );
2086  
2087 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusReference', params => [$axis]);
2088  
2089 0 $self->handle_error($response);
2090  
2091 0 return $response;
2092 }
2093  
2094  
2095 0 ▶sub getStatusTargetRange {
Subroutine getStatusTargetRange: not called CC=1 SCAR=6.9
Pod documented
2096 0 my ($self, $axis, %args) = validated_list(
2097 axis => {isa => enum([ qw(0 1 2 ) ]), optional => 0,},
2098 );
2099  
2100 0 my $response = $self->request(method => 'com.attocube.amc.status.getStatusTargetRange', params => [$axis]);
2101  
2102 0 $self->handle_error($response);
2103  
2104 0 return $response;
2105 }
2106  
2107  
2108 0 ▶sub getInstalledPackages {
Subroutine getInstalledPackages: not called CC=1 SCAR=6.9
Pod documented
2109 0 my $self = shift;
2110  
2111 0 my $response = $self->request(method => 'com.attocube.system.about.getInstalledPackages');
2112  
2113 0 $self->handle_error($response);
2114  
2115 0 return $response;
2116 }
2117  
2118  
2119 0 ▶sub getPackageLicense {
Subroutine getPackageLicense: not called CC=1 SCAR=6.9
Pod documented
2120 0 my ($self, $pckg, %args) = validated_list(
2121 pckg => {optional => 0,},
2122 );
2123  
2124 0 my $response = $self->request(method => 'com.attocube.system.about.getPackageLicense', params => [$pckg]);
2125  
2126 0 $self->handle_error($response);
2127  
2128 0 return $response;
2129 }
2130  
2131  
2132 0 ▶sub system_apply {
Subroutine system_apply: not called CC=1 SCAR=6.9
Pod documented
2133 0 my $self = shift;
2134  
2135 0 my $response = $self->request(method => 'com.attocube.system.apply');
2136  
2137 0 $self->handle_error($response);
2138  
2139 0 return $response;
2140 }
2141  
2142  
2143 0 ▶sub errorNumberToRecommendation {
Subroutine errorNumberToRecommendation: not called CC=1 SCAR=6.9
Pod documented
2144 0 my ($self, $language, $errNbr, %args) = validated_list(
2145 language => {optional => 0,},
2146 errNbr => {optional => 0,},
2147 );
2148  
2149 0 my $response = $self->request(method => 'com.attocube.system.errorNumberToRecommendation', params => [$language, $errNbr]);
2150  
2151 0 $self->handle_error($response);
2152  
2153 0 return $response;
2154 }
2155  
2156  
2157 0 ▶sub errorNumberToString {
Subroutine errorNumberToString: not called CC=1 SCAR=6.9
Pod documented
2158 0 my ($self, $language, $errNbr, %args) = validated_list(
2159 language => {optional => 0,},
2160 errNbr => {optional => 0,},
2161 );
2162  
2163 0 my $response = $self->request(method => 'com.attocube.system.errorNumberToString', params => [$language, $errNbr]);
2164  
2165 0 $self->handle_error($response);
2166  
2167 0 return $response;
2168 }
2169  
2170  
2171 0 ▶sub factoryReset {
Subroutine factoryReset: not called CC=1 SCAR=6.9
Pod documented
2172 0 my $self = shift;
2173  
2174 0 my $response = $self->request(method => 'com.attocube.system.factoryReset');
2175  
2176 0 $self->handle_error($response);
2177  
2178 0 return $response;
2179 }
2180  
2181  
2182 0 ▶sub checkAMCinRack {
Subroutine checkAMCinRack: not called CC=1 SCAR=6.9
Pod documented
2183 0 my $self = shift;
2184  
2185 0 my $response = $self->request(method => 'com.attocube.system.functions.checkAMCinRack');
2186  
2187 0 $self->handle_error($response);
2188  
2189 0 return $response;
2190 }
2191  
2192  
2193 0 ▶sub getDeviceName {
Subroutine getDeviceName: not called CC=1 SCAR=6.9
Pod documented
2194 0 my $self = shift;
2195  
2196 0 my $response = $self->request(method => 'com.attocube.system.getDeviceName');
2197  
2198 0 $self->handle_error($response);
2199  
2200 0 return $response;
2201 }
2202  
2203  
2204 0 ▶sub getFirmwareVersion {
Subroutine getFirmwareVersion: not called CC=1 SCAR=6.9
Pod documented
2205 0 my $self = shift;
2206  
2207 0 my $response = $self->request(method => 'com.attocube.system.getFirmwareVersion');
2208  
2209 0 $self->handle_error($response);
2210  
2211 0 return $response;
2212 }
2213  
2214  
2215 0 ▶sub getFluxCode {
Subroutine getFluxCode: not called CC=1 SCAR=6.9
Pod documented
2216 0 my $self = shift;
2217  
2218 0 my $response = $self->request(method => 'com.attocube.system.getFluxCode');
2219  
2220 0 $self->handle_error($response);
2221  
2222 0 return $response;
2223 }
2224  
2225  
2226 0 ▶sub getHostname {
Subroutine getHostname: not called CC=1 SCAR=6.9
Pod documented
2227 0 my $self = shift;
2228  
2229 0 my $response = $self->request(method => 'com.attocube.system.getHostname');
2230  
2231 0 $self->handle_error($response);
2232  
2233 0 return $response;
2234 }
2235  
2236  
2237 0 ▶sub getMacAddress {
Subroutine getMacAddress: not called CC=1 SCAR=6.9
Pod documented
2238 0 my $self = shift;
2239  
2240 0 my $response = $self->request(method => 'com.attocube.system.getMacAddress');
2241  
2242 0 $self->handle_error($response);
2243  
2244 0 return $response;
2245 }
2246  
2247  
2248 0 ▶sub getSerialNumber {
Subroutine getSerialNumber: not called CC=1 SCAR=6.9
Pod documented
2249 0 my $self = shift;
2250  
2251 0 my $response = $self->request(method => 'com.attocube.system.getSerialNumber');
2252  
2253 0 $self->handle_error($response);
2254  
2255 0 return $response;
2256 }
2257  
2258  
2259 0 ▶sub network_apply {
Subroutine network_apply: not called CC=1 SCAR=6.9
Pod documented
2260 0 my $self = shift;
2261  
2262 0 my $response = $self->request(method => 'com.attocube.system.network.apply');
2263  
2264 0 $self->handle_error($response);
2265  
2266 0 return $response;
2267 }
2268  
2269  
2270 0 ▶sub configureWifi {
Subroutine configureWifi: not called CC=1 SCAR=6.9
Pod documented
2271 0 my ($self, $mode, $ssid, $psk, %args) = validated_list(
2272 mode => {optional => 0,},
2273 ssid => {optional => 0,},
2274 psk => {optional => 0,},
2275 );
2276  
2277 0 my $response = $self->request(method => 'com.attocube.system.network.configureWifi', params => [$mode, $ssid, $psk]);
2278  
2279 0 $self->handle_error($response);
2280  
2281 0 return $response;
2282 }
2283  
2284  
2285 0 ▶sub network_discard {
Subroutine network_discard: not called CC=1 SCAR=6.9
Pod documented
2286 0 my $self = shift;
2287  
2288 0 my $response = $self->request(method => 'com.attocube.system.network.discard');
2289  
2290 0 $self->handle_error($response);
2291  
2292 0 return $response;
2293 }
2294  
2295  
2296 0 ▶sub getDefaultGateway {
Subroutine getDefaultGateway: not called CC=1 SCAR=6.9
Pod documented
2297 0 my $self = shift;
2298  
2299 0 my $response = $self->request(method => 'com.attocube.system.network.getDefaultGateway');
2300  
2301 0 $self->handle_error($response);
2302  
2303 0 return $response;
2304 }
2305  
2306  
2307 0 ▶sub getDnsResolver {
Subroutine getDnsResolver: not called CC=1 SCAR=6.9
Pod documented
2308 0 my ($self, $priority, %args) = validated_list(
2309 priority => {optional => 0,},
2310 );
2311  
2312 0 my $response = $self->request(method => 'com.attocube.system.network.getDnsResolver', params => [$priority]);
2313  
2314 0 $self->handle_error($response);
2315  
2316 0 return $response;
2317 }
2318  
2319  
2320 0 ▶sub getEnableDhcpClient {
Subroutine getEnableDhcpClient: not called CC=1 SCAR=6.9
Pod documented
2321 0 my $self = shift;
2322  
2323 0 my $response = $self->request(method => 'com.attocube.system.network.getEnableDhcpClient');
2324  
2325 0 $self->handle_error($response);
2326  
2327 0 return $response;
2328 }
2329  
2330  
2331 0 ▶sub getEnableDhcpServer {
Subroutine getEnableDhcpServer: not called CC=1 SCAR=6.9
Pod documented
2332 0 my $self = shift;
2333  
2334 0 my $response = $self->request(method => 'com.attocube.system.network.getEnableDhcpServer');
2335  
2336 0 $self->handle_error($response);
2337  
2338 0 return $response;
2339 }
2340  
2341  
2342 0 ▶sub getIpAddress {
Subroutine getIpAddress: not called CC=1 SCAR=6.9
Pod documented
2343 0 my $self = shift;
2344  
2345 0 my $response = $self->request(method => 'com.attocube.system.network.getIpAddress');
2346  
2347 0 $self->handle_error($response);
2348  
2349 0 return $response;
2350 }
2351  
2352  
2353 0 ▶sub getProxyServer {
Subroutine getProxyServer: not called CC=1 SCAR=6.9
Pod documented
2354 0 my $self = shift;
2355  
2356 0 my $response = $self->request(method => 'com.attocube.system.network.getProxyServer');
2357  
2358 0 $self->handle_error($response);
2359  
2360 0 return $response;
2361 }
2362  
2363  
2364 0 ▶sub getRealIpAddress {
Subroutine getRealIpAddress: not called CC=1 SCAR=6.9
Pod documented
2365 0 my $self = shift;
2366  
2367 0 my $response = $self->request(method => 'com.attocube.system.network.getRealIpAddress');
2368  
2369 0 $self->handle_error($response);
2370  
2371 0 return $response;
2372 }
2373  
2374  
2375 0 ▶sub getSubnetMask {
Subroutine getSubnetMask: not called CC=1 SCAR=6.9
Pod documented
2376 0 my $self = shift;
2377  
2378 0 my $response = $self->request(method => 'com.attocube.system.network.getSubnetMask');
2379  
2380 0 $self->handle_error($response);
2381  
2382 0 return $response;
2383 }
2384  
2385  
2386 0 ▶sub getWifiMode {
Subroutine getWifiMode: not called CC=1 SCAR=6.9
Pod documented
2387 0 my $self = shift;
2388  
2389 0 my $response = $self->request(method => 'com.attocube.system.network.getWifiMode');
2390  
2391 0 $self->handle_error($response);
2392  
2393 0 return $response;
2394 }
2395  
2396  
2397 0 ▶sub getWifiPassphrase {
Subroutine getWifiPassphrase: not called CC=1 SCAR=6.9
Pod documented
2398 0 my $self = shift;
2399  
2400 0 my $response = $self->request(method => 'com.attocube.system.network.getWifiPassphrase');
2401  
2402 0 $self->handle_error($response);
2403  
2404 0 return $response;
2405 }
2406  
2407  
2408 0 ▶sub getWifiPresent {
Subroutine getWifiPresent: not called CC=1 SCAR=6.9
Pod documented
2409 0 my $self = shift;
2410  
2411 0 my $response = $self->request(method => 'com.attocube.system.network.getWifiPresent');
2412  
2413 0 $self->handle_error($response);
2414  
2415 0 return $response;
2416 }
2417  
2418  
2419 0 ▶sub getWifiSSID {
Subroutine getWifiSSID: not called CC=1 SCAR=6.9
Pod documented
2420 0 my $self = shift;
2421  
2422 0 my $response = $self->request(method => 'com.attocube.system.network.getWifiSSID');
2423  
2424 0 $self->handle_error($response);
2425  
2426 0 return $response;
2427 }
2428  
2429  
2430 0 ▶sub setDefaultGateway {
Subroutine setDefaultGateway: not called CC=1 SCAR=6.9
Pod documented
2431 0 my ($self, $gateway, %args) = validated_list(
2432 gateway => {optional => 0,},
2433 );
2434  
2435 0 my $response = $self->request(method => 'com.attocube.system.network.setDefaultGateway', params => [$gateway]);
2436  
2437 0 $self->handle_error($response);
2438  
2439 0 return $response;
2440 }
2441  
2442  
2443 0 ▶sub setDnsResolver {
Subroutine setDnsResolver: not called CC=1 SCAR=6.9
Pod documented
2444 0 my ($self, $priority, $resolver, %args) = validated_list(
2445 priority => {optional => 0,},
2446 resolver => {optional => 0,},
2447 );
2448  
2449 0 my $response = $self->request(method => 'com.attocube.system.network.setDnsResolver', params => [$priority, $resolver]);
2450  
2451 0 $self->handle_error($response);
2452  
2453 0 return $response;
2454 }
2455  
2456  
2457 0 ▶sub setEnableDhcpClient {
Subroutine setEnableDhcpClient: not called CC=1 SCAR=6.9
Pod documented
2458 0 my ($self, $enable, %args) = validated_list(
2459 enable => {optional => 0,},
2460 );
2461  
2462 0 my $response = $self->request(method => 'com.attocube.system.network.setEnableDhcpClient', params => [$enable]);
2463  
2464 0 $self->handle_error($response);
2465  
2466 0 return $response;
2467 }
2468  
2469  
2470 0 ▶sub setEnableDhcpServer {
Subroutine setEnableDhcpServer: not called CC=1 SCAR=6.9
Pod documented
2471 0 my ($self, $enable, %args) = validated_list(
2472 enable => {optional => 0,},
2473 );
2474  
2475 0 my $response = $self->request(method => 'com.attocube.system.network.setEnableDhcpServer', params => [$enable]);
2476  
2477 0 $self->handle_error($response);
2478  
2479 0 return $response;
2480 }
2481  
2482  
2483 0 ▶sub setIpAddress {
Subroutine setIpAddress: not called CC=1 SCAR=6.9
Pod documented
2484 0 my ($self, $address, %args) = validated_list(
2485 address => {optional => 0,},
2486 );
2487  
2488 0 my $response = $self->request(method => 'com.attocube.system.network.setIpAddress', params => [$address]);
2489  
2490 0 $self->handle_error($response);
2491  
2492 0 return $response;
2493 }
2494  
2495  
2496 0 ▶sub setProxyServer {
Subroutine setProxyServer: not called CC=1 SCAR=6.9
Pod documented
2497 0 my ($self, $proxyServer, %args) = validated_list(
2498 proxyServer => {optional => 0,},
2499 );
2500  
2501 0 my $response = $self->request(method => 'com.attocube.system.network.setProxyServer', params => [$proxyServer]);
2502  
2503 0 $self->handle_error($response);
2504  
2505 0 return $response;
2506 }
2507  
2508  
2509 0 ▶sub setSubnetMask {
Subroutine setSubnetMask: not called CC=1 SCAR=6.9
Pod documented
2510 0 my ($self, $netmask, %args) = validated_list(
2511 netmask => {optional => 0,},
2512 );
2513  
2514 0 my $response = $self->request(method => 'com.attocube.system.network.setSubnetMask', params => [$netmask]);
2515  
2516 0 $self->handle_error($response);
2517  
2518 0 return $response;
2519 }
2520  
2521  
2522 0 ▶sub setWifiMode {
Subroutine setWifiMode: not called CC=1 SCAR=6.9
Pod documented
2523 0 my ($self, $mode, %args) = validated_list(
2524 mode => {optional => 0,},
2525 );
2526  
2527 0 my $response = $self->request(method => 'com.attocube.system.network.setWifiMode', params => [$mode]);
2528  
2529 0 $self->handle_error($response);
2530  
2531 0 return $response;
2532 }
2533  
2534  
2535 0 ▶sub setWifiPassphrase {
Subroutine setWifiPassphrase: not called CC=1 SCAR=6.9
Pod documented
2536 0 my ($self, $psk, %args) = validated_list(
2537 psk => {optional => 0,},
2538 );
2539  
2540 0 my $response = $self->request(method => 'com.attocube.system.network.setWifiPassphrase', params => [$psk]);
2541  
2542 0 $self->handle_error($response);
2543  
2544 0 return $response;
2545 }
2546  
2547  
2548 0 ▶sub setWifiSSID {
Subroutine setWifiSSID: not called CC=1 SCAR=6.9
Pod documented
2549 0 my ($self, $ssid, %args) = validated_list(
2550 ssid => {optional => 0,},
2551 );
2552  
2553 0 my $response = $self->request(method => 'com.attocube.system.network.setWifiSSID', params => [$ssid]);
2554  
2555 0 $self->handle_error($response);
2556  
2557 0 return $response;
2558 }
2559  
2560  
2561 0 ▶sub verify {
Subroutine verify: not called CC=1 SCAR=6.9
Pod documented
2562 0 my $self = shift;
2563  
2564 0 my $response = $self->request(method => 'com.attocube.system.network.verify');
2565  
2566 0 $self->handle_error($response);
2567  
2568 0 return $response;
2569 }
2570  
2571  
2572 0 ▶sub rebootSystem {
Subroutine rebootSystem: not called CC=1 SCAR=6.9
Pod documented
2573 0 my $self = shift;
2574  
2575 0 my $response = $self->request(method => 'com.attocube.system.rebootSystem');
2576  
2577 0 $self->handle_error($response);
2578  
2579 0 return $response;
2580 }
2581  
2582  
2583 0 ▶sub setDeviceName {
Subroutine setDeviceName: not called CC=1 SCAR=6.9
Pod documented
2584 0 my ($self, $name, %args) = validated_list(
2585 name => {optional => 0,},
2586 );
2587  
2588 0 my $response = $self->request(method => 'com.attocube.system.setDeviceName', params => [$name]);
2589  
2590 0 $self->handle_error($response);
2591  
2592 0 return $response;
2593 }
2594  
2595  
2596 0 ▶sub setTime {
Subroutine setTime: not called CC=1 SCAR=6.9
Pod documented
2597 0 my ($self, $day, $month, $year, $hour, $minute, $second, %args) = validated_list(
2598 day => {optional => 0,},
2599 month => {optional => 0,},
2600 year => {optional => 0,},
2601 hour => {optional => 0,},
2602 minute => {optional => 0,},
2603 second => {optional => 0,},
2604 );
2605  
2606 0 my $response = $self->request(method => 'com.attocube.system.setTime', params => [$day, $month, $year, $hour, $minute, $second]);
2607  
2608 0 $self->handle_error($response);
2609  
2610 0 return $response;
2611 }
2612  
2613  
2614 0 ▶sub softReset {
Subroutine softReset: not called CC=1 SCAR=6.9
Pod documented
2615 0 my $self = shift;
2616  
2617 0 my $response = $self->request(method => 'com.attocube.system.softReset');
2618  
2619 0 $self->handle_error($response);
2620  
2621 0 return $response;
2622 }
2623  
2624  
2625 0 ▶sub updateTimeFromInternet {
Subroutine updateTimeFromInternet: not called CC=1 SCAR=6.9
Pod documented
2626 0 my $self = shift;
2627  
2628 0 my $response = $self->request(method => 'com.attocube.system.updateTimeFromInternet');
2629  
2630 0 $self->handle_error($response);
2631  
2632 0 return $response;
2633 }
2634  
2635  
2636 0 ▶sub getLicenseUpdateProgress {
Subroutine getLicenseUpdateProgress: not called CC=1 SCAR=6.9
Pod documented
2637 0 my $self = shift;
2638  
2639 0 my $response = $self->request(method => 'com.attocube.system.update.getLicenseUpdateProgress');
2640  
2641 0 $self->handle_error($response);
2642  
2643 0 return $response;
2644 }
2645  
2646  
2647 0 ▶sub getSwUpdateProgress {
Subroutine getSwUpdateProgress: not called CC=1 SCAR=6.9
Pod documented
2648 0 my $self = shift;
2649  
2650 0 my $response = $self->request(method => 'com.attocube.system.update.getSwUpdateProgress');
2651  
2652 0 $self->handle_error($response);
2653  
2654 0 return $response;
2655 }
2656  
2657  
2658 0 ▶sub licenseUpdateBase64 {
Subroutine licenseUpdateBase64: not called CC=1 SCAR=6.9
Pod documented
2659 0 my $self = shift;
2660  
2661 0 my $response = $self->request(method => 'com.attocube.system.update.licenseUpdateBase64');
2662  
2663 0 $self->handle_error($response);
2664  
2665 0 return $response;
2666 }
2667  
2668  
2669 0 ▶sub softwareUpdateBase64 {
Subroutine softwareUpdateBase64: not called CC=1 SCAR=6.9
Pod documented
2670 0 my $self = shift;
2671  
2672 0 my $response = $self->request(method => 'com.attocube.system.update.softwareUpdateBase64');
2673  
2674 0 $self->handle_error($response);
2675  
2676 0 return $response;
2677 }
2678  
2679  
2680 0 ▶sub uploadLicenseBase64 {
Subroutine uploadLicenseBase64: not called CC=1 SCAR=6.9
Pod documented
2681 0 my ($self, $offset, $b64Data, %args) = validated_list(
2682 offset => {optional => 0,},
2683 b64Data => {optional => 0,},
2684 );
2685  
2686 0 my $response = $self->request(method => 'com.attocube.system.update.uploadLicenseBase64', params => [$offset, $b64Data]);
2687  
2688 0 $self->handle_error($response);
2689  
2690 0 return $response;
2691 }
2692  
2693  
2694  
2695  
2696 # (9)
2697 1 __PACKAGE__->meta()->make_immutable();
2698 1 1;
2699  
2700 __END__
« Moose/Instrument/Rigol_DSA815.pm ↑ Summary Moose/DataFolder.pm »