11-07-2005 04:13 AM
11-07-2005 04:43 AM
11-07-2005 05:25 PM
Hey Bird,
Ther is an updater here: Measurement Studio Version 6.0 for Windows--Update for Visual Basic 6.0 and Visual C++ 6.0 (patch) . Try that and let me know how it turns out.
11-07-2005 07:44 PM
11-08-2005 09:00 AM
Hey Bird,
Is there any way to print out each of the values that you are passing to the HarmonicAnalyzer() function. I'm just curious to see if maybe I can reproduce it on my end. Also, let me know what all the values are when it works for you.
11-08-2005 06:43 PM
nSamplesPerSec : 192000
nChannels : 2
wBitsPerSample : 16
TotalSamples : 4096
11-09-2005 02:54 AM
Hi Sam,
In my source code I try to implement the following code in the begin of the above Cal_THD function:
try
{
double i=0;
double j=100/j;
// int *p=0;
//*p = 100;
} catch (...)
{
return false; //check if I can catch this exception
}
And if compile it with Dlg AP, I can not catch that error.
And if compile the same code with DLL, I can catch the above error.
Do you have any idea?
But the following exception in Dlg AP could be catched.
// int *p=0;
//*p = 100;
Bird
11-09-2005 01:23 PM
11-09-2005 07:44 PM
Hi Sam,
I implement a Audio Class (Call CAudio_Capture ) and this class need to include NI component work to calculate THD / AC/DC.
I could implement a dialog AP to include this class or a DLL file to use this Class, right?
In the dialog AP, there is no exception when I use the above Audio class when I try to divide zero. (I think that is NI component to handle that exception and doesn't throw it out.)
But in DLL, there will have execption if I try to divide zero. and after exception,the function NI "HarmonicAnalyzer" only return 2 harmonic intead of 5 ones I setted.
So could you have a look of this inside NI component.
11-10-2005 01:06 PM
I'm not able to reproduce the error. Maybe you can post your project and I'll see if I can reproduce it? Thanks Bird.