From 72ca0f78c3c5c9f787b86b552e75323927836686 Mon Sep 17 00:00:00 2001 From: Yunus Bicer Date: Mon, 15 Dec 2025 12:54:49 -0500 Subject: [PATCH] DI/DO channel activation method updated --- src/main_window.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main_window.cpp b/src/main_window.cpp index 389538f0..ae9b3d6d 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -639,15 +639,20 @@ void MainWindow::loadDAQSettings( for (const auto& channel_id : userprefs.childGroups()) { current_channel_id = channel_id.toUInt(); userprefs.beginGroup(channel_id); - tmp_device->setActive(userprefs.value("active").value()); + tmp_device->setChannelActive(DAQ::ChannelType::DI, + current_channel_id, + userprefs.value("active").value()); + userprefs.endGroup(); } userprefs.endGroup(); // Digital Input userprefs.beginGroup("DO"); for (const auto& channel_id : userprefs.childGroups()) { current_channel_id = channel_id.toUInt(); - userprefs.beginGroup(channel_name); - tmp_device->setActive(userprefs.value("active").value()); + userprefs.beginGroup(channel_id); + tmp_device->setChannelActive(DAQ::ChannelType::DO, + current_channel_id, + userprefs.value("active").value()); userprefs.endGroup(); } userprefs.endGroup(); // Digital Output