Using the APx WaveReader DLL手机测试技术文档.pdfVIP

  • 0
  • 0
  • 约3.14千字
  • 约 2页
  • 2026-03-16 发布于浙江
  • 举报

Using the APx WaveReader DLL手机测试技术文档.pdf

UsingtheAPxWaveReaderDLL

TheWaveReaderDLLprovidesfunctionsthatcanbecalledfromanexternalprogram,toenable

transferofacquisitiondatafromanAPxanalyzertothatprograminnearrealtime.Any.NET

compliantlanguagesuchasC#,VB.NET,orLabVIEWcanmakeuseofit.

TheDLLworkswiththefilessavedbytheMeasurementRecordermeasurementtoprovidethe

acquireddataasquicklyasitisavailablefromAPx500.Externalprogramscanprocess,export,

ordisplaythedataaccordingtotheirownrequirements.

Touseit,aprojectcontainingMeasurementRecordermustbeloadedintheAPx500software.In

theMeasurementRecordersettingspanel,SavetoFilemustbeenabledwiththerecordingtype

settoPCM.Inyour.NETprogram,addreferencestotheAudioPrecision.API.Dlland

WaveReader.Dll,versionsx.x.0.0(wherex.x=APx500version).

TheWaveReaderDLLcontainsaclasscalledWaveReaderwhichcanbeconstructedwitha

referencetotheAPx500applicationinterfaceobject.Theclasscontainsafunctiontostartthe

MeasurementRecorder,andafunctiontoreadthedatafromAPx500.

UsingWaveReaderDLLwithVB.NET

Example:

DimAPxAsNewAPx500()

AssumeAPxalreadyhasprojectloadedwithMeasurmentRecorderconfiguredasrequired

DimreaderAsNewWaveReader.WaveReader(APx)

DimsamplesAsSampleData

Try

reader.StartMeasurementRecorder(SignalPath1,MeasurementRecorder,

APx.SignalPathSetup.InputChannelCount)

samples=reader.ReadSamples(32768,5000

While(samples.HasSamples)

samples=reader.ReadSamples(32768,5000)

EndWhile

CatchapexAsAPException

MessageBox.Show(apex.Message,APException,MessageBoxButtons.OK,

MessageBoxIcon.Error)

ExitTry

CatchexAsException

MessageBox.Show(ex.Message,Error,MessageBoxButtons.OK,MessageBoxIcon.Error)

EndTry

1

UsingWaveReaderDLLwithLabVIEW

ThetwoVIsthatprovidethef

文档评论(0)

1亿VIP精品文档

相关文档