1 ipeanalyzer2::gethardwareinfo, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 27: Remarks, Example, Ipeanalyzer2::gethardwareinfo

Teledyne LeCroy
Automation API for PETracer/PETrainer
22
3.3.1 IPEAnalyzer2::GetHardwareInfo
HRESULT GetHardwareInfo (
[in] EHardwareType type,
[out, retval] int* info )
Returns information about the hardware (PETracer/PETrainer™) connected.
Parameters
type
Hardware type being queried; the EHardwareType
enumerator has the
following values:
HARDWARETYPE_PETRACER
( 0 ) –
PETracer
HARDWARETYPE_PETRAINER
( 1 ) -
PETrainer
info
The following values can be returned
When
type
is
HARDWARETYPE_PETRACER:
1 – PETracer ML
2 – PETracer ML (2 units)
3 – PETracer EML
4
–
Edge T1-4
5
–
(reserved)
6
–
PETracer Summit / Summit T2-16
7
–
Summit T3-16
8
–
Summit T3-8
9
–
Summit T28
10
–
Summit T3-8 (2 units)
11 – Summit T24
When type
is
HARDWARETYPE_PETRAINER:
0 – PETrainer ML
1 – PETrainer EML
2 – Summit Z2-16
3 – Summit Z3-16
Return values
Remarks
Example
C++:
IPEAnalyzer2* poAnalyzer;
. . .
int tracer_type = 0;
int trainer_type = 0;
try
{
trainer_type = poAnalyzer->GetHardwareInfo( HARDWARETYPE_PETRAINER );
}
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 );