Skip to content

Commit

Permalink
Major revamp of triggering in ngscopeclient. Trigger groups now are f…
Browse files Browse the repository at this point in the history
…unctional, but there's no UI to independently start/stop them. No setup wizard etc yet.
  • Loading branch information
azonenberg committed Sep 9, 2023
1 parent 56e52db commit e66ea3c
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 256 deletions.
6 changes: 3 additions & 3 deletions src/ngscopeclient/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,17 @@ void MainWindow::ToolbarButtons()

//Trigger button group
if(ImGui::ImageButton("trigger-start", GetTexture("trigger-start"), buttonsize))
m_session.ArmTrigger(Session::TRIGGER_TYPE_NORMAL);
m_session.ArmTrigger(TriggerGroup::TRIGGER_TYPE_NORMAL);
Dialog::Tooltip("Arm the trigger in normal mode");

ImGui::SameLine(0.0, 0.0);
if(ImGui::ImageButton("trigger-single", GetTexture("trigger-single"), buttonsize))
m_session.ArmTrigger(Session::TRIGGER_TYPE_SINGLE);
m_session.ArmTrigger(TriggerGroup::TRIGGER_TYPE_SINGLE);
Dialog::Tooltip("Arm the trigger in one-shot mode");

ImGui::SameLine(0.0, 0.0);
if(ImGui::ImageButton("trigger-force", GetTexture("trigger-force"), buttonsize))
m_session.ArmTrigger(Session::TRIGGER_TYPE_FORCED);
m_session.ArmTrigger(TriggerGroup::TRIGGER_TYPE_FORCED);
Dialog::Tooltip("Acquire a waveform immediately, ignoring the trigger condition");

ImGui::SameLine(0.0, 0.0);
Expand Down
2 changes: 1 addition & 1 deletion src/ngscopeclient/ManageInstrumentsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void ManageInstrumentsDialog::TriggerGroupsTable()
ImGui::TextUnformatted(
"Drag to the root of a trigger group to add this instrument to the group.\n"
"Drag to an ungrouped instrument to create a new group under it.\n"
"Drag an instrment to the root of its current group to make it the primary.\n");
"Drag an instrument to the root of its current group to make it the primary.\n");
ImGui::PopTextWrapPos();
ImGui::EndTooltip();
}
Expand Down
Loading

0 comments on commit e66ea3c

Please sign in to comment.