Skip to content
Snippets Groups Projects
Commit 00b1942a authored by delleceste's avatar delleceste
Browse files

Request #17730: revert to single VTargetX(3000), VTargetX(5000) and so

parent c5794628
No related branches found
No related tags found
No related merge requests found
......@@ -19,14 +19,18 @@ Channel::~Channel()
void Channel::onPbFixClicked() {
// FixedX(0) then VTargetX(NNNN) then FixedX(1) where X is the channel and NNNN the voltage
// properties set in FourUHV::onPsListReady
const QString& t0 = QString("$1/Fixed%1(0)").arg(sender()->property("channel").toInt());
//
// Request #17730: revert to single VTargetX(3000), VTargetX(5000) and so
//
// const QString& t0 = QString("$1/Fixed%1(0)").arg(sender()->property("channel").toInt());
const QString& t1 = sender()->property("target").toString();
const QString& t2 = QString("$1/Fixed%1(1))").arg(sender()->property("channel").toInt());
// const QString& t2 = QString("$1/Fixed%1(1))").arg(sender()->property("channel").toInt());
foreach(const QString& t, QStringList() << t0 << t1 << t2) {
foreach(const QString& t, QStringList() << t1) {
QuWriter *w = new QuWriter(this, cu_pool, m_ctrl_fpool);
w->setAutoDestroy(true);
w->setTarget(t);
// printf("executing \"%s\"\n", qstoc(w->target()));
w->execute();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment