Solved how to echo directly from dynamic input
-
@jsulm
Now, If I want to update two different register (out_altvoltage0_TX_LO_frequency and out_altvoltage1_TX_LO_frequency ) with same value.
The how can execute code using single QFile .
I tried like follows but not worked:QFile f("/sys/bus/iio/devices/iio:device1/out_altvoltage0_TX_LO_frequency | out_altvoltage1_TX_LO_frequency");
if (f.open(QIODevice::WriteOnly | QIODevice::Text)) {
f.write(ui->lineEdit_2->text().toLatin1());
f.close();
} -
Hi,
You can't open two files at the same time like that. You can use a loop and open one after the other.