beautypg.com

Attachtodevice, Getdeviceidlist, Detachdevice – Teledyne LeCroy Conquest API Manual - API Manual User Manual

Page 10: Savesmpastext

background image

IUsbGeneral Services Interface

4

AttachToDevice

Declaration:

long AttachToDevice(LPCTSTR lpctstrMacAddress)

Input(s):

lpctstrMacAddress specifies hardware MAC address.

Return Value: Zero if AttachToDevice was successful. Otherwise, non-zero.

Each nonzero value indicates an error code.

Remark:

This method attaches the software to the requested hardware
specified by its MAC address.

See Also

API Errors

GetDeviceIDList

Declaration:

BSTR GetDeviceIDList(long nPortType)

Input(s):

nPortType specifies hardware port type.
Valid port types are listed below.

Return Value: Each Device ID is separated with ',', and each Device ID number is in

hexadecimal format, such as
"0200000E850002D8,0400000E85000131".

Remark:

This method enumerates all available devices on the selected port
and returns available device IDs in string format.

DetachDevice

Declaration:

long DetachDevice()

Input(s):

None

Return Value: Zero if the DetachDevice was successful. Otherwise, non-zero.

Each non-zero value indicates an error code

.

Remark:

This function detaches the device from the analyzer.

See Also

API Errors

SaveSmpAsText

Declaration:

long SaveSmpAsText(LPCTSTR strSmpFilePath,
LPCTSTR strTextFilePath)

Input(s):

strSmpFilePath specifies path of sample file (.smp).

strTextFilePath specifies path of out text file.

Return Value: Zero if the SaveSmpAsText was successful. Otherwise, non-zero.

Each non-zero value indicates an error code.

Remark:

This function converts smp file to text file and saves it.

See Also:

API Errors

CEIHAL_PORT_USB

0x02

CEIHAL_PORT_TCP

0x04

CEIHAL_PORT_EPP

0x08