Lab-Measurement

 view release on metacpan or  search on metacpan

lib/Lab/Moose/Instrument/ZI_HDAWG.pm  view on Meta::CPAN

sub get_features_serial {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
		read_length =>{isa=>'Int'}
	);
	my $read_length = delete $args{read_length};

	return $self->connection->get_value(
			path => $self->device()."/features/serial",
			type=>'B',
			read_length=>$read_length
		);
}



sub set_oscs_freq {
	my ($self, $value, %args) = validated_setter(
		\@_,
		osc=>{isa => 'Int'},
		value =>{isa =>'Num'},
	);my $osc=delete $args{osc};
	return $self->sync_set_value(
			path => $self->device()."/oscs/$osc/freq",
			type=>'D',
			value =>$value
		);
}

sub get_oscs_freq {
	my ($self, $value, %args) = validated_setter(
		\@_,
		osc=>{isa => 'Int'},
		value =>{isa =>'Num',optional=>1},
	);
	my $osc =delete $args{osc};
	return $self->get_value(
			path => $self->device()."/oscs/$osc/freq",
			type=>'D',
		);
}



sub get_oscs_freqawg {
	my ($self, $value, %args) = validated_setter(
		\@_,
		osc=>{isa => 'Int'},
		value =>{isa =>'Num',optional=>1},
	);
	my $osc =delete $args{osc};
	return $self->get_value(
			path => $self->device()."/oscs/$osc/freqawg",
			type=>'D',
		);
}



sub get_sigouts_busy {
	my ($self, $value, %args) = validated_setter(
		\@_,
		sigout=>{isa => 'Int'},
		value =>{isa =>'Num',optional=>1},
	);
	my $sigout =delete $args{sigout};
	return $self->get_value(
			path => $self->device()."/sigouts/$sigout/busy",
			type=>'I',
		);
}



sub set_sigouts_delay {
	my ($self, $value, %args) = validated_setter(
		\@_,
		sigout=>{isa => 'Int'},
		value =>{isa =>'Num'},
	);my $sigout=delete $args{sigout};
	return $self->sync_set_value(
			path => $self->device()."/sigouts/$sigout/delay",
			type=>'D',
			value =>$value
		);
}

sub get_sigouts_delay {
	my ($self, $value, %args) = validated_setter(
		\@_,
		sigout=>{isa => 'Int'},
		value =>{isa =>'Num',optional=>1},
	);
	my $sigout =delete $args{sigout};
	return $self->get_value(
			path => $self->device()."/sigouts/$sigout/delay",
			type=>'D',
		);
}



sub set_sigouts_direct {
	my ($self, $value, %args) = validated_setter(
		\@_,
		sigout=>{isa => 'Int'},
		value =>{isa =>'Num'},
	);my $sigout=delete $args{sigout};
	return $self->sync_set_value(
			path => $self->device()."/sigouts/$sigout/direct",
			type=>'I',
			value =>$value
		);
}

sub get_sigouts_direct {
	my ($self, $value, %args) = validated_setter(
		\@_,
		sigout=>{isa => 'Int'},
		value =>{isa =>'Num',optional=>1},
	);
	my $sigout =delete $args{sigout};
	return $self->get_value(
			path => $self->device()."/sigouts/$sigout/direct",
			type=>'I',
		);
}

lib/Lab/Moose/Instrument/ZI_HDAWG.pm  view on Meta::CPAN

# 	my ($self, $value, %args) = validated_setter(
# 		\@_,
# 		value =>{isa =>'Num',optional=>1},
# 	);
# 	return $self->get_value(
# 			path => $self->device()."/system/porttcp",
# 			type=>'I',
# 		);
# }

# =head3 /DEV/SYSTEM/PORTUDP 
# Properties: Read Write 
# Type: Integer (64 bit)(I)
# Unit: None

#  set_system_portudp(value => $value)
#  get_system_portudp()

# Returns the current UDP port used for communication to the dataserver.
# =cut 


# sub set_system_portudp {
# 	my ($self, $value, %args) = validated_setter(
# 		\@_,
# 		value =>{isa =>'Num'},
# 	);
# 	return $self->sync_set_value(
# 			path => $self->device()."/system/portudp",
# 			type=>'I',
# 			value =>$value
# 		);
# }

# sub get_system_portudp {
# 	my ($self, $value, %args) = validated_setter(
# 		\@_,
# 		value =>{isa =>'Num',optional=>1},
# 	);
# 	return $self->get_value(
# 			path => $self->device()."/system/portudp",
# 			type=>'I',
# 		);
# }



sub get_system_powerconfigdate {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
	);
	return $self->get_value(
			path => $self->device()."/system/powerconfigdate",
			type=>'I',
		);
}



sub get_system_preset_busy {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
	);
	return $self->get_value(
			path => $self->device()."/system/preset/busy",
			type=>'I',
		);
}



sub get_system_preset_error {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
	);
	return $self->get_value(
			path => $self->device()."/system/preset/error",
			type=>'I',
		);
}



sub set_system_preset_load {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num'},
	);
	return $self->sync_set_value(
			path => $self->device()."/system/preset/load",
			type=>'I',
			value =>$value
		);
}

sub get_system_preset_load {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
	);
	return $self->get_value(
			path => $self->device()."/system/preset/load",
			type=>'I',
		);
}



sub get_system_properties_freqresolution {
	my ($self, $value, %args) = validated_setter(
		\@_,
		value =>{isa =>'Num',optional=>1},
	);
	return $self->get_value(
			path => $self->device()."/system/properties/freqresolution",
			type=>'I',
		);
}



sub get_system_properties_freqscaling {
	my ($self, $value, %args) = validated_setter(
		\@_,

lib/Lab/Moose/Instrument/ZI_HDAWG.pm  view on Meta::CPAN

Properties: Write 
Type: String(B)
Unit: None

 set_features_code(value => $value)

Node providing a mechanism to write feature codes.
Could not test as no feature code had to be installed.

=head3 /DEV/FEATURES/DEVTYPE 
Properties: Read 
Type: String(B)
Unit: None

 get_features_devtype()

Returns the device type.

=head3 /DEV/FEATURES/OPTIONS 
Properties: Read 
Type: String(B)
Unit: None

 get_features_options()

Returns enabled options.

=head3 /DEV/FEATURES/SERIAL 
Properties: Read 
Type: String(B)
Unit: None

 get_features_serial()

Device serial number.

=head3 /DEV/OSCS/n/FREQ 
Properties: Read Write Setting 
Type: Double(D)
Unit: Hz

 set_oscs_freq(osc => $osc, value => $value)
 get_oscs_freq(osc => $osc)

Frequency control for each oscillator.

=head3 /DEV/OSCS/n/FREQAWG 
Properties: Read 
Type: Double(D)
Unit: Hz

 get_oscs_freqawg(osc => $osc)

Frequency as set by the AWG sequencer.

=head3 /DEV/SIGOUTS/n/BUSY 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_sigouts_busy(sigout => $sigout)

Boolean value indicating whether a blocking process is being executed on the device. For
example, locking to the external reference clock.

=head3 /DEV/SIGOUTS/n/DELAY 
Properties: Read Write Setting 
Type: Double(D)
Unit: s

 set_sigouts_delay(sigout => $sigout, value => $value)
 get_sigouts_delay(sigout => $sigout)

This value allows to delay the output of the signal in order to align waves.

=head3 /DEV/SIGOUTS/n/DIRECT 
Properties: Read Write Setting 
Type: Integer (enumerated)(I)
Unit: None

 set_sigouts_direct(sigout => $sigout, value => $value)
 get_sigouts_direct(sigout => $sigout)

Enables the direct output path. If enabled the signal will be fed directly from the DAC, reducing
delay and noise. However, the range will be fixed and offset is not available any more.
amplified_path0
Amplified Path
direct_path1
Direct Path

=head3 /DEV/SIGOUTS/n/FILTER 
Properties: Read Write Setting 
Type: Integer (64 bit)(I)
Unit: None

 set_sigouts_filter(sigout => $sigout, value => $value)
 get_sigouts_filter(sigout => $sigout)

Enables a filter stage in the amplified path.

=head3 /DEV/SIGOUTS/n/MAX 
Properties: Read 
Type: Double(D)
Unit: None

 get_sigouts_max(sigout => $sigout)

Maximum value transmitted to the DAC represented as a 16-bit integer in two's complement
format.

=head3 /DEV/SIGOUTS/n/MIN 
Properties: Read 
Type: Double(D)
Unit: None

 get_sigouts_min(sigout => $sigout)

Minimum value transmitted to the DAC represented as a 16-bit integer in twos complement
format.

=head3 /DEV/SIGOUTS/n/OFFSET 

lib/Lab/Moose/Instrument/ZI_HDAWG.pm  view on Meta::CPAN

Properties: Read Write Setting 
Type: Integer (enumerated)(I)
Unit: None

 set_system_awg_oscillatorcontrol(value => $value)
 get_system_awg_oscillatorcontrol()

Sets the oscillator control mode.
api0
Oscillators are controlled by the UI/API.
awg_sequencer1
Oscillators are controlled by the AWG sequencer.

=head3 /DEV/SYSTEM/BOARDREVISIONS/n 
Properties: Read 
Type: String(B)
Unit: None

 get_system_boardrevisions()

Hardware revision of the FPGA base board

=head3 /DEV/SYSTEM/CLOCKS/REFERENCECLOCK/FREQ 
Properties: Read 
Type: Double(D)
Unit: Hz

 get_system_clocks_referenceclock_freq()

Indicates the frequency of the reference clock.

=head3 /DEV/SYSTEM/CLOCKS/REFERENCECLOCK/SOURCE 
Properties: Read Write Setting 
Type: Integer (enumerated)(I)
Unit: None

 set_system_clocks_referenceclock_source(value => $value)
 get_system_clocks_referenceclock_source()

Reference clock source.
internal0
The internal clock is used as the frequency and time base reference.
external1
An external clock is intended to be used as the frequency and time base reference.
Provide a clean and stable 10MHz or 100MHz reference to the appropriate back panel
connector.
2zsync
A ZSync clock is intended to be used as the frequency and time base reference.

=head3 /DEV/SYSTEM/CLOCKS/REFERENCECLOCK/STATUS 
Properties: Read 
Type: Integer (enumerated)(I)
Unit: None

 get_system_clocks_referenceclock_status()

Status of the reference clock.
0Reference clock has been locked on.
1There was an error locking onto the reference clock signal. After an error the source
is automatically switched back to internal reference clock.
2The device is busy trying to lock onto the reference clock signal.

=head3 /DEV/SYSTEM/CLOCKS/SAMPLECLOCK/FREQ 
Properties: Read Write Setting 
Type: Double(D)
Unit: Hz

 set_system_clocks_sampleclock_freq(value => $value)
 get_system_clocks_sampleclock_freq()

Indicates the frequency of the sample clock. Changing the sample clock temporarily interrupts
the AWG sequencers.

=head3 /DEV/SYSTEM/CLOCKS/SAMPLECLOCK/OUTPUTENABLE 
Properties: Read Write Setting 
Type: Integer (enumerated)(I)
Unit: None

 set_system_clocks_sampleclock_outputenable(value => $value)
 get_system_clocks_sampleclock_outputenable()

Enable the sampleclock output.
on0
Sample clock output is disabled.
off1
Sample clock output is enabled.

=head3 /DEV/SYSTEM/CLOCKS/SAMPLECLOCK/STATUS 
Properties: Read 
Type: Integer (enumerated)(I)
Unit: None

 get_system_clocks_sampleclock_status()

Status of the sample clock.
0Sample clock signal is valid and has been locked on.
1There was an error adjusting the sample clock.
2The device is busy trying to adjust the sample clock.

=head3 /DEV/SYSTEM/FPGAREVISION 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_fpgarevision()

HDL firmware revision.

=head3 /DEV/SYSTEM/FWLOGENABLE 
Properties: Read Write 
Type: Integer (64 bit)(I)
Unit: None

 set_system_fwlogenable(value => $value)
 get_system_fwlogenable()

Enables logging to the fwlog node.

=head3 /DEV/SYSTEM/FWREVISION 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_fwrevision()

Revision of the device-internal controller software.

=head3 /DEV/SYSTEM/FX3REVISION 
Properties: Read 
Type: String(B)
Unit: None

 get_system_fx3revision()

USB firmware revision.

=head3 /DEV/SYSTEM/IDENTIFY 
Properties: Read Write 
Type: Integer (64 bit)(I)
Unit: None

 set_system_identify(value => $value)
 get_system_identify()

Setting this node to 1 will cause the device to blink the power led for a few seconds.

=head3 /DEV/SYSTEM/INTERFACESPEED 
Properties: Read 
Type: String(B)
Unit: None

 get_system_interfacespeed()

Speed of the currently active interface (USB only).

=head3 /DEV/SYSTEM/KERNELTYPE 
Properties: Read 
Type: String(B)
Unit: None

 get_system_kerneltype()

Returns the type of the data server kernel (mdk or hpk).

=head3 /DEV/SYSTEM/OWNER 
Properties: Read 
Type: String(B)
Unit: None

 get_system_owner()

Returns the current owner of the device (IP).

=head3 /DEV/SYSTEM/POWERCONFIGDATE 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_powerconfigdate()

Contains the date of power configuration (format is: (year << 16) | (month << 8) | day)

=head3 /DEV/SYSTEM/PRESET/BUSY 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_preset_busy()

Indicates if presets are currently loaded.

=head3 /DEV/SYSTEM/PRESET/ERROR 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_preset_error()

Indicates if the last operation was illegal. Successful: 0, Error: 1.

=head3 /DEV/SYSTEM/PRESET/LOAD 
Properties: Read Write 
Type: Integer (64 bit)(I)
Unit: None

 set_system_preset_load(value => $value)
 get_system_preset_load()

Load the selected preset.

=head3 /DEV/SYSTEM/PROPERTIES/FREQRESOLUTION 
Properties: Read 
Type: Integer (64 bit)(I)
Unit: None

 get_system_properties_freqresolution()

The number of bits used to represent a frequency.

=head3 /DEV/SYSTEM/PROPERTIES/FREQSCALING 
Properties: Read 
Type: Double(D)
Unit: None

 get_system_properties_freqscaling()

The scale factor to use to convert a frequency represented as a freqresolution-bit integer to a
floating point value.

=head3 /DEV/SYSTEM/PROPERTIES/MAXFREQ 
Properties: Read 
Type: Double(D)
Unit: None

 get_system_properties_maxfreq()

The maximum oscillator frequency that can be set.

=head3 /DEV/SYSTEM/PROPERTIES/MAXTIMECONSTANT 
Properties: Read 
Type: Double(D)
Unit: s

 get_system_properties_maxtimeconstant()

The maximum demodulator time constant that can be set. Only relevant for lock-in amplifiers.

=head3 /DEV/SYSTEM/PROPERTIES/MINFREQ 



( run in 2.474 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )