Skip to content

Main window

OE9NAT edited this page Apr 29, 2022 · 23 revisions

The Main window is subdivided in different frames according to the different functional categories. All Frames are dynamically resized depending on the size of the window. main window


Measurement Settings

In this frame the desired frequency band to be scanned and the step size are defined. With the Setup described the minimum frequency is defined as 30 MHz and the maximum frequency is defined as 300 MHz. For single frequency NQR/NMR measurements the frequency is specified in the field 'start frequency'. In addition, the frequency step must be set to less than two.

START frequency

The start frequency defines the first frequency of the spectrum. The unit of the input value happens in mega heart (MHz).

END frequency

The end frequency defines the last frequency of the spectrum. The unit of the input value happens in mega heart (MHz).

frequency steps

'frequency steps' defines the number of points of the spectrum. The span will be linearly spaced between the start and end frequency. It will be entered in positive integer number (uint16).

averages

'averages' is the number of repetitions for averaging the signal. It will be entered in positive integer number (uint16).

SAVE all

'SAVE all' saves the sequence parameters entered in the main window to the file setting_last_run.cfg .

load saved settings

'load saved settings' will prompt a file handler window for selecting a saved setting.cfg file from a previous experiment. After selection and confirmation the file is loaded and the respective parameters are set.


Settings for Tuning & Matching

In this Frame the parameters for automatic tuning and matching of electronically tuneable probeheads are defined. As the hardware is still partially under development, the software still contains some placeholders for future adaptations. The voltages refer to the reverse bias of varactor diodes in the probeheads for controlling tuning and matching when varying the frequency.

Tuning U_max

Maximum tuning voltage at the end of the sweep. Sweeping will always be started from 0V.

Matching U_max

Maximum matching voltage at the end of the sweep. Sweeping will always be started from 0V.

Number of freq

The step size of the frequency. Must be selected sufficiently enough for an detaild measurment.

LUT Size

Is the look up table size of the resolution for the voltages of the tune and match file matrix. It generates the matrix from 0 volts up to the sepified maximum voltages to be set for tune and match circuit.

Read T/M_file

This butten will prompt a file handler window for selecting a tune_match.csv file and load the respective parameters.

Send to MC

This button initializes the transmission of the tuning and matching parameters to the Microcontroller over a serial port. While the ongoing Measurement the represented values will be set on the matching network. The MC will control the respective voltages multi frequency measurment.

MC COMport

Used to set the communication port for the microcontroller. The respective port name must be set according to the availablity from the system. A change of the controller may also require a change of the port.


info box

In this frame all vital informations are summarized. These informationa are updated in a iterative routine from the set parameters in the system files to keep the presented information up to date.

Experiment File structure

All data, settings and logs concerning a particular experiment are stored according to a defined file structure within individual folders, one for for each experiment. Each experiment folder is organized in subfolders called Sample, Experiment and Data. For more information go to set Filehandler

Pulse info

This register presents a short summary of the Sequence settings.

set FID sequence

This will launch the set Sequence Window. The FID Sequence consist of one pulse and all of its trailing parameters. This trailing parameters are for example the amplitude but also can be hardware specifi amplification values.

set Spin-Echo sequence

This will launch the set Sequence Window. The Spin-Echo Sequence consist of two pulses and all of its trailing parameters.

set Comp_Echo phase sequence

This will launch the set Sequence Window. The composite Echo Sequence consist of two pulses and all of its trailing parameters.

own sequence

This will launch the set Sequence Window. With this Sequence a arbitrary number of now limited to ten pulses and all of its trailing parameters can be generated.


Buttons

Load last run

Load all parameters from settings_last_run.cfg. This can be helpful if the settings of the last experiment should be restored.

RUN

This button will call the function def: send_sdr() in the module run_external. With the set Parameters from it will select what sequence it will run. ##?? sentence reads horrible - what does it mean ? (HS) ??## After completion of the measurement the data will be plotted in the main window.

File structure

This button calls the set Filehanlder for updating the experiment file structure.

PLOT

This calls a new window for plotting the acquired data. !! room for expansion !! More development needs to be invested

Save & Close

This button will save all entered parameters and close all windows. This can be helpful if you close the Program and later reload all saved parameters with load last run.

Test

A blank button for testing and extension of the program. This can also be used for debugging.


Plot

In the right bottem corner, the Plot shows the data what is acquirer in the last experiment. With the toolbar a quick data analysis will be possible.

Time domain signal

The time domain signal will be taken from the .../prgram/scan_data_time.csv file and plot the time course of the NMR/NQRsignal.

Frequency domain singal

The frequency domain singal will take the .../prgram/scan_data_freq.csv file and plot the spectrum of the NMR/NQR signal.

auto-update plot

This button will start an automatic timed iteration of loading the plotted information from the files.


Debug Logger

This frame can be scrolled. Information of the tasks during a runtime of a sequence is presented. Additionally also a logfile will be written in the background for later debugging. This File can also be used to check if all parameters have been set correctly.

Introduction

  • Pull repo to local PC
  • open cmd
  • run start.py
  • GUI should start
  • set experiment file structure
  • add comments to the Experiment and Data
  • "save and close"
  • select type of sequence
  • save parameter
  • questioned material
  • Arduino connections
  • tune and match
  • SDR connections
  • first run

Clone this wiki locally