86 QString name = QFileDialog::getSaveFileName(0,
"Save MCA Data...");
95 FILE *f = fopen(qPrintable(name),
"w");
97 QVector<QVector<double> > cols;
103 fprintf(f,
"\t%s",qPrintable(mca->
pvName()));
104 cols.append(mca->
value());
109 int ncols = cols.count();
113 nrows = cols[0].count();
116 printf(
"%d rows x %d columns\n", nrows, ncols);
118 for (
int i=0; i<nrows; i++) {
121 for (
int j=0; j<ncols; j++) {
122 fprintf(f,
"\t%g", cols[j][i]);
void append(EpicsMCA *mca)
void setPresetRealTime(double t)
void setPresetRealTime(double t)
QList< EpicsMCA * > m_MCAList
void setPresetLiveTime(double t)
QVector< double > value()
void setPresetLiveTime(double t)
MCAGroup(QObject *parent)
void write_data(QString name)