2 ipeanalyzer2::resethardware, Resets the hardware specified, Parameters – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 29: Remarks, Example, Ipeanalyzer2* poanalyzer, Ipeanalyzer2::resethardware

Teledyne LeCroy
Automation API for PETracer/PETrainer
24
3.3.2 IPEAnalyzer2::ResetHardware
HRESULT ResetHardware (
[in] EHardwareType type,
[in] EResetType reset_type )
Resets the hardware specified.
Parameters
type
Hardware type to reset; the EHardwareType
enumerator has the
following values:
HARDWARETYPE_PETRACER
( 0 ) –
PETracer
HARDWARETYPE_PETRAINER
( 1 ) -
PETrainer
reset_type
Type of the reset; the EResetType
enumerator has the following
values:
RESETTYPE_LINK
( 0 ) –
link reset
Remarks
Example
C++:
IPEAnalyzer2* poAnalyzer;
. . .
try
{
poAnalyzer->ResetHardware( HARDWARETYPE_PETRAINER, RESETTYPE_LINK );
}
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;
}