beautypg.com

4 irecoptions::setbuffersize, Irecoptions::setbuffersize – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual

Page 59

background image

53

Automation API for CATC Bluetooth Analyzers

CATC

Ver. 1.40

2.5.4 IRecOptions::SetBufferSize

Sets the size of buffer to record

Parameters

buffer_size

-

buffer size in bytes

Return values

E_INVALIDARG

invalid buffer size was specified

Remarks

This command sets the size of the buffer allocated in the internal memory of the system. Notice that
because of internal architecture considerations, the buffer size may be set to a greater value than
actually requested.

Note: If you set the buffersize to 2*1024, the Recording Options dialog box in the Merlin trace
viewer software will display 2.2 MB.

The default setting is 1Mb.

Example

WSH:

CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName,

"\"))

Set Analyzer = WScript.CreateObject("CATC.Merlin")

Set RecOptions = Analyzer.GetRecordingOptions

RecOptions.SetBufferSize 2*1024*1024' 2Mb

C++:

HRESULT SetBufferSize (

[in] long buffer_size );