| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Lab::Moose::Instrument::RS_ZNL; | 
| 2 |  |  |  |  |  |  | $Lab::Moose::Instrument::RS_ZNL::VERSION = '3.880'; | 
| 3 |  |  |  |  |  |  | #ABSTRACT: Rohde & Schwarz ZNL Vector Network Analyzer | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 2322 | use v5.20; | 
|  | 1 |  |  |  |  | 4 |  | 
| 6 | 1 |  |  | 1 |  | 8 | use Carp 'croak'; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 68 |  | 
| 7 | 1 |  |  | 1 |  | 6 | use Moose; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 8 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | extends 'Lab::Moose::Instrument::RS_ZVA'; | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | # does not support USBTMC | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | # The ZNL only supports SWAP byte order. It does not have a FORMAT:BORDER command. | 
| 16 |  |  |  |  |  |  | sub format_border_query() { | 
| 17 | 0 |  |  | 0 | 0 |  | return 'SWAP'; | 
| 18 |  |  |  |  |  |  | } | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | sub format_border { | 
| 21 | 0 |  |  | 0 | 0 |  | my ( $self, $value, %args ) = validated_setter( \@_ ); | 
| 22 |  |  |  |  |  |  |  | 
| 23 | 0 | 0 |  |  |  |  | if ( $value ne 'SWAP' ) { | 
| 24 | 0 |  |  |  |  |  | croak 'The R&S ZNL only suppots SWAP byte order.'; | 
| 25 |  |  |  |  |  |  | } | 
| 26 | 0 |  |  |  |  |  | return $self->cached_format_border($value); | 
| 27 |  |  |  |  |  |  | } | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | __PACKAGE__->meta->make_immutable(); | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | 1; | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | __END__ | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =pod | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | =encoding UTF-8 | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | =head1 NAME | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | Lab::Moose::Instrument::RS_ZNL - Rohde & Schwarz ZNL Vector Network Analyzer | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =head1 VERSION | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | version 3.880 | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  | my $data = $znl->sparam_sweep(timeout => 10); | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | =head1 METHODS | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | See L<Lab::Moose::Instrument::VNASweep> for the high-level C<sparam_sweep> and | 
| 54 |  |  |  |  |  |  | C<sparam_catalog> methods. | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | Copyright 2020       Simon Reinhardt | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | This is free software; you can redistribute it and/or modify it under | 
| 64 |  |  |  |  |  |  | the same terms as the Perl 5 programming language system itself. | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =cut |