Continiously store data from QSerialPort
Locked
Unsolved
General and Desktop
-
wrote on 18 Apr 2017, 06:27 last edited by VRonin
Hello Everyone
I want to record data from a device which is connected to my computer with USB. I can communicate with the device. Now i want to record the data from the device continuously and stored it. So to do this should i have to set the buffer length? If yes then how can i do it. Please help.
Thanks in advancechanged title to something more meaningful ~VRonin
-
wrote on 18 Apr 2017, 07:20 last edited by
QFile* storage=new QFile("storage.dat",serial); storage->open(QFile::WriteOnly); QObject::connect(serial,&QSerialPort::readyRead,[=]()->void{storage->write(serial->readAll());});
-
wrote on 18 Apr 2017, 08:38 last edited by
Hello @VRonin
I couldnt get your answer.
if you refer following topic i want store data continuously. I am using NI device to record data from a sensor. I know how to communicate and read write the NI device using DAQmx libraries.
https://forum.qt.io/topic/78216/how-to-continuously-acquire-signal/3 -
wrote on 18 Apr 2017, 08:55 last edited by
I'll mark this as duplicate and continue on the other one then
1/4