Available devices:
- Spectrum M4I 6631 X8; Tested 07/2021 The original library was written by Spectrum. The library header files (pyspcm.py, spcm_tools.py) should be added to the path directly in the module file:
sys.path.append('/path/to/python/header/of/Spectrum/library')
from pyspcm import *
from spcm_tools import *
Functions:
- awg_name()
- awg_setup()
- awg_update()
- awg_stop()
- awg_close()
- awg_pulse(*kargs)
- awg_pulse_sequence(kargs)
- awg_shift(*pulses)
- awg_increment(*pulses)
- awg_next_phase()
- awg_redefine_delta_phase(*, name, delta_phase)
- awg_redefine_phase(*, name, phase)
- awg_redefine_frequency(*, name, freq)
- awg_redefine_delta_start(*, name, delta_start)
- awg_redefine_length_increment(*, name, length_increment)
- awg_add_phase(*, name, add_phase)
- awg_reset()
- awg_pulse_reset(*pulses)
- awg_number_of_segments(*segments)
- awg_channel(*channel)
- awg_sample_rate(*s_rate)
- awg_clock_mode(*mode)
- awg_reference_clock(*ref_clock)
- awg_card_mode(*mode)
- awg_trigger_channel(*channel)
- awg_trigger_mode(*mode)
- awg_loop(*loop)
- awg_trigger_delay(*delay)
- awg_amplitude(*amplitude)
- awg_visualize()
- awg_pulse_list()
awg_name()
Arguments: none; Output: string.
The function returns device name.
awg_setup()
Arguments: none; Output: none.
Examples: awg_setup() writes all the settings into the AWG card.
This function writes all the settings modified by other functions to the AWG card. The function should be called only without arguments. One needs to initialize the settings before calling awg_update(). The default settings (if no other function was called) are the following: Sample clock is 1250 MHz; Clock mode is 'Internal'; Reference clock is 100 MHz; Card mode is 'Single'; Trigger channel is 'External'; Trigger mode is 'Positive'; Loop is infinity; Trigger delay is 0; Enabled channels are CH0 and CH1; Amplitude of CH0 is '600 mV'; Amplitude of CH1 is '533 mV'; Number of segments is 1; Card memory size is 64 samples; Buffer is empty.
awg_update()
Arguments: none; Output: none.
Examples: awg_update() runs the AWG card.
This function redefines the buffer (in case the function like awg_shift() has been called) and runs the AWG card. The function should be called only without arguments.
awg_stop()
Arguments: none; Output: none.
Example: awg_stop() stops the AWG card.
This function stops the AWG card and should be called only without arguments. If an infinite number of loops is defined by the awg_loop() function, the awg_stop() should always be called before redefining the buffer by the awg_update(). If a finite number of loops is defined, the card will stop automatically.
awg_close()
Arguments: none; Output: none.
Example: awg_close() closes the AWG driver.
This function closes the AWG driver and should be called only without arguments. The function should always be called at the end of an experimental script, since the AWG card driver is opened during whole experiment in order to achieve high rate of buffer updating. It is STRONGLY recommended to add a graceful closing of the card to the experimental scripts for the case of an abrupt termination of the process. As a possible option, one can use signal library:
import signal
import atomize.device_modules.Spectrum_M4I_6631_X8 as spectrum
awg = spectrum.Spectrum_M4I_6631_X8()
def cleanup(*args):
awg.awg_stop()
awg.awg_close()
sys.exit(0)
signal.singal(signal.SIGTERM, cleanup)
# AWG setup and experimental script
#
#
awg_pulse(*kagrs)
Arguments:
name = 'P0' specifies a name of the pulse
channel = 'CH0' specifies a channel string (['CH0','CH1'])
func = 'SINE' specifies a type of the function for a pulse (['SINE','GAUSS','SINC','BLANK','WURST','SECH/TANH'])
frequency = '200 MHz' specifies a frequency of the pulse (['0-280 MHz'])
phase = 0 specifies a phase of the pulse (in radians)
phase_list = [] specifies a phase cycling sequence (['+x', '-x', '+y', '-y'])
delta_phase = 0 specifies a phase increment of the pulse (in radians) for
'Single' and 'Multi' card mode
length = '16 ns' specifies a pulse length (['ns','us','ms'])
sigma = '16 ns' specifies a sigma value for GAUSS pulses (['ns','us','ms'])
length_increment = '0 ns' specifies a pulse length and sigma increment (['ns','us','ms'])
start = '0 ns' specifies a pulse start (['ns','us','ms']) for the 'Single
Joined' card mode
delta_start = '0 ns' specifies a pulse delta start (['ns','us','ms']) for the
'Single Joined' card mode
d_coef = 1 specifies an additional coefficient for adjusting pulse amplitudes
n = 1 specifies a special coefficient for WURST and SECH/TANH pulse determining the steepness
of the amplitude function
b = 0.02 specifies a special parameter for SECH/TANH pulse determining the truncation parameter in 1/ns
Output: none.
Example: awg_pulse(name = 'P0', channel = 'CH0', func = 'SINE', frequency =
'200 MHz', phase = pi/2, length = '40 ns') sets the 40 ns
length 200 MHz sine pulse with pi/2 phase.
The function sets a pulse with specified parameters for 'Single', 'Multi', and 'Single Joined' card mode. The AWG card buffer will be filled according to key arguments of the awg_pulse() function. The default argument is the following:
name = 'P0', channel = 'CH0', func = 'SINE', frequency = '200 MHz', phase = 0, delta_phase = 0, length = '16 ns', sigma = '0 ns', length_increment = '0 ns', start = '0 ns', delta_start = '0 ns', d_coef = 1, n = 1, phase_list = []. A channel should be one of the following ['CH0','CH1']. The frequency should be in MHz, the minimum value is 0 MHz, maximum is 280 MHz. For WURST and SECH/TANH pulse the frequency argument should be a tuple ('center_freq MHz', 'sweep_range MHz'), i.e. ('0 MHz', '100 MHz'). The scaling factor for length and sigma key arguments should be one of the following ['ns','us','ms']. The minimum available length and sigma of the pulse is 0 ns. The maximum available length and sigma of the pulse is 1900 ns. The available functions are ['SINE','GAUSS','SINC','BLANK','WURST','SECH/TANH']. For 'SINE', 'BLANK', 'WURST', and SECH/TANH function parameter sigma has no meaning. For 'GAUSS' function parameter sigma is a sigma of Gaussian. For 'SINC' function a combination of parameters length and sigma specifies the width of the SINC pulse, i.e. length = '40 ns' and sigma = '10 ns' means that SINC pulse will be from -4pi to +4pi. Function 'BLANK' is an empty pulse. Function 'WURST' is a wideband, uniform rate, smooth truncation pulse. Function 'SECH/TANH' is a wideband sech/tanh pulse. The length_increment keyword affects both the length and sigma of the pulse. The scaling factor for start and delta_start key arguments should be one of the following ['ns','us','ms']. The amplitudes of the AWG card channels will be divided by the value of the d_coef parameter, which ultimately determines the final amplitude of each pulse. The d_coef parameter should be more or equal to 1. The n parameter determines the steepness of the amplitude function of the WURST and SECH/TANH pulses. For other functions it has no meaning. The b parameter (in 1/ns) determines the truncation parameter of the SECH/TANH pulse. For other functions it has no meaning.
It is recommended to first define all pulses and then define the settings of the AWG card. To write the settings awg_setup() function should be called. To run specified pulses the awg_update() function should be called.
Key argument delta_phase define a pulse phase shift and has no meaning for 'Single Joined' card mode, since the phase of the pulse will be calculated automatically. Key arguments start and delta_start define a pulse position for 'Single Joined' card mode and has no meaning for 'Single' or 'Multi' card mode.
awg_pulse_sequence(kagrs)
Arguments:
pulse_type = ['SINE','GAUSS','SINC','BLANK','WURST','SECH/TANH']
pulse_start = [pulse 1 start in ns, pulse 2 start in ns, ...]
pulse_delta_start = [pulse 1 delta start in ns, pulse 2 delat start in ns, ...]
pulse_length = [pulse 1 length in ns, pulse 2 length in ns, ...]
pulse_phase = [pulse 1 phase, pulse 2 phase, ...], phase = ['+x','-x','+y','-y']
pulse_sigma = [pulse 1 sigma in ns, pulse 2 sigma in ns, ...]
pulse_frequency = [pulse 1 frequency in ns, pulse 2 frequency in ns, ...]
number_of_points = total number of points in a pulse sequence, taking into
account shifting of the pulses
loop = number of repetition of each point
rep_rate = repetition rate of the pulse sequence in Hz
n = [pulse 1 n parameter in arb. u., n parameter in arb. u., ...]
b = [pulse 1 b parameter in 1/ns, b parameter in 1/ns., ...]
Output: none.
Example: awg_pulse_sequence(pulse_type = ['SINE', 'GAUSS', 'SINE'],
pulse_start = [0, 160, 320], pulse_delta_start = [0, 0, 40],
pulse_length = [40, 120, 40], pulse_phase = ['+x', '+x', '+x'],
pulse_sigma = [40, 20, 40], pulse_frequency = [50, 200, 40], n = [20, 20, 20],
b = [0.02, 0.02, 0.02], number_of_points = 800, loop = 10, rep_rate = 10000) sets a pulse train of
three pulses with 10 kHz repetition rate and a third pulse shifting by 40 ns at
each of 800 points.
The function sets a pulse sequence with specified parameters for 'Sequence' card mode. The AWG card buffer will be filled according to key arguments of the awg_pulse_sequence() function. There is no default arguments, that is why all keywords must be specified. The minimum available length and sigma of the pulse is 0 ns. The maximum available length and sigma of the pulse is 1900 ns. For WURST and SECH/TANH pulses the frequency should be a tuple ('Center_freq MHz', 'sweep_freq MHz'), i.e. ('0 MHz', '100 MHz'). The available functions are ['SINE','GAUSS','SINC','BLANK','WURST','SECH/TANH']. For 'SINE', 'BLANK', 'WURST', and 'SECH/TANH' functions parameter sigma has no meaning. For 'GAUSS' function parameter sigma is a sigma of Gaussian. For 'SINC' function a combination of parameters length and sigma specifies the width of the SINC pulse in the same manner as the function awg_pulse(). Function 'BLANK' is an empty pulse. Function 'WURST' is a wideband, uniform rate, smooth truncation pulse. Function 'SECH/TANH' is a wideband sech/tanh pulse. The n parameter determines the steepness of the amplitude function of the WURST and SECH/TANH pulse. For other functions it has no meaning. The b parameter (in 1/ns) determines the truncation parameter of the SECH/TANH pulse. For other functions it has no meaning.
Please note, that each new call of the awg_pulse_sequence() function will redefine the pulse sequence. Pulse_start array must be sorted. A number of enabled channels should be defined before awg_pulse_sequence().
To write the settings awg_setup() function should be called. To run a specified pulse sequence the awg_update() function should be called. After going through all the buffer the AWG card will be stopped.
awg_shift(*pulses)
Arguments: none or string of pulse names; Output: none.
Example: awg_shift() shifts the phase of all currently active pulses by their respective delta_phase.
This function can be called with either no argument or with a list of comma separated pulse names (i.e. 'P0', 'P1'). In the 'Single' or 'Multi' card mode, if no argument is given the phase of all pulses that have a nonzero delta_phase and are currently active (do not have a length of 0) are shifted by their corresponding delta_phase value. If there is one argument or a list of comma separated pulse names only the phase of the listed pulses are changed.
In the 'Single Joined' card mode, the start values of the specified pulses are shifted by the defined delta_start values. Phases of the pulses are not changed, since they are calculated from the pulse positions automatically.
For the 'Sequence' card mode, the function has no meaning. Calling this function also resets the phase (if specified in the argument phase_list of the awg_pulse()) to the first phase in the phase_list.
awg_increment(*pulses)
Arguments: none or string of pulse names; Output: none.
Example: awg_increment('P0') increments the length and sigma of the pulse named 'P0' by the corresponding increment value.
This function can be called with either no argument or with a list of comma separated pulse names (i.e. 'P0', 'P1'). In the 'Single', 'Multi' or 'Single Joined' card mode, if no argument is given the lengths and sigmas of all pulses that have a nonzero increment and are currently active (do not have a length of 0) are incremented by their corresponding increment value. If there is one argument or a list of comma separated pulse names only the lengths and sigmas of the listed pulses are changed.
Please, note that the function always keeps the ratio length/sigma for GAUSS and SINC pulses. For instance, if length = '64 ns', sigma = '16 ns', and increment = '10 ns' after calling awg_increment() once, the parameters will be length = '104 ns', sigma = '26 ns', and increment = '10 ns'.
For the 'Sequence' card mode, the function has no meaning. Calling this function also resets the phase (if specified in the argument phase_list of the awg_pulse()) to the first phase in the phase_list.
awg_next_phase()
Arguments: none; Output: none.
Example: awg_next_phase() switches all declared pulses to the next phase.
This function switches all pulses to the next phase. The phase sequence is declared in the awg_pulse() in the form of phase_list = ['-y', '+x', '-x', '+x', ...]. Argument '+x' means that the phase of the pulse will be equal to 'phase' declared in the awg_pulse(). Argument '-x' corresponds to the phase shifted by pi radians in comparison with the 'phase' declared in the awg_pulse(). Argument '+y' corresponds to pi/2 radians shift. Argument '-y' - 3pi/2 radians. By repeatedly calling the function one can run through the complete list of phases for the pulses. The length of all phase lists specified for different pulses has to be the same. This function also immediately updates the AWG card buffer, as it is done by calling awg_update(). The first call of the function corresponds to the first phase in the phase_list argument of the awg_pulse().
awg_redefine_delta_phase(*, name, delta_phase)
Arguments: name = 'Pulse name', delta_phase = a new phase increment (in radians);
Output: none.
Example: awg_redefine_delta_phase(name = 'P0', delta_phase = pi) changes delta_phase setting of the 'P0' pulse to pi radians.
This function should be called with two keyword arguments, namely name and delta_phase. The first argument specifies the name of the pulse as a string. The second argument defines a new value of delta_phase in radians. The main purpose of the function is non-uniform sampling. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Single Joined' and Sequence' card mode, since phases of the pulses are calculated from the pulse positions automatically.
awg_redefine_phase(*, name, phase)
Arguments: name = 'Pulse name', phase = a new phase (in radians);
Output: none.
Example: awg_redefine_phase(name = 'P0', phase = pi) changes phase setting of the 'P0' pulse to pi radians.
This function should be called with two keyword arguments, namely name and phase. The first argument specifies the name of the pulse as a string. The second argument defines a new value of phase in radians. The main purpose of the function is phase cycling. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_redefine_frequency(*, name, freq)
Arguments: name = 'Pulse name', freq = a new frequency as a string ('100 MHz'; only in MHz);
Output: none.
Example: awg_redefine_frequency(name = 'P0', freq = '10 MHz') changes frequency setting of the 'P0' pulse to '10 MHz'.
This function should be called with two keyword arguments, namely name and frequency. The first argument specifies the name of the pulse as a string. The second argument defines a new value of frequency as a string, i.e. '100 MHz' or a list of string ('0 MHz', '100' MHz) for WURST and SECH/TANH pulses, see awg_pulse() for more details. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_redefine_delta_start(*, name, delta_start)
Arguments: name = 'Pulse name', delta_start = a new start time increment (in ns);
Output: none.
Example: awg_redefine_delta_start(name = 'P0', delta_start = '10 ns') changes delta_start setting of the 'P0' pulse to 10 ns.
This function should be called with two keyword arguments, namely name and delta_start. The first argument specifies the name of the pulse as a string. The second argument defines a new value of delta_start as a string in the format value + dimension (i.e. '10 ns'). The main purpose of the function is non-uniform sampling. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Single', 'Multi', and 'Sequence' card mode, since in these modes the start of the pulse is determined by the trigger event.
awg_redefine_length_increment(*, name, length_increment)
Arguments: name = 'Pulse name', length_increment = a new length increment (as a string);
Output: none.
Example: awg_redefine_length_increment(name = 'P2', length_increment = '10 ns') length increment setting of the 'P2' pulse to 10 ns.
This function should be called with two keyword arguments, namely name and length increment. The first argument specifies the name of the pulse as a string. The second argument defines a new value of length increment as a string in the format value + dimension (i.e. '100 ns'). The main purpose of the function is non-uniform sampling. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_add_phase(*, name, add_phase)
Arguments: name = 'Pulse name', add_phase = phase to add (in radians);
Output: none.
Example: awg_add_phase('P0', add_phase = pi) adds pi radians to the 'P0' pulse.
This function should be called with two keyword arguments, namely name and add_phase. The first argument specifies the name of the pulse as a string. The second argument defines a value of phase in radians to add. The main purpose of the function is phase cycling. Please note, that the function does not update the AWG card. awg_update() should be called to apply changes. The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_reset()
Arguments: none; Output: none.
Example: awg_reset() resets all the pulses to their initial state and updates the AWG card.
The function switches the AWG card back to the initial state in which it was in at the start of the experiment. This function can be called only without arguments. It includes the complete functionality of awg_pulse_reset(), but also immediately updates the AWG card as it is done by calling awg_update(). The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_pulse_reset(*pulses)
Arguments: none or string of pulse names; Output: none.
Example: awg_pulse_reset('P1') resets the pulse named 'P1' to its initial state.
The function switches the AWG card back to the initial state in which it was in at the start of the experiment. This function can be called with either no argument or with a list of comma separated pulse names. If no argument is given all pulses are reset to their initial states (including phases). If there is one argument or a list of comma separated pulse names only the listed pulses are returned back to the initial state. The function does not update the AWG card, if you want to reset all pulses and and also update the AWG card use the function awg_reset() instead. The function has no meaning for the 'Sequence' card mode. One should redefine all the sequence instead.
awg_number_of_segments(*segments)
Arguments: segments = integer (1-200); Output: integer.
Example: awg_number_of_segments(2) sets the number of segments to 2.
This function queries or sets the number of segments for 'Multi' card mode. In order to set the number of segments higher than 1, the AWG card should be in 'Multi' mode. If there is no argument the function will return the current number of segments. If there is an argument the specified number of segmetns will be set. The maximum available number of segments is 200. Default value is 1.
awg_channel(*channel)
Arguments: channel = string (['CH0','CH1']); Output: string.
Example: awg_channel('CH0', 'CH1') enables output from CH0 and CH1.
This function enables output from the specified channel or queries enabled channels. If there is no argument the function will return the currently enabled channels. If there is an argument the output from the specified channel will be enabled. The channel should be one of the following: ['CH0','CH1']. Default option is when both channels are enabled.
awg_sample_rate(*s_rate)
Arguments: s_rate = integer (50-1250 MHz); Output: integer.
Example: awg_sample_rate('1250') sets the AWG card sample rate to 1250 MHz.
This function queries or sets the AWG card sample rate (in MHz). If there is no argument the function will return the current sample rate. If there is an argument the specified sample rate will be set. The minimum available sample rate is 50 MHz. The maximum available sample rate is 1250 MHz. Default value is 1250 MHz. Please note that sample rate affects the delay between a trigger event and the AWG card output. The delay is determined in samples and can be found in the documentation.
awg_clock_mode(*mode)
Arguments: mode = string (['Internal','External']); Output: string.
Example: awg_clock_mode('Internal') sets the Internal AWG card clock mode.
This function queries or sets the AWG card clock mode. If there is no argument the function will return the current clock mode setting. If there is an argument the specified clock mode will be set. The clock mode should be one of the following: ['Internal','External']. According to the documentation, the internal sampling clock is generated in default mode by a programmable high precision quartz. The external clock input of the M3i/M4i series is fed through a PLL to the clock system. Therefore the input will act as a reference clock input thus allowing to either use a copy of the external clock or to generate any sampling clock within the allowed range from the reference clock. Due to the fact that the driver needs to know the external fed in frequency for an exact calculation of the sampling rate the reference clock should be set by the awg_reference_clock() function. Default setting is 'Internal'.
awg_reference_clock(*ref_clock)
Arguments: ref_clock = integer (10-1000 MHz); Output: integer.
Example: awg_reference_clock(100) sets the AWG card reference clock to 100 MHz.
This function queries or sets the AWG card reference clock (in MHz) for 'External' mode of the awg_clock_mode() function. If there is no argument the function will return the current reference clock. If there is an argument the specified reference clock will be set. The minimum available reference clock is 10 MHz. The maximum available reference clock is 1000 MHz. Default value is 100 MHz.
awg_card_mode(*mode)
Arguments: mode = string (['Single','Multi','Single Joined','Sequence']);
Output: string.
Example: awg_card_mode('Multi') sets the 'Multi' card mode.
This function queries or sets the AWG card mode. If there is no argument the function will return the current сard mode setting. If there is an argument the specified card mode will be set. The card mode should be one of the following: ['Single','Multi','Single Joined','Sequence']. According to the documentation, in the 'Single' mode a data from on-board memory will be replayed on every detected trigger event. The number of replays can be programmed by loops. 'Single Joined' mode is a modification of the 'Single' mode with a possibility of defining more than one pulse. In this mode, all defined pulses are combined into a sequence of pulses according to the their start position, determined by start keyword of the awg_pulse() function. Please note, that if two channels are enabled the pulse sequence for the second channel will be generated automatically using a phase shifting specified in the config file. In the 'Multi' mode every detected trigger event replays one data block (segment). Segmented memory is available only in 'External' trigger mode. In the 'Sequence' mode it is possible to define a whole pulse sequence by the awg_pulse_sequence() function. The pulse sequence has a specified number of points that is looped specified times. Switching between points is achieved using a trigger event. Please note, that if two channels are enabled the pulse sequence for the second channel will be generated automatically using a phase shifting specified in the config file. Default setting is 'Single'.
awg_trigger_channel(*channel)
Arguments: channel = string (['Software','External']); Output: string.
Example: awg_trigger_channel('Software') sets the 'Software' trigger.
This function queries or sets the AWG card trigger channel. If there is no argument the function will return the current trigger channel. If there is an argument the specified channel will be used as trigger. The channel should be one of the following: ['Software','External']. Trigger channel 'External' corresponds to 'Trg0' channel of the AWG card. Default setting is 'External'.
awg_trigger_mode(*mode)
Arguments: mode = string (['Positive','Negative','High','Low']); Output: string.
Example: awg_trigger_mode('Positive') sets the trigger detection for positive edges.
This function queries or sets the AWG card trigger mode. If there is no argument the function will return the current trigger mode. If there is an argument the specified trigger mode will be set. The trigger mode should be one of the following: ['Positive','Negative','High','Low']. Mode 'Positive' corresponds to trigger detection for positive edges (crossing level 0 from below to above). 'Negative' to trigger detection for negative edges (crossing level 0 from above to below). 'High' to trigger detection for HIGH levels (signal above level 0). 'Low' to trigger detection for LOW levels (signal below level 0). Default setting is 'Positive'.
awg_loop(*loop)
Arguments: loop = integer (0-100000); Output: integer.
Example: awg_loop(0) sets an infinite number of loops.
This function queries or sets the number of loops for 'Multi" or 'Single" card mode. If there is no argument the function will return the current number of loops. If there is an argument the specified number of loops will be set. The maximum available number of loops is 100000. A setting '0' means an infinite number of loops. Default value is 0.
awg_trigger_delay(*delay)
Arguments: delay = value + dimension (['ms','us','ns']); Output: string.
Example: awg_trigger_delay('51.2 ns') sets the trigger delay to 51.2 ns.
This function queries or sets the AWG card trigger delay. If there is no argument the function will return the current trigger delay. If there is an argument the specified trigger delay will be set. The delay step is 32 sample clock. If an input is not divisible by 32 sample clock the delay will be rounded and a warning message will be printed. Default value is '0 ns'.
awg_amplitude(*amplitude)
Arguments: amplitude = channel ['CH0','CH1'] + value (in mV); Output: string.
Example: awg_amplitude('CH0', '600', 'CH1', '600') sets the amplitude of CH0 to 600 mV
and the amplitude of CH1 to 600 mV.
This function queries or sets the amplitude of the specified channels (in mV). If there is one argument the function will return the amplitude of the specified channel. If there is an argument the specified amplitude (in mV) will be set for specified channel. The channel should be one of the following: ['CH0','CH1']. The minimum available amplitude is 80 mV. The maximum available amplitude is 2500 mV. Default amplitudes are 600 and 533 mV for 'CH0' and 'CH1', respectively.
awg_visualize()
Arguments: none; Output: string.
Example: awg_visualize() visualizes the AWG card buffer.
This function visualizes the AWG card buffer and can be called only without arguments. For the 'Single', 'Multi', and 'Single Joined' card mode, the complete buffer will be shown. For the 'Sequence' card mode only first two points will be shown. It is not recommended to use this function for very low repetition rate (less than 10 kHz) of awg_pulse_sequence() in the 'Sequence' card mode.
awg_pulse_list()
Arguments: none; Output: string.
Example: awg_pulse_list() returns the pulse sequence in a form of array.
This function can be called only without arguments and it returns the declared pulse sequence as an array.