| 1 | package Lab::Instrument::HP83732A; | ||||||||||||||||||||
| 2 | #ABSTRACT: HP 83732A Series Synthesized Signal Generator | ||||||||||||||||||||
| 3 | 1 | $Lab::Instrument::HP83732A::VERSION = '3.881'; | |||||||||||||||||||
| 4 | 1 | ▶ | use v5.20; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | ▶ | use Lab::Instrument; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 1 | ▶ | use Time::HiRes qw (usleep); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 1 | our @ISA = ("Lab::Instrument"); | |||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 1 | our %fields = ( | |||||||||||||||||||
| 13 | supported_connections => ['GPIB'], | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | # default settings for the supported connections | ||||||||||||||||||||
| 16 | connection_settings => { | ||||||||||||||||||||
| 17 | gpib_board => 0, | ||||||||||||||||||||
| 18 | gpib_address => undef, | ||||||||||||||||||||
| 19 | }, | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | device_settings => {}, | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | ); | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | sub new { | ||||||||||||||||||||
| 26 | 0 | ▶ | my $proto = shift; | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 27 | 0 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 28 | 0 | my $self = $class->SUPER::new(@_); | |||||||||||||||||||
| 29 | 0 | $self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__); | |||||||||||||||||||
| 30 | 0 | return $self; | |||||||||||||||||||
| 31 | } | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | sub id { | ||||||||||||||||||||
| 34 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 35 | 0 | return $self->query('*IDN?'); | |||||||||||||||||||
| 36 | } | ||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | sub reset { | ||||||||||||||||||||
| 39 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
reset: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 40 | 0 | $self->write('*RST'); | |||||||||||||||||||
| 41 | } | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | sub set_frq { | ||||||||||||||||||||
| 44 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
set_frq: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 45 | 0 | my ($freq) = $self->_check_args( \@_, ['value'] ); | |||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | #my $freq = shift; | ||||||||||||||||||||
| 48 | 0 | $self->set_cw($freq); | |||||||||||||||||||
| 49 | |||||||||||||||||||||
| 50 | } | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | sub set_cw { | ||||||||||||||||||||
| 53 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
set_cw: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 54 | 0 | my $freq = shift; | |||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | 0 | $self->write("FREQuency:CW $freq Hz"); | |||||||||||||||||||
| 57 | } | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | sub get_frq { | ||||||||||||||||||||
| 60 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
get_frq: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | 0 | my $freq = $self->query("FREQuency:CW?"); | |||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 0 | return $freq; | |||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | } | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | sub set_power { | ||||||||||||||||||||
| 69 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
set_power: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 70 | 0 | my ($power) = $self->_check_args( \@_, ['value'] ); | |||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | 0 | $self->write("POWer:LEVel $power DBM"); | |||||||||||||||||||
| 73 | } | ||||||||||||||||||||
| 74 | |||||||||||||||||||||
| 75 | sub get_power { | ||||||||||||||||||||
| 76 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
get_power: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 77 | |||||||||||||||||||||
| 78 | 0 | return $self->query("POWer:LEVel?"); | |||||||||||||||||||
| 79 | } | ||||||||||||||||||||
| 80 | |||||||||||||||||||||
| 81 | sub power_on { | ||||||||||||||||||||
| 82 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
power_on: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 83 | 0 | $self->write('OUTP:STATe ON'); | |||||||||||||||||||
| 84 | } | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | sub power_off { | ||||||||||||||||||||
| 87 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
power_off: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 88 | 0 | $self->write('OUTP:STATe OFF'); | |||||||||||||||||||
| 89 | } | ||||||||||||||||||||
| 90 | |||||||||||||||||||||
| 91 | sub selftest { | ||||||||||||||||||||
| 92 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
selftest: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 93 | 0 | return $self->query("*TST?"); | |||||||||||||||||||
| 94 | } | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | sub display_on { | ||||||||||||||||||||
| 97 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
display_on: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 98 | 0 | $self->write("DISPlay ON"); | |||||||||||||||||||
| 99 | } | ||||||||||||||||||||
| 100 | |||||||||||||||||||||
| 101 | sub display_off { | ||||||||||||||||||||
| 102 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
display_off: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 103 | 0 | $self->write("DISPlay OFF"); | |||||||||||||||||||
| 104 | } | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | sub enable_external_am { | ||||||||||||||||||||
| 107 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
enable_external_am: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 108 | 0 | $self->write("AM:DEPTh MAX"); | |||||||||||||||||||
| 109 | 0 | $self->write("AM:SENSitivity 70PCT/VOLT"); | |||||||||||||||||||
| 110 | 0 | $self->write("AM:TYPE LINear"); | |||||||||||||||||||
| 111 | 0 | $self->write("AM:STATe ON"); | |||||||||||||||||||
| 112 | } | ||||||||||||||||||||
| 113 | |||||||||||||||||||||
| 114 | sub disable_external_am { | ||||||||||||||||||||
| 115 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
disable_external_am: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 116 | 0 | $self->write("AM:STATe OFF"); | |||||||||||||||||||
| 117 | } | ||||||||||||||||||||
| 118 | |||||||||||||||||||||
| 119 | 1 | 1; | |||||||||||||||||||
| 120 | |||||||||||||||||||||
| 121 | __END__ | ||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | =pod | ||||||||||||||||||||
| 124 | |||||||||||||||||||||
| 125 | =encoding utf-8 | ||||||||||||||||||||
| 126 | |||||||||||||||||||||
| 127 | =head1 NAME | ||||||||||||||||||||
| 128 | |||||||||||||||||||||
| 129 | Lab::Instrument::HP83732A - HP 83732A Series Synthesized Signal Generator | ||||||||||||||||||||
| 130 | |||||||||||||||||||||
| 131 | =head1 VERSION | ||||||||||||||||||||
| 132 | |||||||||||||||||||||
| 133 | version 3.881 | ||||||||||||||||||||
| 134 | |||||||||||||||||||||
| 135 | =head1 CAVEATS/BUGS | ||||||||||||||||||||
| 136 | |||||||||||||||||||||
| 137 | probably many | ||||||||||||||||||||
| 138 | |||||||||||||||||||||
| 139 | =head1 SEE ALSO | ||||||||||||||||||||
| 140 | |||||||||||||||||||||
| 141 | =over 4 | ||||||||||||||||||||
| 142 | |||||||||||||||||||||
| 143 | =item * Lab::Instrument | ||||||||||||||||||||
| 144 | |||||||||||||||||||||
| 145 | =back | ||||||||||||||||||||
| 146 | |||||||||||||||||||||
| 147 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 148 | |||||||||||||||||||||
| 149 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||||||||||||||||||||
| 150 | |||||||||||||||||||||
| 151 | Copyright 2011 Andreas K. Huettel, Florian Olbrich | ||||||||||||||||||||
| 152 | 2012 Hermann Kraus | ||||||||||||||||||||
| 153 | 2013 Alois Dirnaichner, Andreas K. Huettel | ||||||||||||||||||||
| 154 | 2016 Simon Reinhardt | ||||||||||||||||||||
| 155 | 2017 Andreas K. Huettel | ||||||||||||||||||||
| 156 | 2020 Andreas K. Huettel | ||||||||||||||||||||
| 157 | |||||||||||||||||||||
| 158 | |||||||||||||||||||||
| 159 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 160 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 161 | |||||||||||||||||||||
| 162 | =cut | ||||||||||||||||||||