##// END OF EJS Templates
Function added to the plugin to store packets in CSV format.
Function added to the plugin to store packets in CSV format.

File last commit:

r20:eedc59c3c383 default
r55:4ea52012da18 default
Show More
wfpacket.cpp
24 lines | 469 B | text/x-c | CppLexer
#include "wfpacket.h"
WFPacket::WFPacket(QObject *parent) :
QObject(parent)
{
this->nbSamples = XMAX;
//
wf_v = (short*) malloc(2*XMAX);
wf_e1 = (short*) malloc(2*XMAX);
wf_e2 = (short*) malloc(2*XMAX);
wf_b1 = (short*) malloc(2*XMAX);
wf_b2 = (short*) malloc(2*XMAX);
wf_b3 = (short*) malloc(2*XMAX);
}
WFPacket::~WFPacket()
{
free(wf_v);
free(wf_e1);
free(wf_e2);
free(wf_b1);
free(wf_b2);
free(wf_b3);
}