10-03-2008 10:12 AM
Dear All,
I came across an NIMath(), GetPulseParameter( CNiVector &waveform, PulseParameter ¶m). I know how to handle a CNiVector type of data. My problem
lies with the PulseParameter structure. It is strucure in the CNiMath class. Please show me a concrete example.
I tried accessing the structure member and referred to c programming references but did not work. Now, I am lost.
Thanks,
a
Solved! Go to Solution.
10-09-2008 10:05 PM - edited 10-09-2008 10:07 PM
I eventually figured it out after a colleague shed light on it. Got braindead for a while :manmad:. Anyway, I am sharing the solution:
struct CNiMath::PulseParameters param;
CNiMath::GetPulseParameters(v, param);
Please refer to the excel plot for this 1Vpp data running at 250KS/s, 100Hz & 10K sample size. The ffg table is the derived measurements from the GetPulseParameters().
The amplitude, top & base parameters are quite correct assuming that the unit is in Volt. However, I see that the polarity is different.
The delay & width are both incorrect. I expect the width to be @5ms.
It is also not clear if the measurements were based on 1 period or the whole data. Moreovver, I doubled the sample size at 20K
and the measurements were different. Why ? Thanks!!!