In response to one of my questions about SineWave, you stated:
Elton Wells on 7/31/2003 answered:
"Take a look at these two overloads of CNiMath::SineWave:
CNiMath::SineWave(CNiReal64Vector& x, unsigned int samples, double& phase, double amplitude, double freq);
CNiMath::SineWave(CNiReal64Vector& x, double& phase, double amplitude, double freq);
Note that these two overloads take a phase parameter by reference. This parameter specifies the initial phase at function call time and will contain the phase for the next portion of the sine wave at function return time. If you use the same double variable across multiple calls to these overloads of CNiMath::SineWave and if you don't modify the variable between calls, it should give
you a continuous signal across the multiple calls.
- Elton"
Can you explain more about this and type in a sample code? When I tried that in Measurement Studio, they gave me two options:
CNiMath::SineWave(CNiReal64Vector &x, double amplitude)
CNiMath::SineWave(CNiReal64Vector &x, unsigned int samples, double amplitude)
I am using Visual C++ 6 and Measurement Studio.