Teledyne LeCroy ST Automated Test Suite User Manual User Manual
Page 13

13
The STATS Object has also the following configuration functions:
o
HRESULT GetProjectPath(BSTR* pbstrProjectPath): Returns the project path.
o
HRESULT SetProjectPath(BSTR bstrProjectFilePath): Sets the project path. It changes
the project file path in the settings dialog of the STATS software.
o
HRESULT GetTraceFilePath(BSTR* pbstrTraceFilePath): Returns the trace file path
generated by the SAS or SATA software.
o
HRESULT SetTraceFilePath(BSTR bstrTraceFilePath): Sets the trace file path. It
changes the trace file path in the settings dialog of the STATS software.
o
HRESULT GetDUTName(BSTR* pbstrDUTName): Returns the DUT name.
o
HRESULT SetDUTName(BSTR bstrDUTName): Sets the DUT name. It changes the
DUT name in the configuration dialog of the STATS software.
o
HRESULT SetReportPath(BSTR bstrReportPath): Sets the generated report path. It
changes the report path in the settings dialog of the STATS software.
The SierraSASAnalyzer object/SierraSTAnalyzer object has the following functions available:
o
HRESULT GetVersion([
in
] EAnalyzerVersionType version_type,
[
out
,
retval
] WORD* analyzer_version);
o
HRESULT OpenFile([
in
] BSTR file_name, [
out
,
retval
] IDispatch** trace);
o
HRESULT StartGeneration([
in
] BSTR gen_file_name);
o
HRESULT StopGeneration(
void
);
o
HRESULT StartRecording([
in
] BSTR ro_file_name);
o
HRESULT StopRecording([
in
] BOOL abort_upload);
o
HRESULT MakeRecording([
in
] BSTR ro_file_name, [
out
,
retval
] IDispatch** trace);
o
HRESULT LoadDisplayOptions([
in
] BSTR do_file_name, [
in
]
short
do_layers);
o
HRESULT GetRecordingOptions([
out
,
retval
] IDispatch** recording_options);
o
HRESULT ResumeGeneration(
void
);
o
HRESULT ActivateDevice( [
in
] BSTR bstrFileName);
o
HRESULT DeactivateDevice();
o
HRESULT SetScenarioToPort([
in
]
int
nBoardIndex, [
in
]
int
nPortIndex,
[
in
]BSTR bstrLibraryName, [
in
]BSTR bstrScenarioName, [
out
,
retval
]
int
*
pnErrorCode);
o
HRESULT StartScenario([
in
]
int
nBoardIndex, [
in
]
int
nPortIndex);
o
HRESULT StopScenario([
in
]
int
nBoardIndex, [
in
]
int
nPortIndex);
o
HRESULT SetPortConfiguration([
in
]
int
nBoardIndex, [
in
]
int
nPortConfiguration);
o
HRESULT StartGenerationByPort([
in
] BSTR gen_file_name, [
in
]
int
nUnitIndex,
[
in
]
int
nPortIndex);
o
HRESULT StopGenerationByPort([
in
]
int
nUnitIndex, [
in
]
int
nPortIndex);
o
HRESULT GetTrainerExitCode([
in
]
int
nBoardIndex, [
in
]
int
nPortIndex,
[
out
,
retval
] BYTE* pyTrainerExitCode);
o
HRESULT LoadPreEmphasisSignalFile([
in
]BSTR bstrPreEmphasisSignalFile,
[
out
,
retval
]BOOL* pbRetval);
For detailed descriptions of these functions, refer to the Automation API Reference Manual.