beautypg.com

4 ianalyzer::stopgeneration, Stops any current generation in progress, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 14: Remarks, Example, Ipeanalyzer* poanalyzer, Ianalyzer::stopgeneration

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

9

3.1.4 IAnalyzer::StopGeneration


HRESULT StopGeneration ( )

Stops any current generation in progress.

Return values

ANALYZERCOMERROR_UNABLESTARTGENERATION

Unable to stop generation (invalid state, etc.)

Remarks


Example


C++:

IPEAnalyzer* poAnalyzer;

. . .

try
{
poAnalyzer->StopGeneration();
}
catch ( _com_error& er)
{

if (er.Description().length() > 0)

::MessageBox( NULL, er.Description(), _T("PETracer client"), MB_OK );

else

::MessageBox( NULL, er.ErrorMessage(), _T("PETracer client"), MB_OK );

return 1;

}