Руководство пользователя — программа TMCGROUT (tmcgrout.exe)
Пакет TMC Suite 5.0 для Windows x64, новый интерфейс (Qt 6, тёмная тема, русский язык). Прежняя версия программы с интерфейсом MFC (
TMCGROUT.exeиз старых сборок) показывает те же данные, но её окна в этом руководстве не описываются.Изменение по исправлениям 26.10.2026 (версия 5.1): пункт меню «Разворот фазы» (раздел 5.4.3).
Содержание
- Назначение программы
- Запуск и открытие файлов
- Главное окно
- Панель инструментов
- Меню
- Окна программы
- Одна частота в файле и многочастотный расчёт
- Типичные задачи по шагам
- Частые вопросы и ошибки
1. Назначение программы
TMCGROUT (заголовок окна — «Tamic: просмотр выходных характеристик S-матриц») — программа просмотра частотных характеристик матрицы рассеяния (S-матрицы) рассчитанного устройства. В окне «О программе» она описана так: «Программа просмотра файлов S-матриц устройства».
S-матрица показывает, какая доля волны, поданной на один вход (порт) устройства, отражается обратно
и проходит на другие входы — в зависимости от частоты. Её записывают в файл .s:
- счётное ядро (PlanarRT H или PlanarRT X) по директиве
SMATRIXсекции#OUTPUTзадания (см. Файл задания .tpl, раздел 7.4); - программа TMCROS командой «В S-матрицу» по временны́м сигналам.
Что умеет TMCGROUT:
- показывать до 20 кривых — разные элементы S-матрицы, разные файлы
.s, а также кривые, вычисленные по выражению над несколькими файлами; - откладывать по оси Y КСВН, потери в дБ, модуль |S|, фазу S в радианах или градусах;
- откладывать по оси X частоту в ГГц, МГц, кГц, Гц или в своей единице;
- масштабировать и сдвигать график кнопками, клавишами и мышью;
- настраивать цвета, стиль и толщину линий, точки-маркеры, шрифт подписей; печатать.
Кривая по частоте строится, только если в файле
.sнесколько частот. Если частота одна, график вырождается — это не ошибка программы (раздел 7).

2. Запуск и открытие файлов
2.1. Как запустить
- После установки пакета (
TMC_Suite_5.0_Qt6_Setup.exe) — ярлык TMCGROUT в меню «Пуск». - В варианте без установки — файл
tmcgrout.exeв папкеTMC_Suite_Qt6_win64. - Из счётного ядра — кнопка «S-матрица» на его панели: ядро открывает TMCGROUT с файлом
.sтекущего расчёта (см. PlanarRT H).
Окно открывается в том же месте и того же размера, что и при прошлом закрытии.
2.2. Какие файлы открывает программа
| Файл | Что это | Кто создаёт |
|---|---|---|
.s |
Файл S-матрицы: комплексные значения элементов матрицы рассеяния для набора частот (не текстовый, вручную не редактируется) | Счётное ядро, TMCROS |
.soc |
Документ TMCGROUT: текст с настройками оформления и списком кривых; сами данные не хранит, ссылается на файлы .s |
TMCGROUT |
.$OC |
Запасной документ: создаётся вместо .soc, если .soc с таким именем уже есть |
TMCGROUT |
В окне открытия файла фильтр «TMCGRO» показывает *.soc *.$oc *.s *.s2p *.s4p *.s6p *.s8p *.tab;
второй пункт фильтра — «Все файлы». Библиотека чтения S-матриц пакета, кроме формата TMC, умеет
разбирать текстовые файлы S-параметров программ HFSS и CST. Ограничения
чтения (по коду, 29.10.2026): у HFSS строка параметров вида # GHz S RI не разбирается — частоты
всегда считаются в ГГц, значения — парами «действительная, мнимая часть»; у CST частота берётся как
есть, без пересчёта единиц, значения — «модуль, фаза в градусах»; пары «вход, мода», которой нет в
заголовке файла CST, — ошибка чтения.
2.3. Как открыть файл
- Нажмите «Открыть»
, или Файл → Открыть…, или
Ctrl+O. - Выберите файл
.sили документ.soc→ «Открыть». - Внутри главного окна появится окно документа с графиком, развёрнутое на всю рабочую область.
Недавно открытые файлы перечислены в меню Файл (пронумерованные строки над пунктом «Выход»).
Что происходит при открытии файла
.s. Программа сама создаёт рядом документ с тем же именем и расширением.soc(дляf_diel_sweep.s—f_diel_sweep.soc) с одной кривой: элемент «вход 1, мода 1 — вход 1, мода 1», то есть отражение от первого входа. Если такой.socуже есть, он не трогается, а создаётся (или перезаписывается) запаснойf_diel_sweep.$OC.
2.4. Документ .soc
Текстовый файл; первая строка — признак #TMCGROUT. Программа сама переписывает документ при
каждом изменении масштаба, цветов, списка кривых. Пример (samples/SAMPLE_R/TEST_MET/EPS4/rths25.soc):
#TMCGROUT
!Graphics parameters
#dXAxiesUnit 0
#dXAxiesName
#PointDrawFlag 1; 1;
#nXType 0
#nYType 2
#Xmin 40
#Xmax 49.8
...
!SFileName GraphicsName DrawFlag Input1 Mod1 Input2 Mod2
rths25.s rths25.s 1 1 1 2 1
| Ключ | Что задаёт | Значения |
|---|---|---|
#dXAxiesUnit, #dXAxiesName |
Множитель и подпись своей единицы оси X (шкала X «Своя») | число; текст |
#PointDrawFlag a; b; |
a — рисовать точки, b — прореживать |
0 / 1 |
#nXType |
Шкала X | 0 — ГГц, 1 — МГц, 2 — кГц, 3 — Гц, 4 — своя |
#nYType |
Шкала Y | 0 — КСВН, 1 — потери, дБ, 2 — |S|, 3 — фаза S, рад, 4 — фаза S, град |
#Xmin, #Xmax, #Ymin, #Ymax |
Пределы окна | числа в единицах шкалы |
#nAFlagX, #nAFlagY |
Автомасштаб по X / Y | 0 / 1 |
#EditorFileName |
Внешний редактор документа | путь к .exe |
#sDrawTextFont, #sDrawTextColor, #sDrawBckgrdColor, #sDrawAxiesColor, #sDrawGridColor, #sDrawPointColor |
Шрифт и цвета; последняя строка содержит также цвет, стиль и толщину 16 образцов линий | числа |
Строка кривой: <файл .s или выражение> <подпись> <показывать 0/1> <Вход 1> <Мода 1> <Вход 2> <Мода 2>.
В примере rths25.s rths25.s 1 1 1 2 1 — элемент «вход 1, мода 1 — вход 2, мода 1», то есть
передача между первым и вторым входами.
3. Главное окно

- Заголовок — «Tamic: просмотр выходных характеристик S-матриц» и в квадратных скобках имя
документа (на снимке —
[f_diel_sweep.s]). - Строка меню — «Файл», «Правка», «Вид», «Настройки», «Окно», «Справка» (раздел 5). Справа — кнопки управления окном документа.
- Панель инструментов — 23 кнопки (раздел 4).
-
Область графика:
- ось Y с подписью шкалы (на снимке —
VSWR, то есть КСВН) и числами у линий сетки; - ось X с подписью (на снимке —
Freq GHz); - пунктирная сетка 10 × 10;
- кривые с точками-маркерами (на снимке — квадраты в каждой частотной точке);
- легенда справа вверху: образец линии с маркерами и текст
- f_diel_sweep.s - 1111, гдеf_diel_sweep.s— имя графика, а четыре цифры — «Вход 1», «Мода 1», «Вход 2», «Мода 2».
Подписи осей и легенды рисует расчётная часть программы, поэтому они остаются на английском:
VSWR— КСВН,L dB— потери, дБ,|S|— модуль,Phase S - rad/Phase S - grad— фаза. 5. Строка состояния: - слева — «Готово»; пока нажата левая кнопка мыши внутри осей, здесь показываются координаты точки под курсором, напримерFreq GHz=3.9; VSWR=1.1; - справа — название текущей шкалы Y (на снимке —VSWR). - ось Y с подписью шкалы (на снимке —
3.1. Работа мышью в области графика
| Действие | Где | Результат |
|---|---|---|
| Нажать левую кнопку и протянуть рамку | Внутри осей | Рамка выделения; после отпускания выбранный участок растягивается на окно. Ось, по которой рамка меньше 10 % окна, не меняется (по Y при этом включается автомасштаб); если рамка меньше 10 % по обеим осям — ничего не происходит. Пока кнопка нажата, координаты курсора видны в строке состояния |
| Двойной щелчок левой кнопкой | Внутри осей | «Подогнать окно данных»: автомасштаб по X и Y |
| Двойной щелчок левой кнопкой | Вне осей | «Подогнать область»: оси подгоняются под окно, положение запоминается |
| Щелчок правой кнопкой | Внутри осей | Окно «Параметры окна» |
| Щелчок правой кнопкой | Вне осей | Окно «Характеристики» |
Перед двойным щелчком программа проверяет, не изменились ли файлы, и при необходимости перечитывает их.
3.2. Автоматическое обновление
Примерно раз в 10 секунд программа проверяет, не изменились ли документ и файлы .s. Если ядро
дописало новую частотную точку (например, во время свипа), график обновится сам. Немедленно —
«Обновить данные» (Ctrl+W).
4. Панель инструментов

Подсказка при наведении — название из второго столбца. Пока документ не открыт, доступны только «Открыть» и «О программе». Включённые «Авто-масштаб по оси X/Y» показаны рамкой вокруг кнопки.
| Кнопка | Название (подсказка) | Что делает | Клавиши |
|---|---|---|---|
![]() |
Открыть | Открывает .s или .soc |
Ctrl+O |
![]() |
Добавить S-матрицу | Выбор ещё одного файла S-матрицы (фильтр *.s;*.s2p;*.s4p;*.s6p;*.s8p;*.tab); кривая добавляется, затем открывается окно «Характеристики» |
Ctrl+A |
![]() |
Изменить параметры | Окно «Характеристики» — список кривых (раздел 6.2) | Ctrl+D |
![]() |
Параметры окна | Окно пределов, шкал, точек, цветов (раздел 6.1) | Ctrl+H |
![]() |
Обновить данные | Заново читает документ и файлы .s, перерисовывает |
Ctrl+W |
![]() |
Подогнать область графика | Оси занимают около 70 % ширины и 90 % высоты окна, справа — место для легенды | Ctrl+R |
![]() |
Увеличить | Окно данных вдвое меньше по обеим осям (относительно центра); автомасштаб выключается | + |
![]() |
Увеличить по X | То же только по X | X |
![]() |
Увеличить по Y | То же только по Y | Y |
![]() |
Уменьшить | Окно данных вдвое больше по обеим осям | − |
![]() |
Уменьшить по X | То же только по X | Shift+X |
![]() |
Уменьшить по Y | То же только по Y | Shift+Y |
![]() |
Подогнать окно данных | Включает автомасштаб по X и Y — видны все точки | Ctrl+T |
![]() |
Авто-масштаб по оси X | Вкл./выкл. автомасштаб X: от минимальной до максимальной частоты видимых кривых | Alt+X |
![]() |
Авто-масштаб по оси Y | Вкл./выкл. автомасштаб Y по видимой части кривых | Alt+Y |
![]() |
Xmin — автоматически | Сдвигает окно к первой частоте данных, не меняя ширины. Работает только при выключенном автомасштабе X | Home |
![]() |
Xmax — автоматически | Сдвигает окно к последней частоте, не меняя ширины. Только при выключенном автомасштабе X | End |
![]() |
Уменьшить Xmin и Xmax | Сдвиг окна влево на 10 % ширины; автомасштаб X выключается | ← |
![]() |
Увеличить Xmin и Xmax | Сдвиг окна вправо на 10 % ширины | → |
![]() |
Уменьшить Ymin и Ymax | Сдвиг окна вниз на 10 % высоты; автомасштаб Y выключается | V |
![]() |
Увеличить Ymin и Ymax | Сдвиг окна вверх на 10 % высоты | ↑ |
![]() |
Печать | Системное окно печати Windows; печатается то же, что на экране (PDF — принтер «Microsoft Print to PDF») | Ctrl+P |
![]() |
О программе | Окно «О программе TMCGROUT» (раздел 6.8) | — |
Все изменения масштаба сразу записываются в документ
.soc.
5. Меню
Пункты, у которых есть кнопка на панели, делают то же, что кнопка. Пока документ не открыт, доступны только «Создать», «Открыть…», «Выход», «О программе TMCGROUT…».
5.1. Меню «Файл»

| Пункт | Клавиши | Что делает |
|---|---|---|
| Создать | Ctrl+N | Новое окно документа с заголовком вида TMCGROUT1; кривые добавляют командой «Добавить характеристику», имя задают через «Сохранить как…» |
| Открыть… | Ctrl+O | Открыть .s или .soc |
| Закрыть | — | Закрыть активное окно документа |
| Сохранить | Ctrl+S | Записать документ .soc |
| Сохранить как… | — | Записать документ под новым именем (расширение по умолчанию .soc) |
| Печать… | Ctrl+P | Системное окно печати |
| Предпросмотр печати | — | Окно «Предварительный просмотр» |
| Параметры печати… | — | Окно «Параметры печати» (бумага, ориентация, поля) |
| 1 …, 2 …, 3 …, 4 … | — | Недавние файлы (на снимке — f_diel_sweep.s, b_sweep.s, rths25.s, horn2.s) |
| Выход | — | Закрыть программу |
5.2. Меню «Правка»

| Пункт | Клавиши | Что делает |
|---|---|---|
| Характеристики | Ctrl+D | Окно «Характеристики» (раздел 6.2) |
| Добавить характеристику | Ctrl+A | Выбор файла S-матрицы в папке документа; кривая добавляется в документ |
| Редактор | Alt+F7 | Открывает документ .soc во внешнем текстовом редакторе из «Настройки → Редактор» (по умолчанию в документе записан winword.exe) |
5.3. Меню «Вид»

| Пункт | Клавиши | Что делает |
|---|---|---|
| Параметры окна | Ctrl+H | Окно «Параметры окна» |
| Перерисовать данные | Ctrl+W | Перечитать файлы и перерисовать |
| Масштаб ▸ | — | Подменю 5.3.1 |
| Сдвиг ▸ | — | Подменю 5.3.2 |
| Строка состояния | — | Показать/скрыть строку состояния |
| Панель инструментов | — | Показать/скрыть панель |
5.3.1. Подменю «Вид → Масштаб»

| Пункт | Клавиши | Что делает |
|---|---|---|
| Подогнать область | Ctrl+R | Подогнать оси под окно |
| Увеличить / Увеличить по X / Увеличить по Y | + / X / Y | Окно данных вдвое меньше по обеим осям / по X / по Y |
| Уменьшить / Уменьшить по X / Уменьшить по Y | − / Shift+X / Shift+Y | Окно данных вдвое больше |
| Подогнать окно данных | Ctrl+T | Автомасштаб по обеим осям |
| Авто-масштаб X | Alt+X | Вкл./выкл. автомасштаб X |
| Авто-масштаб Y | Alt+Y | Вкл./выкл. автомасштаб Y |
5.3.2. Подменю «Вид → Сдвиг»

| Подменю | Пункт | Клавиши | Что делает |
|---|---|---|---|
| Изменить Xmax, Xmin ▸ | Уменьшить пределы | ← | Окно влево на 10 % ширины |
| Увеличить пределы | → | Окно вправо на 10 % ширины | |
| Начало | Home | Окно — к первой частоте (при выключенном автомасштабе X) | |
| Конец | End | Окно — к последней частоте (при выключенном автомасштабе X) | |
| Изменить Ymax, Ymin ▸ | Уменьшить пределы | V | Окно вниз на 10 % высоты |
| Увеличить пределы | ↑ | Окно вверх на 10 % высоты |
5.4. Меню «Настройки»

| Пункт | Что делает |
|---|---|
| Language / Язык ▸ | Язык интерфейса (5.4.1) |
| Редактор | Выбор программы (*.exe) — внешнего редактора для «Правка → Редактор»; записывается в документ |
| Цвет ▸ | Подменю цветов (5.4.2) |
| Шрифт | Окно «Выбор шрифта» (раздел 6.6) |
| Разворот фазы: стандартный (порог π) | Флажок: как разворачивается фаза (5.4.3). В английском интерфейсе — «Phase unwrapping: standard (threshold pi)». Пункт добавлен 26.10.2026 |
5.4.1. Подменю «Language / Язык»

«System / Как в системе» — язык Windows; «Русский»; «English». Галочка — текущий выбор. Язык меняется сразу и запоминается. В английском интерфейсе меню называется Config. Выбор общий для всех программ пакета: другие программы, уже открытые в этот момент, перейдут на новый язык при следующем запуске (overview.md, раздел 6.2).
5.4.2. Подменю «Настройки → Цвет»

| Пункт | Что меняет |
|---|---|
| Фон | Фон области графика |
| Сетка | Пунктирная сетка |
| Оси | Оси со стрелками |
| Точки | Точки-маркеры (общий цвет для всех кривых; на снимке главного окна — красный) |
| Графики | Окно «Параметры графиков» (раздел 6.4) |
5.4.3. Пункт «Разворот фазы: стандартный (порог π)»
Флажок задаёт, как программа разворачивает фазу (переводит её из интервала одного оборота в непрерывную кривую по частоте) в кривых-выражениях (раздел 6.2.1).
| Состояние флажка | Как разворачивается фаза |
|---|---|
| Снят (по умолчанию) | Как раньше: фаза монотонно убывает — по теореме Фостера. Так задумано автором; графики не меняются по сравнению с прежними версиями |
| Установлен | Стандартный разворот с порогом π: скачок фазы между соседними точками больше π (по модулю) считается переходом через границу оборота и устраняется |
Выбор запоминается и действует при следующих запусках программы; при переключении графики активного окна перерисовываются. Такой же пункт есть в программе TMCROS.
На какие кривые действует. Разворачивается фаза только кривых-выражений — тех, у которых
в строке графика вместо имени файла стоит выражение в фигурных скобках, например
{[f_diel_sweep.s]} (раздел 6.2.1). Фаза обычной кривой из файла .s не разворачивается
никогда: она показывается в пределах одного оборота, от 0 до −360° (от 0 до −2π рад), и при
переходе через −360° кривая «прыгает» вверх. Если нужна непрерывная фаза, постройте ту же
характеристику как выражение — {[имя.s]}. Если по оси X выбраны пользовательские единицы, фаза не
разворачивается и у кривых-выражений. (Проверено 26.10.2026 на выпуске Qt6.)

Фаза S11 свипа f_diel_sweep.s (3–4,8 ГГц), кривая-выражение {[f_diel_sweep.s]}. Слева флажок
снят: фаза только убывает, и между 3,8 и 4 ГГц она падает на 250°. Справа флажок установлен
(стандартный разворот, порог π): тот же переход больше π по модулю, поэтому он считается ростом
фазы на 110°.
5.5. Меню «Окно»

| Пункт | Что делает |
|---|---|
| Новое окно | Тот же документ ещё в одном окне |
| Каскадом | Окна документов каскадом |
| Мозаикой | Окна документов рядом, без перекрытия |
5.6. Меню «Справка»

«О программе TMCGROUT…» — окно «О программе» (раздел 6.8).
6. Окна программы
6.1. Окно «Параметры окна»
Открывается: кнопка «Параметры окна», Вид → Параметры окна (Ctrl+H) или щелчок правой кнопкой внутри осей.

Группа «Пределы окна графика»
| Элемент | Что задаёт | Допустимые значения |
|---|---|---|
| Флажок «Автомасштаб X» | Пределы X по данным; поля «X max», «X min» недоступны | вкл./выкл. |
| X max, X min | Границы по оси X в единицах шкалы X (на снимке 3…4,8 ГГц) | X max > X min |
| Формат (верхний) | Формат чисел у оси X в стиле printf, например %4.3lg, %.2f, %e |
до 300 символов |
| Флажок «Автомасштаб Y» | Пределы Y по данным; поля «Y max», «Y min» недоступны | вкл./выкл. |
| Y max, Y min | Границы по оси Y | Y max > Y min |
| Формат (нижний) | Формат чисел у оси Y | до 300 символов |
| «Формат сетки по умолчанию» | Вписывает в оба поля формата %4.3lg |
— |
Группа «Тип графика»
Шкала X:
| Переключатель / поле | Ось X |
|---|---|
| ГГц, МГц, кГц, Гц | Частота в выбранных единицах |
| Своя | Частота в Гц, умноженная на число из поля «Единицы»; подпись оси — из поля «Имя». Поля «Имя» и «Единицы» доступны только при выбранной «Своя» |
| Поле «Имя» | Подпись своей единицы (до 99 символов) |
| Поле «Единицы» | Множитель: X = частота (Гц) × «Единицы». Например, 1e-9 даёт гигагерцы |
Шкала Y (S — комплексное значение выбранного элемента S-матрицы):
| Переключатель | Ось Y | Формула в программе |
|---|---|---|
| КСВН | Коэффициент стоячей волны по напряжению | (1 + |S|)/(1 − |S|); при |S|, близком к 1, подставляется 0,9999 |
| Потери, дБ | Потери в децибелах (положительное число) | −20·lg |S| |
| |S| | Модуль элемента | |S| |
| Фаза S, рад | Фаза элемента в радианах | arg S |
| Фаза S, град | Фаза в градусах | arg S · 180/π |
КСВН имеет смысл для элемента отражения (Вход 1 = Вход 2), потери и модуль — для любого элемента. Для кривых-выражений фаза разворачивается так, как выбрано в пункте Настройки → Разворот фазы (раздел 5.4.3); у обычных кривых фаза не разворачивается (от 0 до −360°).
Группа «Точки»
| Элемент | Что делает | Значения |
|---|---|---|
| «Рисовать точки» | Маркеры в каждой частотной точке (у каждой из 16 кривых своя форма, цвет общий — «Настройки → Цвет → Точки»). Пока снят, два следующих элемента недоступны | вкл./выкл. |
| «Прореживать» | Около 20 маркеров на видимую часть кривой вместо маркера в каждой точке | вкл./выкл. |
| «Размер точек» | Множитель размера маркера | 0…100; 1 — обычный |
Группа «Цвет» («Фон», «Сетка», «Оси», «Точки», «Графики») и кнопка «Шрифт» — применяют введённое в окне (как «ОК»), закрывают его, открывают окно выбора цвета, «Параметры графиков» или «Выбор шрифта» и после этого снова открывают «Параметры окна».
Нижняя часть
| Элемент | Что это |
|---|---|
| Поле «Имя файла выходных характеристик S-матрицы» | Только для чтения: путь к документу .soc |
| ОК | Применить, перерисовать, записать документ. Форматы подписей и размер точек запоминаются и как значения для следующих документов |
| Отмена | Закрыть без изменений |
6.2. Окно «Характеристики»
Открывается: кнопка «Изменить параметры», Правка → Характеристики (Ctrl+D) или щелчок правой кнопкой вне осей.

| Элемент | Что это | Допустимые значения |
|---|---|---|
| Поле «Имя файла выходных характеристик S-матрицы» | Только для чтения: путь к документу .soc |
— |
| Столбец «Файл S или выражение» (20 строк) | Имя файла .s (относительно папки документа) или выражение в фигурных скобках над несколькими файлами (раздел 6.2.1). Чтобы удалить кривую, сотрите имя в её строке |
имя файла / выражение |
| «Вход 1», «Мода 1» | Первый вход и его мода — адрес элемента S-матрицы | целые 1…10000 |
| «Вход 2», «Мода 2» | Второй вход и его мода | целые 1…10000 |
| «Имя графика» | Подпись в легенде; пусто — подставится имя файла; пробелы удаляются | текст |
| «Видимость» | Показывать кривую | вкл./выкл. |
| ОК | Записать изменения, перечитать данные, перерисовать | — |
| Отмена | Закрыть без изменений | — |
| Добавить | Применить изменения, затем выбрать ещё один файл S-матрицы; потом окно откроется снова | — |
Элемент «Вход 1 = Вход 2» — отражение от входа (например, 1-1-1-1 — S11), разные входы — передача между ними (1-1-2-1). Какой из двух входов — возбуждаемый (столбец матрицы), а какой — приёмный (строка) 2.
Кривые 1–16 оформляются образцами 1–16 окна «Параметры графиков», кривые 17–20 — образцами 1–4.
6.2.1. Кривые-выражения
Вместо имени файла можно записать выражение в фигурных скобках {…}, в котором имена файлов .s
стоят в квадратных скобках […], а между ними — арифметические операции и функции (вычисляются
библиотекой выражений пакета). Все файлы в выражении должны иметь одинаковый набор частот, иначе
в легенде появится Error_expression_different_freq_array_…. Подробное описание синтаксиса — в
документации на код (docs/api/viewers/tmcgrout.md, раздел 10).
Только одни фигурные скобки (с 29.10.2026). Формула кривой пишется в одних фигурных скобках
{...}. Запись в двойных скобках {{...}} — ошибка записи: кривая не строится, а в подписи кривой
выводится сообщение об ошибке.
Фаза кривой-выражения разворачивается по частоте способом, выбранным в пункте Настройки → Разворот фазы: стандартный (порог π) (раздел 5.4.3): по умолчанию — монотонно убывающая фаза, с флажком — стандартный разворот с порогом π.
6.3. Окно открытия файла
Кнопки «Открыть» и «Добавить S-матрицу» открывают стандартное окно выбора файла Windows. «Добавить» открывается в папке документа.
6.4. Окна «Параметры графиков»
Под этим заголовком — два окна.
Список 16 образцов линий (Настройки → Цвет → Графики или кнопка «Графики» в «Параметрах окна»):

| Элемент | Что делает |
|---|---|
| 16 образцов (слева) | Вид линии кривых 1…16 (кривые 17–20 повторяют образцы 1–4) |
| «Изменить» в строке | Окно стиля линии этого образца |
| «По умолчанию» | Вернуть всем образцам исходные цвета, стили, толщины |
| ОК / Отмена | Применить и записать в документ / закрыть без изменений |
Стиль одной линии (кнопка «Изменить»):

| Элемент | Что делает | Значения |
|---|---|---|
| «Стиль» | «Сплошная», «Штриховая», «Пунктирная», «Штрихпунктирная», «Штрихпунктир, 2 точки» (с образцами слева) | один из пяти |
| «Толщина» | 1, 2, 3, 4, 5 пикселей (сверху вниз, с образцами) | один из пяти |
| Цвет | Окно «Выбор цвета» для линии | — |
| ОК / Отмена | Запомнить / закрыть без изменений | — |
Толщина доступна только у сплошной линии: при другом стиле она сбрасывается на 1 пиксель, а остальные варианты недоступны.
6.5. Окно «Выбор цвета»

| Элемент | Что делает |
|---|---|
| Цветовое поле | Насыщенность — по горизонтали, яркость — по вертикали |
| Радужная полоса | Оттенок |
| Кнопка-пипетка (справа вверху) | Взять цвет с любого места экрана щелчком; Esc — отмена |
| «БЫЛО / СТАЛО» | Исходный и выбранный цвета с кодами #RRGGBB; щелчок по «БЫЛО» возвращает исходный цвет |
| «HEX» | Код #RRGGBB или #RGB |
| R, G, B | Составляющие цвета, 0…255 (ползунок и поле) |
| «ПАЛИТРА ПРОЕКТА», «ЦВЕТА ГРАФИКОВ», «НЕДАВНИЕ» | Готовые цвета; «Недавние» — выбранные ранее («Здесь появятся выбранные цвета», пока пусто) |
| Отмена / ОК | Закрыть без изменений / применить |
6.6. Окно «Выбор шрифта»

Шрифт применяется к числам у осей, подписям осей и легенде.
| Элемент | Что делает |
|---|---|
| «Шрифт» | Название шрифта |
| «Начертание» | Regular, Italic, Bold, Bold Italic |
| «Размер» | Размер в пунктах |
| «Эффекты» | «Зачёркнутый», «Подчёркнутый» |
| «Система письма» | Набор символов («Любая») |
| «Пример» | Образец текста |
| ОК / Отмена | Применить / закрыть |
6.7. Окна печати
- Печать (Ctrl+P) — системное окно печати Windows; печатается изображение, как на экране; для PDF — принтер «Microsoft Print to PDF».
- Предпросмотр печати — окно «Предварительный просмотр».
- Параметры печати… — окно «Параметры печати» (бумага, ориентация, поля).
6.8. Окно «О программе TMCGROUT»

| Элемент | Что это |
|---|---|
| Значок, «TMCGROUT» | Программа |
| Описание | «Программа просмотра файлов S-матриц устройства.» и «Просмотр выходных характеристик S-матриц пакета TMC Suite.» |
| «Версия 5.0», «2026», «Windows · x64» | Версия пакета, год, платформа |
| «АВТОР: К. Н. Климов, © 2026» | Автор |
| GitHub, LinkedIn, ResearchGate, eLibrary | Ссылки на страницы автора (открываются в браузере) |
| www.tamic.ru | Сайт проекта |
| «Руководство пользователя» | PDF на языке интерфейса рядом с программой — TMC_Suite_5.0_Руководство_пользователя.pdf или TMC_Suite_5.0_User_Manual.pdf (метка «PDF»), а если его нет — руководство на сайте www.tamic.ru/docs/user-manual/index.html (метка «НА САЙТЕ») |
| «TMC Suite 5.0 · Qt …» | Версии пакета и библиотеки Qt |
| ОК | Закрыть |
7. Одна частота в файле и многочастотный расчёт
7.1. Если в файле .s одна частота
Один шаг расчёта с директивой SMATRIX записывает в .s одну частотную точку — частоту из
этой директивы (в одночастотном режиме она обязана совпадать с частотой FREQ шага, см.
Файл задания .tpl, раздел 7.4). Тогда:
- при автомасштабе по X минимальная и максимальная частота совпадают — ось X вырождена (min = max), кривой нет, видна в лучшем случае одна точка;
- кнопки масштаба и сдвига по X ничего не меняют — они умножают ширину окна, а она равна нулю.
Это не ошибка программы. Значения в единственной точке можно посмотреть, выключив автомасштаб X и задав в «Параметрах окна» пределы X вокруг этой частоты вручную (например, X min = 9,9 и X max = 10,1 ГГц для точки 10 ГГц). Для кривой по частоте нужен свип — набор частот в одном файле.
7.2. Как получить .s со многими частотами
| Способ | Как | Где описано |
|---|---|---|
| Свип по шагам | В задании несколько шагов #STEP, у каждого своя FREQ, и все пишут SMATRIX в один и тот же файл. Каждый шаг добавляет точку. Свип по частоте можно задать одной программой (макросом) задания |
Файл задания .tpl, разделы 7.4 и 10; Многочастотный расчёт |
| Один широкополосный проход | Падающая волна задаётся файлом .sig с многими частотами; ядро с SMATRIX само записывает в .s все частоты полосы |
Многочастотный расчёт, samples/MULTIFREQ/README.md |
| Пересчёт в TMCROS | Команда «В S-матрицу» по файлам .t (по одному на частоту или один широкополосный) |
TMCROS, раздел 6.3 |
Файл
.sдополняется, а не перезаписывается. Перед повторным расчётом удалите старый.s, иначе в нём смешаются точки разных расчётов. Удалить можно вручную или кнопкой «Удалить» в окне экспорта TMCROS.Нули на отдельных частотах. С 26.10.2026 ошибка на одном шаге свипа (или на одной частоте многочастотного расчёта) не обрывает расчёт: на этой частоте ядро записывает в
.sS-матрицу из нулей, и на графике |S| в этой точке равен нулю. Причина — в сообщении ядраError at step N (f): …(Работа без окон, п. 1.4).
8. Типичные задачи по шагам
8.1. Построить |S11| и |S21| двухпортового устройства
- Откройте файл
.s(Ctrl+O) — появится кривая S11 (элемент 1-1-1-1). - Нажмите «Изменить параметры» (Ctrl+D).
- Во второй строке впишите то же имя файла
.s; задайте «Вход 1» = 1, «Мода 1» = 1, «Вход 2» = 2, «Мода 2» = 1; «Имя графика» — например,S21; отметьте «Видимость» → ОК. - Ctrl+H → «Шкала Y» → «|S|» → ОК.
- Ctrl+T — вписать обе кривые в окно.
8.2. Посмотреть КСВН или потери
Ctrl+H → «Шкала Y» → «КСВН» или «Потери, дБ» → ОК.
8.3. Сравнить два расчёта
- Откройте первый
.s. - «Добавить S-матрицу» (Ctrl+A) → выберите второй
.s. - В окне «Характеристики» задайте одинаковые входы/моды и разные «Имена графиков» → ОК.
- При необходимости поменяйте цвет второй кривой: Настройки → Цвет → Графики → «Изменить» во второй строке.
8.4. Задать ось X в своих единицах
Ctrl+H → «Шкала X» → «Своя» → в «Имя» впишите подпись (например, f, ГГц), в «Единицы» — множитель
(например, 1e-9) → ОК.
8.5. Подготовить рисунок для отчёта
- Настройте шрифт (Настройки → Шрифт), цвета (Настройки → Цвет), стиль линий.
- «Формат» подписей — например,
%.1f. - Файл → Предпросмотр печати → Ctrl+P → «Microsoft Print to PDF».
8.6. Выбрать способ разворота фазы
- Откройте меню Настройки.
- Щёлкните пункт «Разворот фазы: стандартный (порог π)»: флажок установлен — стандартный разворот с порогом π; снят — фаза монотонно убывает (как раньше).
- Графики активного окна перерисуются; выбор запомнится.
9. Частые вопросы и ошибки
| Ситуация | Причина | Что делать |
|---|---|---|
| График — одна точка или пустой, масштаб не работает | В .s одна частота (раздел 7.1) |
Посчитайте свип или широкополосный проход |
| Открыл другой файл — кривая вне окна | Пределы запоминаются; при выключенном автомасштабе новые данные могут быть за краем | «Авто-масштаб по оси X/Y» (Alt+X, Alt+Y) или Ctrl+T |
В легенде Error_when_read_<файл> |
Файл .s не найден, пуст, или окно T_min…T_max директивы SMATRIX не попало в сигнал (в .s нет ни одной точки) |
Проверьте файл и окно усреднения в задании (Файл задания .tpl, раздел 7.4) |
Error_expression_… в легенде |
Ошибка в выражении или разные наборы частот у файлов | Раздел 6.2.1 |
| На графике точки разных расчётов | .s дописывался несколькими расчётами |
Удалите .s и пересчитайте |
| На одной частоте | S | = 0 (провал до нуля) |
| Фаза кривой-выражения «скачет» иначе, чем ожидалось | Выбран другой способ разворота фазы | Настройки → Разворот фазы: стандартный (порог π) (раздел 5.4.3) |
| Кнопки «Xmin/Xmax — автоматически» не работают | Включён автомасштаб X | Выключите его (Alt+X) |
| КСВН уходит в очень большие значения | |S| близок к 1 (полное отражение) | Это свойство данных; посмотрите |S| или потери |
| После расчёта график не обновился | Обновление раз в ~10 с | Ctrl+W |
Рядом с .soc появился .$OC |
Открыли .s, для которого .soc уже был |
Запасной документ, его можно удалить |
| «Правка → Редактор» не открывает файл | Не задан редактор (по умолчанию winword.exe) |
«Настройки → Редактор» → например, notepad.exe |
User manual — TMCGROUT (tmcgrout.exe)
TMC Suite 5.0 package for Windows x64, new interface (Qt 6, dark theme, English language). The previous version of the program with the MFC interface (
TMCGROUT.exefrom older builds) shows the same data, but its windows are not described in this manual.Change from the fixes of 26.10.2026 (version 5.1): the "Phase unwrapping" menu item (Sec. 5.4.3).
Contents
- Purpose of the program
- Starting the program and opening files
- Main window
- Toolbar
- Menus
- Program windows
- A single frequency in the file and multi-frequency computation
- Typical tasks step by step
- Frequently asked questions and errors
1. Purpose of the program
TMCGROUT (window title — "Tamic S-matrix Output Characteristics Viewer") is a program for viewing the frequency characteristics of the scattering matrix (S-matrix) of a computed device. In the About dialog it is described as "Viewer for device S‑matrix files."
The S-matrix shows what part of a wave fed to one port of the device is reflected back
and what part passes to the other ports, as a function of frequency. It is written to a .s file:
- by the compute kernel (PlanarRT H or PlanarRT X) according to the
SMATRIXdirective of the#OUTPUTsection of the task (see Task file .tpl, Sec. 7.4); - by the TMCROS program with the "To S-matrix" command from time signals.
What TMCGROUT can do:
- show up to 20 curves — different S-matrix elements, different
.sfiles, and also curves computed from an expression over several files; - plot along the Y axis the VSWR, the loss in dB, the magnitude |S|, the phase of S in radians or degrees;
- plot along the X axis the frequency in GHz, MHz, kHz, Hz or in a user unit;
- zoom and shift the graph with buttons, keys and the mouse;
- set the colors, style and width of lines, the marker points, the label font; print.
A curve over frequency is plotted only if the
.sfile contains several frequencies. If there is only one frequency, the graph degenerates — this is not a program error (Sec. 7).

2. Starting the program and opening files
2.1. How to start
- After the package is installed (
TMC_Suite_5.0_Qt6_Setup.exe) — the TMCGROUT shortcut in the Start menu. - In the variant without installation — the file
tmcgrout.exein theTMC_Suite_Qt6_win64folder. - From a compute kernel — the "View S-matrix" button on its toolbar: the kernel opens TMCGROUT with the
.sfile of the current computation (see PlanarRT H).
The window opens in the same place and with the same size as when it was last closed.
2.2. Which files the program opens
| File | What it is | Who creates it |
|---|---|---|
.s |
S-matrix file: complex values of the scattering matrix elements for a set of frequencies (not a text file, not edited by hand) | Compute kernel, TMCROS |
.soc |
TMCGROUT document: text with the appearance settings and the list of curves; it does not store the data itself, it refers to .s files |
TMCGROUT |
.$OC |
Backup document: created instead of .soc if a .soc with the same name already exists |
TMCGROUT |
In the file open window the "TMCGRO" filter shows *.soc *.$oc *.s *.s2p *.s4p *.s6p *.s8p *.tab;
the second filter item is "All Files". Besides the TMC format, the S-matrix reading library of the package can
parse the text S-parameter files of the HFSS and CST programs. Reading
limitations (according to the code, 29.10.2026): for HFSS a parameter line like # GHz S RI is not parsed — frequencies
are always taken in GHz and values as "real, imaginary part" pairs; for CST the frequency is taken as
is, without unit conversion, and values as "magnitude, phase in degrees"; a "port, mode" pair that is missing from the
header of a CST file is a reading error.
2.3. How to open a file
- Click Open
, or File → Open..., or
Ctrl+O. - Select a
.sfile or a.socdocument → "Open". - A document window with the graph appears inside the main window, maximized to the whole work area.
Recently opened files are listed in the File menu (numbered lines above the "Exit" item).
What happens when a
.sfile is opened. The program itself creates next to it a document with the same name and the.socextension (forf_diel_sweep.s—f_diel_sweep.soc) with one curve: the element "port 1, mode 1 — port 1, mode 1", that is, the reflection from the first port. If such a.socalready exists, it is left untouched, and a backupf_diel_sweep.$OCis created (or overwritten) instead.
2.4. The .soc document
A text file; the first line is the #TMCGROUT signature. The program rewrites the document by itself on
every change of the scale, colors or list of curves. Example (samples/SAMPLE_R/TEST_MET/EPS4/rths25.soc):
#TMCGROUT
!Graphics parameters
#dXAxiesUnit 0
#dXAxiesName
#PointDrawFlag 1; 1;
#nXType 0
#nYType 2
#Xmin 40
#Xmax 49.8
...
!SFileName GraphicsName DrawFlag Input1 Mod1 Input2 Mod2
rths25.s rths25.s 1 1 1 2 1
| Key | What it sets | Values |
|---|---|---|
#dXAxiesUnit, #dXAxiesName |
Multiplier and label of the user unit of the X axis ("User" X scale) | number; text |
#PointDrawFlag a; b; |
a — draw points, b — thin them out |
0 / 1 |
#nXType |
X scale | 0 — GHz, 1 — MHz, 2 — kHz, 3 — Hz, 4 — user |
#nYType |
Y scale | 0 — VSWR, 1 — loss, dB, 2 — |S|, 3 — phase of S, rad, 4 — phase of S, deg |
#Xmin, #Xmax, #Ymin, #Ymax |
Window limits | numbers in scale units |
#nAFlagX, #nAFlagY |
Auto scale along X / Y | 0 / 1 |
#EditorFileName |
External editor of the document | path to an .exe |
#sDrawTextFont, #sDrawTextColor, #sDrawBckgrdColor, #sDrawAxiesColor, #sDrawGridColor, #sDrawPointColor |
Font and colors; the last line also contains the color, style and width of the 16 line patterns | numbers |
Curve line: <.s file or expression> <label> <show 0/1> <Input 1> <Mod 1> <Input 2> <Mod 2>.
In the example rths25.s rths25.s 1 1 1 2 1 is the element "port 1, mode 1 — port 2, mode 1", that is,
the transmission between the first and second ports.
3. Main window

- Title — "Tamic S-matrix Output Characteristics Viewer" and, in square brackets, the name of the
document (in the screenshot —
[f_diel_sweep.s]). - Menu bar — "File", "Edit", "View", "Config", "Window", "Help" (Sec. 5). On the right — the document window control buttons.
- Toolbar — 23 buttons (Sec. 4).
-
Graph area:
- the Y axis with the scale label (in the screenshot —
VSWR) and numbers at the grid lines; - the X axis with a label (in the screenshot —
Freq GHz); - a dashed 10 × 10 grid;
- curves with marker points (in the screenshot — squares at every frequency point);
- the legend at the top right: a line sample with markers and the text
- f_diel_sweep.s - 1111, wheref_diel_sweep.sis the graph name and the four digits are "Input 1", "Mod 1", "Input 2", "Mod 2".
The axis and legend labels are drawn by the computational part of the program, so they are in English in both interface languages:
VSWR— voltage standing wave ratio,L dB— loss, dB,|S|— magnitude,Phase S - rad/Phase S - grad— phase. 5. Status bar: - on the left — "Ready"; while the left mouse button is held down inside the axes, the coordinates of the point under the cursor are shown here, for exampleFreq GHz=3.9; VSWR=1.1; - on the right — the name of the current Y scale (in the screenshot —VSWR). - the Y axis with the scale label (in the screenshot —
3.1. Working with the mouse in the graph area
| Action | Where | Result |
|---|---|---|
| Press the left button and drag a frame | Inside the axes | Selection frame; after release the selected part is stretched to the window. An axis along which the frame is smaller than 10 % of the window does not change (along Y, auto scale is switched on in this case); if the frame is smaller than 10 % along both axes, nothing happens. While the button is held down, the cursor coordinates are shown in the status bar |
| Double-click with the left button | Inside the axes | "Resize window": auto scale along X and Y |
| Double-click with the left button | Outside the axes | "ReSize viewport": the axes are fitted to the window, the position is remembered |
| Right-click | Inside the axes | The "Viewport" window |
| Right-click | Outside the axes | The "Characteristics" window |
Before a double-click is handled, the program checks whether the files have changed and rereads them if necessary.
3.2. Automatic update
About every 10 seconds the program checks whether the document and the .s files have changed. If the kernel
has appended a new frequency point (for example, during a sweep), the graph updates by itself. To update immediately —
"Update data" (Ctrl+W).
4. Toolbar

The tooltip shown on hover is the name from the second column. While no document is open, only "Open" and "About" are available. Switched-on "Auto size along X/Y axies" buttons are shown with a frame around the button.
| Button | Name (tooltip) | What it does | Keys |
|---|---|---|---|
![]() |
Open | Opens a .s or .soc file |
Ctrl+O |
![]() |
Add new S-matrix | Selection of one more S-matrix file (filter *.s;*.s2p;*.s4p;*.s6p;*.s8p;*.tab); the curve is added, then the "Characteristics" window opens |
Ctrl+A |
![]() |
Edit parameters | The "Characteristics" window — the list of curves (Sec. 6.2) | Ctrl+D |
![]() |
Viewport | The window of limits, scales, points and colors (Sec. 6.1) | Ctrl+H |
![]() |
Update data | Rereads the document and the .s files, redraws |
Ctrl+W |
![]() |
Resize viewport | The axes take about 70 % of the width and 90 % of the height of the window, with room for the legend on the right | Ctrl+R |
![]() |
Zoom + | The data window becomes half as large along both axes (relative to the center); auto scale is switched off | + |
![]() |
Zoom +X | The same along X only | X |
![]() |
Zoom +Y | The same along Y only | Y |
![]() |
Zoom - | The data window becomes twice as large along both axes | − |
![]() |
Zoom -X | The same along X only | Shift+X |
![]() |
Zoom -Y | The same along Y only | Shift+Y |
![]() |
Resize window | Switches on auto scale along X and Y — all points are visible | Ctrl+T |
![]() |
Auto size along X axies | Switches X auto scale on/off: from the minimum to the maximum frequency of the visible curves | Alt+X |
![]() |
Auto size along Y axies | Switches Y auto scale on/off over the visible part of the curves | Alt+Y |
![]() |
Change Xmin auto | Shifts the window to the first frequency of the data without changing its width. Works only when X auto scale is off | Home |
![]() |
Change Xmax auto | Shifts the window to the last frequency without changing its width. Only when X auto scale is off | End |
![]() |
Decrement Xmin and Xmax | Shifts the window to the left by 10 % of its width; X auto scale is switched off | ← |
![]() |
Increment Xmin and Xmax | Shifts the window to the right by 10 % of its width | → |
![]() |
Decrement Ymin and Ymax | Shifts the window down by 10 % of its height; Y auto scale is switched off | V |
![]() |
Increment Ymin and Ymax | Shifts the window up by 10 % of its height | ↑ |
![]() |
The Windows system print dialog; what is on the screen is printed (for PDF — the "Microsoft Print to PDF" printer) | Ctrl+P | |
![]() |
About | The "About TMCGROUT" window (Sec. 6.8) | — |
All scale changes are written to the
.socdocument at once.
5. Menus
Items that have a button on the toolbar do the same as the button. While no document is open, only "New", "Open...", "Exit" and "About TMCGROUT..." are available.
5.1. The "File" menu

| Item | Keys | What it does |
|---|---|---|
| New | Ctrl+N | A new document window with a title like TMCGROUT1; curves are added with the "Add characteristics" command, the name is set with "Save As..." |
| Open... | Ctrl+O | Open a .s or .soc file |
| Close | — | Close the active document window |
| Save | Ctrl+S | Write the .soc document |
| Save As... | — | Write the document under a new name (default extension .soc) |
| Print... | Ctrl+P | The system print dialog |
| Print Preview | — | The "Print Preview" window |
| Print Setup... | — | The "Print Setup" window (paper, orientation, margins) |
| 1 …, 2 …, 3 …, 4 … | — | Recent files (in the screenshot — f_diel_sweep.s, b_sweep.s, rths25.s, horn2.s) |
| Exit | — | Close the program |
5.2. The "Edit" menu

| Item | Keys | What it does |
|---|---|---|
| Characteristics | Ctrl+D | The "Characteristics" window (Sec. 6.2) |
| Add characteristics | Ctrl+A | Selection of an S-matrix file in the document folder; the curve is added to the document |
| Editor | Alt+F7 | Opens the .soc document in the external text editor set in "Config → Editor" (by default the document contains winword.exe) |
5.3. The "View" menu

| Item | Keys | What it does |
|---|---|---|
| Viewport | Ctrl+H | The "Viewport" window |
| Redraw data | Ctrl+W | Reread the files and redraw |
| Zoom ▸ | — | Submenu 5.3.1 |
| Translate ▸ | — | Submenu 5.3.2 |
| Status Bar | — | Show/hide the status bar |
| Toolbar | — | Show/hide the toolbar |
5.3.1. The "View → Zoom" submenu

| Item | Keys | What it does |
|---|---|---|
| ReSize viewport | Ctrl+R | Fit the axes to the window |
| Zoom + / Zoom +X / Zoom +Y | + / X / Y | The data window becomes half as large along both axes / along X / along Y |
| Zoom - / Zoom -X / Zoom -Y | − / Shift+X / Shift+Y | The data window becomes twice as large |
| Resize window | Ctrl+T | Auto scale along both axes |
| Auto X size | Alt+X | Switch X auto scale on/off |
| Auto Y size | Alt+Y | Switch Y auto scale on/off |
5.3.2. The "View → Translate" submenu

| Submenu | Item | Keys | What it does |
|---|---|---|---|
| Change Xmax, Xmin ▸ | Decrement | ← | Window to the left by 10 % of its width |
| Increment | → | Window to the right by 10 % of its width | |
| Home | Home | Window to the first frequency (when X auto scale is off) | |
| End | End | Window to the last frequency (when X auto scale is off) | |
| Change Ymax, Ymin ▸ | Decrement | V | Window down by 10 % of its height |
| Increment | ↑ | Window up by 10 % of its height |
5.4. The "Config" menu

| Item | What it does |
|---|---|
| Language / Язык ▸ | Interface language (5.4.1) |
| Editor | Selection of a program (*.exe) — the external editor for "Edit → Editor"; it is written to the document |
| Color ▸ | Color submenu (5.4.2) |
| Font | The "Select Font" window (Sec. 6.6) |
| Phase unwrapping: standard (threshold pi) | Check item: how the phase is unwrapped (5.4.3). The item was added on 26.10.2026 |
5.4.1. The "Language / Язык" submenu

"System / Как в системе" — the Windows language; "Русский"; "English". A check mark shows the current choice. The language changes at once and is remembered. The choice is shared by all programs of the package: other programs that are already open at that moment switch to the new language the next time they are started (overview.md, Sec. 6.2).
5.4.2. The "Config → Color" submenu

| Item | What it changes |
|---|---|
| Background | Background of the graph area |
| Grid | Dashed grid |
| Axies | Axes with arrows |
| Point | Marker points (a common color for all curves; in the main window screenshot — red) |
| Graphics | The "Graphics parameters" window (Sec. 6.4) |
5.4.3. The "Phase unwrapping: standard (threshold pi)" item
The check item sets how the program unwraps the phase (converts it from the interval of one turn into a continuous curve over frequency) in expression curves (Sec. 6.2.1).
| State of the check item | How the phase is unwrapped |
|---|---|
| Cleared (default) | As before: the phase decreases monotonically — according to Foster's reactance theorem. This is how the author intended it; the graphs do not change compared with previous versions |
| Checked | Standard unwrapping with the threshold π: a phase jump between neighboring points greater than π (in absolute value) is considered a crossing of the turn boundary and is removed |
The choice is remembered and applies the next time the program is started; when it is switched, the graphs of the active window are redrawn. The same item exists in the TMCROS program.
Which curves it affects. The phase is unwrapped only for expression curves — those that have
an expression in curly braces instead of a file name in the graph line, for example
{[f_diel_sweep.s]} (Sec. 6.2.1). The phase of an ordinary curve from a .s file is never
unwrapped: it is shown within one turn, from 0 to −360° (from 0 to −2π rad), and when it
crosses −360° the curve "jumps" up. If you need a continuous phase, plot the same
characteristic as an expression — {[name.s]}. If user units are selected along the X axis, the phase is not
unwrapped for expression curves either. (Checked on 26.10.2026 on the Qt6 release.)

Phase of S11 of the sweep f_diel_sweep.s (3–4.8 GHz), expression curve {[f_diel_sweep.s]}. On the left the check item
is cleared: the phase only decreases, and between 3.8 and 4 GHz it drops by 250°. On the right the check item is set
(standard unwrapping, threshold π): the same transition is greater than π in absolute value, so it is considered a phase
increase of 110°.
5.5. The "Window" menu

| Item | What it does |
|---|---|
| New Window | The same document in one more window |
| Cascade | Document windows in a cascade |
| Tile | Document windows side by side, without overlapping |
5.6. The "Help" menu

"About TMCGROUT..." — the About dialog (Sec. 6.8).
6. Program windows
6.1. The "Viewport" window
Opened by: the "Viewport" button, View → Viewport (Ctrl+H) or a right-click inside the axes.

The "Graphics window size" group
| Element | What it sets | Allowed values |
|---|---|---|
| "Automatic XSize Flag" check box | X limits from the data; the "X max", "X min" fields are unavailable | on/off |
| X max, X min | Limits along the X axis in X scale units (in the screenshot 3…4.8 GHz) | X max > X min |
| Format (upper) | Number format at the X axis in printf style, for example %4.3lg, %.2f, %e |
up to 300 characters |
| "Automatic YSize Flag" check box | Y limits from the data; the "Y max", "Y min" fields are unavailable | on/off |
| Y max, Y min | Limits along the Y axis | Y max > Y min |
| Format (lower) | Number format at the Y axis | up to 300 characters |
| "Default Grid Format" | Writes %4.3lg into both format fields |
— |
The "Graphics type" group
X-scale:
| Radio button / field | X axis |
|---|---|
| GHz, MHz, KHz, Hz | Frequency in the selected units |
| User | Frequency in Hz multiplied by the number from the "Unit" field; the axis label is taken from the "Name" field. The "Name" and "Unit" fields are available only when "User" is selected |
| "Name" field | Label of the user unit (up to 99 characters) |
| "Unit" field | Multiplier: X = frequency (Hz) × "Unit". For example, 1e-9 gives gigahertz |
Y-scale (S is the complex value of the selected S-matrix element):
| Radio button | Y axis | Formula in the program |
|---|---|---|
| WSVR | Voltage standing wave ratio (VSWR) | (1 + |S|)/(1 − |S|); when |S| is close to 1, 0.9999 is substituted |
| L dB | Loss in decibels (a positive number) | −20·lg |S| |
| |S| | Magnitude of the element | |S| |
| Phase S rad | Phase of the element in radians | arg S |
| Phase S grad | Phase in degrees | arg S · 180/π |
VSWR makes sense for a reflection element (Input 1 = Input 2), loss and magnitude — for any element. For expression curves the phase is unwrapped as selected in the Config → Phase unwrapping item (Sec. 5.4.3); for ordinary curves the phase is not unwrapped (from 0 to −360°).
The "Point" group
| Element | What it does | Values |
|---|---|---|
| "DrawPoint" | Markers at every frequency point (each of the 16 curves has its own shape, the color is common — "Config → Color → Point"). While it is cleared, the next two elements are unavailable | on/off |
| "Reduct" | About 20 markers on the visible part of the curve instead of a marker at every point | on/off |
| "PointSize" | Marker size multiplier | 0…100; 1 — normal |
The "Color" group ("Background", "Grid", "Axies", "Point", "Graphics") and the "Font" button apply what has been entered in the window (like "OK"), close it, open the color selection window, "Graphics parameters" or "Select Font", and after that open "Viewport" again.
Bottom part
| Element | What it is |
|---|---|
| "S-matrix output characteristics file name" field | Read-only: the path to the .soc document |
| OK | Apply, redraw, write the document. The label formats and the point size are also remembered as the values for the next documents |
| Cancel | Close without changes |
6.2. The "Characteristics" window
Opened by: the "Edit parameters" button, Edit → Characteristics (Ctrl+D) or a right-click outside the axes.

| Element | What it is | Allowed values |
|---|---|---|
| "S-matrix output characteristics file name" field | Read-only: the path to the .soc document |
— |
| "S FileName or expression" column (20 rows) | Name of a .s file (relative to the document folder) or an expression in curly braces over several files (Sec. 6.2.1). To delete a curve, erase the name in its row |
file name / expression |
| "Input 1", "Mod 1" | The first port and its mode — the address of the S-matrix element | integers 1…10000 |
| "Input 2", "Mod 2" | The second port and its mode | integers 1…10000 |
| "GraphName" | Label in the legend; if empty, the file name is used; spaces are removed | text |
| "Visible" | Show the curve | on/off |
| OK | Write the changes, reread the data, redraw | — |
| Cancel | Close without changes | — |
| Add | Apply the changes, then select one more S-matrix file; after that the window opens again | — |
An element with "Input 1 = Input 2" is the reflection from a port (for example, 1-1-1-1 is S11), different ports mean the transmission between them (1-1-2-1). Which of the two ports is the excited one (matrix column) and which is the receiving one (row) — see the checklist, item 2.
Curves 1–16 are drawn with patterns 1–16 of the "Graphics parameters" window, curves 17–20 with patterns 1–4.
6.2.1. Expression curves
Instead of a file name you can write an expression in curly braces {…}, in which the names of .s files
are in square brackets […], with arithmetic operations and functions between them (evaluated by the
expression library of the package). All files in an expression must have the same set of frequencies, otherwise
Error_expression_different_freq_array_… appears in the legend. A detailed description of the syntax is in the
code documentation (docs/api/viewers/tmcgrout.md, Sec. 10).
Single curly braces only (since 29.10.2026). The formula of a curve is written in single curly braces
{...}. Notation with double braces {{...}} is a syntax error: the curve is not plotted, and an error message
is shown in the curve label.
The phase of an expression curve is unwrapped over frequency by the method selected in the Config → Phase unwrapping: standard (threshold pi) item (Sec. 5.4.3): by default — a monotonically decreasing phase, with the check item set — standard unwrapping with the threshold π.
6.3. The file open window
The "Open" and "Add new S-matrix" buttons open the standard Windows file selection window. "Add new S-matrix" opens in the document folder.
6.4. The "Graphics parameters" windows
Two windows go under this title.
The list of 16 line patterns (Config → Color → Graphics or the "Graphics" button in "Viewport"):

| Element | What it does |
|---|---|
| 16 patterns (on the left) | Line appearance of curves 1…16 (curves 17–20 repeat patterns 1–4) |
| "Change" in a row | The line style window for this pattern |
| "Default" | Return the original colors, styles and widths to all patterns |
| OK / Cancel | Apply and write to the document / close without changes |
Style of one line (the "Change" button):

| Element | What it does | Values |
|---|---|---|
| "Style" | "Solid", "Dash", "Dot", "DashDot", "DashDotDot" (with samples on the left) | one of five |
| "Width" | 1, 2, 3, 4, 5 pixels (from top to bottom, with samples) | one of five |
| Color | The "Select Color" window for the line | — |
| OK / Cancel | Remember / close without changes | — |
The width is available only for a solid line: with another style it is reset to 1 pixel, and the other options are unavailable.
6.5. The "Select Color" window

| Element | What it does |
|---|---|
| Color field | Saturation horizontally, brightness vertically |
| Rainbow strip | Hue |
| Eyedropper button (top right) | Pick a color anywhere on the screen with a click; Esc — cancel |
| "BEFORE / AFTER" | The original and the selected colors with #RRGGBB codes; clicking "BEFORE" restores the original color |
| "HEX" | Code #RRGGBB or #RGB |
| R, G, B | Color components, 0…255 (slider and field) |
| "PROJECT PALETTE", "GRAPH COLORS", "RECENT" | Ready-made colors; "Recent" — colors selected earlier ("Selected colors will appear here" while empty) |
| Cancel / OK | Close without changes / apply |
6.6. The "Select Font" window

The font applies to the numbers at the axes, the axis labels and the legend.
| Element | What it does |
|---|---|
| "Font" | Font name |
| "Font style" | Regular, Italic, Bold, Bold Italic |
| "Size" | Size in points |
| "Effects" | "Strikeout", "Underline" |
| "Writing System" | Character set ("Any") |
| "Sample" | Text sample |
| OK / Cancel | Apply / close |
6.7. Print windows
- Print (Ctrl+P) — the Windows system print dialog; the image is printed as it is on the screen; for PDF — the "Microsoft Print to PDF" printer.
- Print Preview — the "Print Preview" window.
- Print Setup... — the "Print Setup" window (paper, orientation, margins).
6.8. The "About TMCGROUT" window

| Element | What it is |
|---|---|
| Icon, "TMCGROUT" | The program |
| Description | "Viewer for device S‑matrix files." and "TMC Suite viewer of S-matrix output characteristics." |
| "Version 5.0", "2026", "Windows · x64" | Package version, year, platform |
| "AUTHOR: K. N. Klimov, © 2026" | Author |
| GitHub, LinkedIn, ResearchGate, eLibrary | Links to the author's pages (open in the browser) |
| www.tamic.ru | Project website |
| "User Manual" | The PDF in the interface language next to the program — TMC_Suite_5.0_Руководство_пользователя.pdf or TMC_Suite_5.0_User_Manual.pdf (the "PDF" tag), and if it is missing — the manual on the website www.tamic.ru/docs/user-manual/index.html (the "ONLINE" tag) |
| "TMC Suite 5.0 · Qt …" | Versions of the package and of the Qt library |
| OK | Close |
7. A single frequency in the file and multi-frequency computation
7.1. If the .s file has a single frequency
One computation step with the SMATRIX directive writes one frequency point to the .s file — the frequency from
this directive (in single-frequency mode it must coincide with the FREQ frequency of the step, see
Task file .tpl, Sec. 7.4). Then:
- with auto scale along X the minimum and maximum frequencies coincide — the X axis is degenerate (min = max), there is no curve, at best one point is visible;
- the zoom and shift buttons along X change nothing — they multiply the window width, and it is zero.
This is not an error of the program. The values at the single point can be viewed by switching off X auto scale and setting the X limits around this frequency manually in "Viewport" (for example, X min = 9.9 and X max = 10.1 GHz for a 10 GHz point). A curve over frequency needs a sweep — a set of frequencies in one file.
7.2. How to get a .s file with many frequencies
| Method | How | Where it is described |
|---|---|---|
| Sweep over steps | The task has several #STEP steps, each with its own FREQ, and all of them write SMATRIX to the same file. Each step adds a point. A frequency sweep can be set with a single program (macro) of the task |
Task file .tpl, Secs. 7.4 and 10; Multi-frequency computation |
| A single broadband pass | The incident wave is set by a .sig file with many frequencies; the kernel with SMATRIX itself writes all frequencies of the band to the .s file |
Multi-frequency computation, samples/MULTIFREQ/README.md |
| Conversion in TMCROS | The "To S-matrix" command from .t files (one per frequency or one broadband file) |
TMCROS, Sec. 6.3 |
The
.sfile is appended to, not overwritten. Before a repeated computation delete the old.sfile, otherwise points of different computations will be mixed in it. It can be deleted manually or with the "Delete" button in the TMCROS export window.Zeros at individual frequencies. Since 26.10.2026 an error at one step of a sweep (or at one frequency of a multi-frequency computation) does not abort the computation: at this frequency the kernel writes an S-matrix of zeros to the
.sfile, and |S| at this point is zero on the graph. The reason is in the kernel messageError at step N (f): …(Headless mode, item 1.4).
8. Typical tasks step by step
8.1. Plot |S11| and |S21| of a two-port device
- Open the
.sfile (Ctrl+O) — the S11 curve (element 1-1-1-1) appears. - Click "Edit parameters" (Ctrl+D).
- In the second row enter the same
.sfile name; set "Input 1" = 1, "Mod 1" = 1, "Input 2" = 2, "Mod 2" = 1; "GraphName" — for example,S21; select "Visible" → OK. - Ctrl+H → "Y-scale" → "|S|" → OK.
- Ctrl+T — fit both curves into the window.
8.2. View the VSWR or the loss
Ctrl+H → "Y-scale" → "WSVR" or "L dB" → OK.
8.3. Compare two computations
- Open the first
.sfile. - "Add new S-matrix" (Ctrl+A) → select the second
.sfile. - In the "Characteristics" window set the same ports/modes and different "GraphName" values → OK.
- If necessary, change the color of the second curve: Config → Color → Graphics → "Change" in the second row.
8.4. Set the X axis in user units
Ctrl+H → "X-scale" → "User" → enter a label in "Name" (for example, f, GHz), and a multiplier in "Unit"
(for example, 1e-9) → OK.
8.5. Prepare a figure for a report
- Set the font (Config → Font), the colors (Config → Color), the line style.
- The label "Format" — for example,
%.1f. - File → Print Preview → Ctrl+P → "Microsoft Print to PDF".
8.6. Choose the phase unwrapping method
- Open the Config menu.
- Click the Phase unwrapping: standard (threshold pi) item: check item set — standard unwrapping with the threshold π; cleared — the phase decreases monotonically (as before).
- The graphs of the active window are redrawn; the choice is remembered.
9. Frequently asked questions and errors
| Situation | Cause | What to do |
|---|---|---|
| The graph is a single point or empty, zooming does not work | The .s file has a single frequency (Sec. 7.1) |
Compute a sweep or a broadband pass |
| Another file was opened — the curve is outside the window | The limits are remembered; with auto scale off, new data can be beyond the edge | "Auto size along X/Y axies" (Alt+X, Alt+Y) or Ctrl+T |
Error_when_read_<file> in the legend |
The .s file is not found, is empty, or the T_min…T_max window of the SMATRIX directive did not cover the signal (there is not a single point in the .s file) |
Check the file and the averaging window in the task (Task file .tpl, Sec. 7.4) |
Error_expression_… in the legend |
An error in the expression or different frequency sets in the files | Sec. 6.2.1 |
| The graph has points of different computations | The .s file was appended to by several computations |
Delete the .s file and recompute |
| |S| = 0 at one frequency (a dip to zero) | There was an error at this frequency during the computation — the kernel wrote zeros (Sec. 7.2) | Find the kernel message Error at step N (f): …, remove the cause and recompute |
| The phase of an expression curve "jumps" differently than expected | A different phase unwrapping method is selected | Config → Phase unwrapping: standard (threshold pi) (Sec. 5.4.3) |
| The "Change Xmin auto" / "Change Xmax auto" buttons do not work | X auto scale is on | Switch it off (Alt+X) |
| The VSWR goes to very large values | |S| is close to 1 (total reflection) | This is a property of the data; look at |S| or the loss |
| The graph did not update after the computation | The update happens every ~10 s | Ctrl+W |
A .$OC file appeared next to the .soc |
A .s file was opened for which a .soc already existed |
This is a backup document, it can be deleted |
| "Edit → Editor" does not open the file | The editor is not set (by default winword.exe) |
"Config → Editor" → for example, notepad.exe |











































