beautypg.com

4 irecoptions::setbuffersize, Irecoptions::setbuffersize – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 104

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

104

7.1.4 IRecOptions::SetBufferSize


HRESULT SetBufferSize (

[in] long buffer_size );


Sets the size of buffer to record.

Parameters


buffer_size

Buffer size in bytes

Return values

E_INVALIDARG

Invalid buffer size was specified.

Remarks


The default setting is 1 MB.

Example


WSH:

CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\"))
Set Analyzer = WScript.CreateObject("CATC.USBTracer")
Set RecOptions = Analyzer.GetRecordingOptions
RecOptions.SetBufferSize 2*1024*1024 ' 2 MB

C++: