yapatel
1st April 2014, 18:57
Hi -
I have developed a real-time application on Linux using QT4. The software acquires data using an A-to-D and performs some floating point operation on the data before saving it or sending out some signal using a D-to-A.
I wish to add an oscilloscope module/widget to this application and want to know what are some best practices. I am not completely familiar with or understand all the ways possible for doing this, so I am hoping some useful feedback will be provided by QT experts.
The things (I think) I know are that I want to have a static refresh rate for the display (250ms) that takes a segment of the acquired data and plots it on the display. The questions I have are - is it better to use a standard Mdi window and then draw a grid on it and then plot on the grid or is it more computationally efficient to use something like QGraphicsScene or QGraphicsView?
The oscilloscope should be able to plot multiple channels of data at once, too.
I may be completely wrong, but hopefully someone can provide some useful insight on how I should go about doing this.
Thanks.
I have developed a real-time application on Linux using QT4. The software acquires data using an A-to-D and performs some floating point operation on the data before saving it or sending out some signal using a D-to-A.
I wish to add an oscilloscope module/widget to this application and want to know what are some best practices. I am not completely familiar with or understand all the ways possible for doing this, so I am hoping some useful feedback will be provided by QT experts.
The things (I think) I know are that I want to have a static refresh rate for the display (250ms) that takes a segment of the acquired data and plots it on the display. The questions I have are - is it better to use a standard Mdi window and then draw a grid on it and then plot on the grid or is it more computationally efficient to use something like QGraphicsScene or QGraphicsView?
The oscilloscope should be able to plot multiple channels of data at once, too.
I may be completely wrong, but hopefully someone can provide some useful insight on how I should go about doing this.
Thanks.