from setup_control.snippets import sweep_parameter
from setup_control.experiment_wrapper import set_freq_synth_frequency
import numpy as np


"""
Uses a time constant of 100ms, 12dB/oct, 10mV sensitivity, load time of 4s, lock in time of 3s. Sweeps from 12.5GHz to 16.5GHz in 25MHz steps. Returns values in volts.
"""

for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency, np.linspace(12.5, 16.5, num=160, endpoint=True), time_constant=100,  sensitivity=10, load_time=4, lock_in_time=3, multiplier=1,
                    save_path='no_horn_with_vdi_with_waveguide_sweep_data_folder/sweep_num_' + str(i))
lock_time = 0
multiplier = 18

# Get name of script
script_name = str(__file__)
script_name = script_name[:script_name.find('.py')]

# Start tests
wait_for_user_confirmation(
    'please ensure that nothing is between the two mirrors')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(freq_start, freq_end, num=num_steps,
                            endpoint=True),
                time_constant=time_const,
                chopper_frequency=chop_freq,
                sensitivity=sens,
                load_time=load_time,
                lock_in_time=lock_time,
                multiplier=multiplier,
                save_path=script_name + '/no_filter0')

wait_for_user_confirmation(
    'please place the sample holder between the two mirrors')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(freq_start, freq_end, num=num_steps,
                            endpoint=True),
                time_constant=time_const,
                chopper_frequency=chop_freq,
                sensitivity=sens,
                load_time=load_time,
Example #3
0
lock_time = 0
multiplier = 18

# Get name of script
script_name = str(__file__)
script_name = script_name[:script_name.find('.py')]

# Start tests
wait_for_user_confirmation(
    'please ensure that nothing is between the two mirrors')

sweep_parameter(set_freq_synth_frequency,
                freqs,
                time_constant=time_const,
                chopper_frequency=chop_freq,
                sensitivity=sens,
                load_time=load_time,
                lock_in_time=lock_time,
                multiplier=multiplier,
                save_path=script_name + '/no_sample0')

wait_for_user_confirmation('please place the sample between the two mirrors')

sweep_parameter(set_freq_synth_frequency,
                freqs,
                time_constant=time_const,
                chopper_frequency=chop_freq,
                sensitivity=sens,
                load_time=load_time,
                lock_in_time=lock_time,
                multiplier=multiplier,
        s = raw_input('continue? y/[n]\n')
        if s.lower() == 'y':
            print 'continuing...'
            break
        elif s.lower() == 'n':
            print 'exiting...'
            sys.exit(0)


wait_for_user_confirmation(
    'please ensure that no filter is between the two antenna horns')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(12.5, 16.5, num=160, endpoint=True),
                time_constant=1000,
                sensitivity=0.2,
                load_time=4,
                lock_in_time=4,
                multiplier=1,
                save_path='basic_filter_test1/no_filter')

wait_for_user_confirmation(
    'please place the filter between the two antenna horns')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(12.5, 16.5, num=160, endpoint=True),
                time_constant=1000,
                sensitivity=0.2,
                load_time=4,
                lock_in_time=4,
                multiplier=1,
                save_path='basic_filter_test1/with_filter')
from setup_control.snippets import sweep_parameter
from setup_control.experiment_wrapper import set_freq_synth_frequency
import numpy as np
"""
Horns are 98.80mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0s. Sweeps from 225GHz to 275GHz (horn output frequencies) in 250MHz steps. Returns values in volts.
"""
for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(225.0, 275.0, num=200, endpoint=True),
                    time_constant=100,
                    sensitivity=0.2,
                    load_time=4,
                    lock_in_time=0,
                    multiplier=18,
                    save_path='sweep_tuning_test4/high_time_const_sweep' +
                    str(i))
"""
Horns are 98.80mm apart.

Uses a time constant of 30ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0s. Sweeps from 225GHz to 275GHz (horn output frequencies) in 250MHz steps. Returns values in volts.
"""
for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(225.0, 275.0, num=200, endpoint=True),
                    time_constant=30,
                    sensitivity=0.2,
                    load_time=4,
                    lock_in_time=0,
                    multiplier=18,
from setup_control import snippets, experiment_wrapper
import numpy as np

for power in np.arange(8.0, 15.0, 0.5):
    if power >= 12.0:
        snippets.sweep_parameter(
            experiment_wrapper.set_freq_synth_frequency,
            np.arange(12.5, 16.5, 0.1),
            power=power,
            time_constant=100,
            sensitivity=50,
            load_time=1.5,
            lock_in_time=0.1,
            multiplier=1,
            save_path='no_horn_with_vdi_power_sweep_data_folder/power_' +
            str(power))
    snippets.sweep_parameter(
        experiment_wrapper.set_freq_synth_frequency,
        np.arange(12.5, 16.5, 0.1),
        power=power,
        time_constant=100,
        sensitivity=10,
        load_time=1.5,
        lock_in_time=0.1,
        multiplier=1,
        save_path='no_horn_with_vdi_power_sweep_data_folder/power_' +
        str(power))
"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0s. Sweeps from 225GHz to 300GHz in 500MHz steps. Returns values in volts.

Takes two sweeps, one with filter and one without
"""


def wait_for_user_confirmation(instruction):
    print instruction
    while True:
        s = raw_input('continue? y/[n]\n')
        if s.lower() == 'y':
            print 'continuing...'
            break
        elif s.lower() == 'n':
            print 'exiting...'
            sys.exit(0)

wait_for_user_confirmation('please ensure that no filter is between the two antenna horns')

sweep_parameter(set_freq_synth_frequency, np.linspace(225, 300, num=150, endpoint=True), time_constant=100, chopper_frequency=1, sensitivity=0.2, load_time=4, lock_in_time=0, multiplier=18,
                    save_path='styrofoam_filter_test2/no_filter')

wait_for_user_confirmation('please place the filter between the two antenna horns')

sweep_parameter(set_freq_synth_frequency, np.linspace(225, 300, num=150, endpoint=True), time_constant=100, chopper_frequency=1, sensitivity=0.2, load_time=4, lock_in_time=0, multiplier=18,
                    save_path='styrofoam_filter_test2/with_filter')
Example #8
0
from setup_control.snippets import sweep_parameter
from setup_control.experiment_wrapper import set_freq_synth_frequency
import numpy as np

"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0s. Sweeps from 225GHz to 300GHz in 500MHz steps. Returns values in volts.

Takes two sweeps at 5kHz, two at 2kHz, and two at 1kHz
"""

for i in range(0, 2):
    sweep_parameter(set_freq_synth_frequency, np.linspace(225, 300, num=150, endpoint=True), time_constant=100, chopper_frequency=5, sensitivity=0.2, load_time=4, lock_in_time=0, multiplier=18,
                    save_path='sweep_tuning_test3/5kHz_sweep_num_' + str(i))

for i in range(0, 2):
    sweep_parameter(set_freq_synth_frequency, np.linspace(225, 300, num=150, endpoint=True), time_constant=100, chopper_frequency=2, sensitivity=0.2, load_time=4, lock_in_time=0, multiplier=18,
                    save_path='sweep_tuning_test3/2kHz_sweep_num_' + str(i))

for i in range(0, 2):
    sweep_parameter(set_freq_synth_frequency, np.linspace(225, 300, num=150, endpoint=True), time_constant=100, chopper_frequency=1, sensitivity=0.2, load_time=4, lock_in_time=0, multiplier=18,
                    save_path='sweep_tuning_test3/1kHz_sweep_num_' + str(i))
Example #9
0
        s = raw_input('continue? y/[n]\n')
        if s.lower() == 'y':
            print 'continuing...'
            break
        elif s.lower() == 'n':
            print 'exiting...'
            sys.exit(0)


wait_for_user_confirmation(
    'please ensure that no filter is between the two antenna horns')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(225, 300, num=150, endpoint=True),
                time_constant=100,
                sensitivity=0.2,
                load_time=4,
                lock_in_time=0,
                multiplier=18,
                save_path='zotefoam_window_test1/no_filter')

wait_for_user_confirmation(
    'please place the filter between the two antenna horns')

sweep_parameter(set_freq_synth_frequency,
                np.linspace(225, 300, num=150, endpoint=True),
                time_constant=100,
                sensitivity=0.2,
                load_time=4,
                lock_in_time=0,
                multiplier=18,
                save_path='zotefoam_window_test1/with_filter_sweep1')
Example #10
0
from setup_control.snippets import sweep_parameter
from setup_control.experiment_wrapper import set_freq_synth_frequency
import numpy as np

"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 1.5s. Sweeps from 12.5GHz to 16.5GHz in 25MHz steps. Returns values in volts.
"""

for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency, np.linspace(12.5, 16.5, num=160, endpoint=True), time_constant=100,  sensitivity=0.2, load_time=4, lock_in_time=1.5, multiplier=1,
                    save_path='sweep_tuning_test1/long_lock_in_time_sweep_num_' + str(i))


"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0.2s. Sweeps from 12.5GHz to 16.5GHz in 25MHz steps. Returns values in volts.
"""

for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency, np.linspace(12.5, 16.5, num=160, endpoint=True), time_constant=100,  sensitivity=0.2, load_time=4, lock_in_time=0.2, multiplier=1,
                    save_path='sweep_tuning_test1/short_lock_in_time_sweep_num_' + str(i))
Example #11
0
from setup_control.snippets import sweep_parameter
from setup_control.experiment_wrapper import set_freq_synth_frequency
import numpy as np
"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0.2s. Sweeps from 225GHz to 300GHz in 500MHz steps. Returns values in volts.
"""

for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(225, 300, num=150, endpoint=True),
                    time_constant=100,
                    sensitivity=0.2,
                    load_time=4,
                    lock_in_time=0.2,
                    multiplier=18,
                    save_path='sweep_tuning_test2/200ms_sweep_num_' + str(i))
"""
Horns are 98.67mm apart.

Uses a time constant of 100ms, 12dB/oct, 0.2mV sensitivity, load time of 4s, lock in time of 0.1s. Sweeps from 225GHz to 300GHz in 500MHz steps. Returns values in volts.
"""

for i in range(0, 3):
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(225, 300, num=150, endpoint=True),
                    time_constant=100,
                    sensitivity=0.2,
                    load_time=4,
                    lock_in_time=0.1,
Example #12
0
multiplier = 18

powers = [15.0, 12.0, 9.0]

# Start tests
wait_for_user_confirmation(
    'please ensure that no filter is between the two antenna horns')

for p in powers:
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(freq_start,
                                freq_end,
                                num=num_steps,
                                endpoint=True),
                    power=p,
                    time_constant=time_const,
                    chopper_frequency=chop_freq,
                    sensitivity=sens,
                    load_time=load_time,
                    lock_in_time=lock_time,
                    multiplier=multiplier,
                    save_path='alumina_filter_test4/no_filter_power' + str(p) +
                    '_0')

wait_for_user_confirmation(
    'please place the filter between the two antenna horns')

for p in powers:
    sweep_parameter(set_freq_synth_frequency,
                    np.linspace(freq_start,
                                freq_end,
                                num=num_steps,