Data Sheet

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
82
3.9 IUsbTrace10 interface
The IUsbTrace10 interface is an additional interface for the UsbTrace object. It inherits and extends
some trace-related functionality exposed via the IUsbTrace9 interface.
IID : AC4DC05E-3B20-4233-BDE6-F92B3A185B28
3.9.1 IUsbTrace10::ExportTransactionsWithPacketsToCsv
HRESULT ExportTransactionsWithPacketsToCsv (
[in] BSTR file_name,
[in, defaultvalue(-1)] long unit_from,
[in, defaultvalue(-1)] long unit_to );
Exports the USB Transactions and packets level of the trace into a text file in CSV format and allows
exporting a range of packets.
Parameters
file_name String providing the full pathname of the trace export file
unit_from Beginning packet number when you are exporting a range of packets. Value 1
makes the first packet of the exported trace be the first packet of the trace.
unit_to Ending packet number when you are exporting a range of packets.
Value 1 makes the last packet of the exported trace be the last packet of the
trace.
Return values
ANALYZERCOMERROR_UNABLESAVE Unable to export trace file
Remarks
Use this method if you want to export a recorded or opened trace into a text file in CSV format. If display
options apply to this trace (see ITrace::ApplyDisplayOptions or
IAnalyzer::LoadDisplayOptions), then hidden units would not be exported.
If a unit range is specified and it is invalid (for example, unit_to is more than the last unit number in the
trace, or unit_from is less than first unit number in the trace, or unit_from is more then unit_to) then
unit range adjusts automatically.