Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse parameter, nimath

Solved!
Go to solution

Dear All,

 

I came across an NIMath(), GetPulseParameter( CNiVector &waveform,  PulseParameter &param).  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

 

Message 1 of 2
(6,961 Views)
Solution
Accepted by topic author angelmcdoggie

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!!!

 

 

 

Message Edited by angelmcdoggie on 10-10-2008 11:07 AM
0 Kudos
Message 2 of 2
(6,916 Views)