AgN4010WSOAPI.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:24k
- //#include "stdafx.h"
- #if defined(__cplusplus)
- #include <comdef.h>
- #else
- #define true TRUE
- #define false FALSE
- #endif
- enum enumWindowType
- {
- enumWindowType_Uniform = 0,
- enumWindowType_Hanning = 1,
- enumWindowType_Gaussian = 2,
- enumWindowType_FlatTop = 3,
- };
- enum enumModulationFormat
- {
- enumModulationFormat_BPSK = 0, // 6 Mbps, 9 Mbps
- enumModulationFormat_QPSK = 1, // 12 Mbps, 18 Mbps
- enumModulationFormat_QAM16 = 2, // 24 Mbps, 36 Mbps
- enumModulationFormat_QAM64 = 3, // 48 Mbps, 54 Mbps
- enumModulationFormat_PSK8 = 4,
- enumModulationFormat_Barker1 = 5,
- enumModulationFormat_Barker2 = 6,
- enumModulationFormat_CCK5_5 = 7,
- enumModulationFormat_CCK11 = 8,
- enumModulationFormat_PBCC5_5 = 9,
- enumModulationFormat_PBCC11 = 10,
- enumModulationFormat_PBCC22 = 11,
- enumModulationFormat_PBCC33 = 12,
- enumModulationFormat_Unknown = 99
- };
- enum enumTriggerStyle
- {
- enumTriggerStyle_FreeRun = 1,
- enumTriggerStyle_MagLevel = 2,
- enumTriggerStyle_External = 3,
- };
- enum enumGatedSpectrum_SpectrumWidth
- {
- enumGatedSpectrum_SpectrumWidthEnum_Width_22MHz = 1,
- enumGatedSpectrum_SpectrumWidthEnum_Width_44MHz = 2,
- enumGatedSpectrum_SpectrumWidthEnum_Width_66MHz = 3
- };
- enum enumGatedSpectrum_AveragingStyle
- {
- enumGatedSpectrum_AveragingStyleEnum_RMS = 1,
- enumGatedSpectrum_AveragingStyleEnum_RMSExponential = 2,
- enumGatedSpectrum_AveragingStyleEnum_Time = 3,
- enumGatedSpectrum_AveragingStyleEnum_TimeExponential = 4,
- enumGatedSpectrum_AveragingStyleEnum_PeakHold = 5,
- #if defined(__IP_3_9__) || defined(__IP_4_4__)
- enumGatedSpectrum_AveragingStyleEnum_MinPeakHold = 6
- #endif
- };
- enum enumARBDownload_FileTypeOption
- {
- enumARBDownload_FileTypeOption_SegmentFile = 1,
- enumARBDownload_FileTypeOption_SequenceFile = 2,
- enumARBDownload_FileTypeOption_CheckExisting = 0x80,
- };
- enum enumCalc_ValueOption
- {
- enumCalc_ValueOption_Percent2dB = 1,
- enumCalc_ValueOption_dB2Percent,
- };
- enum enumAutoRangeExOption
- {
- enumAutoRangeExOption_None = 0,
- enumAutoRangeExOption_WaitUntilComplete = 0x1,
- enumAutoRangeExOption_SetPropertyAfterComplete = 0x2,
- };
- #if defined(__cplusplus)
- extern "C" {
- #endif
- __declspec(dllexport) long _stdcall AgN4010_TurnSelfRangeOn(
- #if defined(__cplusplus)
- double ddExpectPower_dBm,BOOL boolOn = true);
- #else
- double ddExpectPower_dBm,BOOL boolOn);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) double _stdcall AgN4010_GetSelfRangeValue(const char *lpszPropertyName);
- // Return:
- // = 999, PROPERTY NOT EXISTS
- // others, SUCCESS
- //
- // Supported Property Name:
- //
- // ExpectPower
- // TriggerLevel_mV_11a
- // TriggerLevel_mV_11b
- // EVM_PowerRange_dBm_11a
- //
- __declspec(dllexport) long _stdcall AgN4010_InitViSession(const char *lpszAgN4010Address);
- // Return:
- // > 0, SUCCESS
- // = 0, NULL VI SESSION
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_CloseViSession();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Init(
- const char *lpszAgN4010Address,
- #if defined(__cplusplus)
- BOOL boolDeleteARBSequenceFiles = false,
- BOOL boolUseInternalLicense = true,
- BOOL boolVsaVisible = false,
- BOOL boolWtaVisible = false);
- #else
- BOOL boolDeleteARBSequenceFiles,
- BOOL boolUseInternalLicense,
- BOOL boolVsaVisible,
- BOOL boolWtaVisible);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- //__declspec(dllexport) long _stdcall AgN4010_Get_Obj89607(_variant_t Obj89607);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- //__declspec(dllexport) long _stdcall AgN4010_Get_Obj89601(_variant_t Obj89601);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Preset();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_SelfTest();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Close();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_SerialNumber(char *lpszSerialNumber);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_DigitalAnalyzer_Setup_11ag(
- double ddCenterFrequency_MHz,
- long nMirrorFrequency_false,
- long nFramesUsed,
- long nMaxSymbolsUsed,
- double ddPowerRange_dBm,
- enum enumTriggerStyle nTriggerStyle,
- double ddTriggerDelay_s,
- double ddTriggerLevel_mV);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_DigitalAnalyzer_Setup_11b(
- double ddCenterFrequency_MHz,
- long nMirrorFrequency_false,
- long nPacketUsed,
- double ddMaxPacketLength_s,
- double ddPowerRange_dBm,
- enum enumTriggerStyle nTriggerStyle,
- double ddTriggerDelay_s,
- double ddTriggerLevel_mV);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_RFAnalyzer_Setup(
- double ddCenterFrequency_MHz,
- enum enumTriggerStyle nTriggerStyle,
- double ddTriggerDelay_s,
- double ddTriggerLevel_mV,
- double ddTriggerHoldOff_s);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_SetProperty(const char *lpszPropertyName,double Value);
- // Return:
- // > 0, SUCCESS
- // = 0, PROPERTY NOT EXISTS
- // < 0, ERROR
- //
- // Supported Property Name:
- //
- // AWG_HighPowerMode
- //
- // CenterFrequency_MHz
- // FramesUsed
- // MaxPacketLength_s
- // MaxSymbolsUsed
- // MeasurementOffset_11ag
- // MeasurementOffset_11b
- // PowerRange
- // ShowSplashScreen
- // SubcarrierSpacing_KHz
- // TrackPhase
- // TriggerDelay_s
- // TriggerLevel_mV
- // TriggerStyle
- // UseAlternateSyncSequence
- // WindowType
- //
- // VSA_Visible
- //
- // WTA_Visible
- // WTA_MaxPacketLength_11b
- // WTA_PowerRange_11b
- // WTA_TriggerLevel_11b
- // WTA_MaxSymbolsUsed_11ag
- // WTA_PowerRange_11ag
- // WTA_TriggerLevel_11ag
- //
- // API_GatedSpectrum_Width
- // API_GatedSpectrum_AveragingStyle
- // API_GatedSpectrum_NumAverages
- //
- __declspec(dllexport) long _stdcall AgN4010_GetProperty(const char *lpszPropertyName,double *lpValue);
- // Return:
- // > 0, SUCCESS
- // = 0, PROPERTY NOT EXISTS
- // < 0, ERROR
- //
- // Read-only property
- // AutoRange_PowerRange_11ag
- // AutoRange_TriggerLevel_mV_11ag
- // AutoRange_MaxPacketLength_s_11ag
- // AutoRange_MaxSymbolsUsed_11ag
- //
- // Autorange_PowerRange_11b
- // Autorange_TriggerLevel_mV_11b
- // Autorange_MaxPacketLength_s_11b
- //
- __declspec(dllexport) long _stdcall AgN4010_Measure_ALL_11b(
- double *lpddEVM,
- double *lpddFreqErr_ppm,
- #if defined(__cplusplus)
- BOOL boolForceInit = true);
- #else
- BOOL boolForceInit);
- #endif
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Measure_ALL_11ag(
- double *lpddEVM,
- double *lpddFreqErr_ppm,
- double *lpddCFL,
- double *lpddSpecFlatnessMargin,
- double ddSpecFlatnessFreqArray[],
- long *lpnSpecFlatnessFreqArraySize,
- #if defined(__cplusplus)
- BOOL boolForceInit = true);
- #else
- BOOL boolForceInit);
- #endif
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- // Note:
- // 1. value of *lpddSpecFlatnessMargin
- // A positive value indicates the minimum margin by which the PSD passed
- // this test. A negative value indicates the worst case amount by which
- // the PSD failed this test.
- __declspec(dllexport) long _stdcall AgN4010_Measure_Demod_ALL_11ag(
- double *lpddRmsEVM,
- double *lpddFreqErr_ppm);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Measure_Demod_ALL_11b(
- double *lpddPeakEVM,
- double *lpddFreqErr_ppm);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Measure_SpectralMask_11ag(
- double *lpddMargin_dB,
- double *lpddRefLevelResult_dBm,
- long *lpnNumSpecPoints,
- double ddFreqArray[],
- double ddAmplArray[],
- #if defined(__cplusplus)
- BOOL boolForceInit = true);
- #else
- BOOL boolForceInit);
- #endif
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- // Note:
- // 1. value of *lpddSpecFlatnessMargin
- // A positive value indicates the minimum margin by which the PSD passed
- // this test. A negative value indicates the worst case amount by which
- // the PSD failed this test.
- __declspec(dllexport) long _stdcall AgN4010_Measure_SpectralMask_11b(
- double *lpddMargin_dB,
- double *lpddRefLevelResult_dBm,
- long *lpnNumSpecPoints,
- double ddFreqArray[],
- double ddAmplArray[],
- #if defined(__cplusplus)
- BOOL boolForceInit = true);
- #else
- BOOL boolForceInit);
- #endif
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- // Note:
- // 1. value of *lpddSpecFlatnessMargin
- // A positive value indicates the minimum margin by which the PSD passed
- // this test. A negative value indicates the worst case amount by which
- // the PSD failed this test.
- __declspec(dllexport) long _stdcall AgN4010_Measure_AveragePower(
- double *lpddAvgPower_dBm);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- //
- // Instrument settings affecting this mesurement
- // CenterFrequency
- // MaxPacketLength
- // PowerRange
- // TriggerStyle
- // TriggerLevel
- // TriggerHoldoff
- // TriggerDelay
- __declspec(dllexport) long _stdcall AgN4010_MeasureEx_AveragePower(
- double *lpddAvgPower_dBm);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- //
- // Instrument settings affecting this mesurement
- // CenterFrequency
- // MaxPacketLength
- // PowerRange
- // TriggerStyle
- // TriggerLevel
- // TriggerHoldoff
- // TriggerDelay
- __declspec(dllexport) long _stdcall AgN4010_Measure_CarrierSuppression_dB_11b(
- double *lpddSuppression_dB,
- #if defined(__cplusplus)
- BOOL boolForceInit = true);
- #else
- BOOL boolForceInit);
- #endif
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_DownloadEx(const char *lpszWildcard
- ,enum enumARBDownload_FileTypeOption enumFileTypeOption);
- // Return:
- // > 0, THE NUMBERS OF DOWNLOADED FILES
- // = 0, NO FILES WERE DOWNLOADED
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Download(const char *lpszSegmentPath);
- // Return:
- // > 0, THE NUMBERS OF DOWNLOADED FILES
- // = 0, NO FILES WERE DOWNLOADED
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Select_Sequence(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz,
- long nSamplingRate_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Play_Segment(
- const char *lpszSegmentFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz,
- long nSamplingRate_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Select_Sequence_11ag(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Play_Segment_11ag(
- const char *lpszSegmentFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Select_Sequence_11b(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- // Note:
- // 1. ddLevel_dBm must be between -90 and -15 dBm
- __declspec(dllexport) long _stdcall AgN4010_ARB_Play_Segment_11b(
- const char *lpszSegmentFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- // Note:
- // 1. ddLevel_dBm must be between -90 and -15 dBm
- __declspec(dllexport) long _stdcall AgN4010_ARB_TriggerSequence();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Stop(
- #if defined(__cplusplus)
- long boolWaitUntilStopPlaying = true);
- #else
- long boolWaitUntilStopPlaying);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Delete_Sequence(
- const char *lpszSequenceFile);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_Delete_Segment(
- const char *lpszSegmentFile);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_FreeSegmentSpace();
- // Return:
- // >= 0, SUCCESS (free spaces in bytes)
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_CWTone(
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_SaveSegment(
- const char *lpszSegmentFile,
- const char *lpszSaveAsWindowsFilename);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_CreateSequenceFile();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_SequenceFile_AddSegment(
- const char *lpszSegmentName,
- long nRepetitions);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_SequenceFile_Save(
- const char *lpszWindowsFileName);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_GatedSpectrum(
- enum enumGatedSpectrum_SpectrumWidth nSpectrumWidthEnum,
- enum enumGatedSpectrum_AveragingStyle nAveragingStyle,
- long nNumAverages,
- long *lpnNumMeasurementPoints,
- double ddFreqArray[],
- double ddPowerArray[],
- double *lpddBandPower_dBm);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- //
- // Instrument settings affecting this mesurement
- // CenterFrequency
- // MaxPacketLength
- // PowerRange
- // TriggerStyle
- // TriggerLevel
- // TriggerHoldoff
- // TriggerDelay
- __declspec(dllexport) long _stdcall AgN4010_Calibrate();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_CalibrationRunning(
- #if defined(__cplusplus)
- BOOL boolLogit = false);
- #else
- BOOL boolLogit);
- #endif
- // Return:
- // = 1, CALIBRATION IS RUNNING
- // = 0, CALIBRATION NOT RUNNING
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_SourceActive();
- // Return:
- // > 0, is ACTIVE
- // = 0, not ACTIVE
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_SequencePlaying(
- #if defined(__cplusplus)
- BOOL boolLogit = false);
- #else
- BOOL boolLogit);
- #endif
- // Return:
- // > 0, is playing
- // = 0, stop playing
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Suspend();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ActivateInstrument();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_GetLoadedSegmentFileList(
- char *lpszReturnLoadedSegmentFileList,long nMaxLenz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARB_GetLoadedSequenceFileList(
- char *lpszReturnLoadedSequenceFileList,long nMaxLenz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_AutoRangeEx_Run_11ag(
- #if defined(__cplusplus)
- enum enumAutoRangeExOption enumAutoRangeExOption = enumAutoRangeExOption_None,
- double *lpddPowerRange = NULL,
- double *lpddTriggerLevel_mV = NULL,
- long *lpnMaxSymbolsUsed = NULL,
- double *lpddMaxPacketLength_s = NULL);
- #else
- enum enumAutoRangeExOption enumAutoRangeExOption,
- double *lpddPowerRange,
- double *lpddTriggerLevel_mV,
- long *lpnMaxSymbolsUsed,
- double *lpddMaxPacketLength_s);
- #endif
- // Return:
- // > 0, complete
- // = 0, is running
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_AutoRangeEx_Run_11b(
- #if defined(__cplusplus)
- enum enumAutoRangeExOption enumAutoRangeExOption = enumAutoRangeExOption_None,
- double *lpddPowerRange = NULL,
- double *lpddTriggerLevel_mV = NULL,
- double *lpddMaxPacketLength_s = NULL);
- #else
- enum enumAutoRangeExOption enumAutoRangeExOption,
- double *lpddPowerRange,
- double *lpddTriggerLevel_mV,
- double *lpddMaxPacketLength_s);
- #endif
- // Return:
- // > 0, complete
- // = 0, is running
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_AutoRange_Run_11ag();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_AutoRange_Run_11b();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_AutoRange_Running(
- #if defined(__cplusplus)
- BOOL boolLogit = false);
- #else
- BOOL boolLogit);
- #endif
- // Return:
- // > 0, is running
- // = 0, stop running
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Measure_CWFrequencyOffset(
- double *lpddFrequencyOffset);
- // Return:
- // > 0, SUCCESS
- // = 0, OVER LOAD
- // < 0, ERROR
- //------------------------------------------------------------------------------
- // extra APIs
- //
- __declspec(dllexport) long _stdcall AgN4010_MeasureEx_SpectralMask_11ag(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- double ddAmplMaskArray_dBm[],
- double ddFreqOverSpecArray_Hz[],
- double ddAmplOverSpecArray_dBm[]);
- // Return:
- // > 0, the number of points are out of spec
- // = 0, No points are out of spec
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_MeasureEx_SpectralMask_11b(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- double ddAmplMaskArray_dBm[],
- double ddFreqOverSpecArray_Hz[],
- double ddAmplOverSpecArray_dBm[]);
- // Return:
- // > 0, the number of points are out of spec
- // = 0, No points are out of spec
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_MeasureEx_OBW(
- long nPoints,
- const double ddFreqArray[],
- const double ddAmplArray[],
- double *lpddBandwidth,
- #if defined(__cplusplus)
- double ddPowerPercent = 99);
- #else
- double ddPowerPercent);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_MeasureEx_Sidelobe_11b(
- long nPoints,
- const double ddFreqArray[],
- const double ddAmplArray[],
- double ddSidelobeFreq_Hz[7],
- double ddSidelobePower_dBm[7]);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- // Note:
- // ddSidelobePower[0],ddSidelobeFreq[0]
- // is mainlobe power with frequency in Hz
- // ddSidelobePower[1],ddSidelobeFreq[1]
- // is the mainlobe power minus max power of 1st sidelobe power with frequency in Hz
- // ddSidelobePower[2],ddSidelobeFreq[2]
- // is the mainlobe power minus max power of 2nd sidelobe power with frequency in Hz
- // ddSidelobePower[3,4],ddSidelobeFreq[3,4]
- // is left and right power of 1st sidelobe power with frequency in Hz
- // ddSidelobePower[5,6],ddSidelobeFreq[5,6]
- // is left and right power of 2nd sidelobe power with frequency in Hz
- __declspec(dllexport) long _stdcall AgN4010_WTA_AutoRange_11ag();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_WTA_AutoRange_11b();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Calc_SegmentBurstRMS(
- const char *lpszSegmentFilename,double *lpddBurstRMS);
- // Return:
- // > 0, THE NUMBER OF BURST
- // = 0, NO BURST INSIDE
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Calc_ReduceSegmentBurstRMS(
- const char *lpszSegmentFilename,
- double ddScaleFactor,
- const char *lpszSaveAsSegmentFilename,
- double *lpddBurstRMS);
- // Return:
- // > 0, THE NUMBER OF BURST
- // = 0, NO BURST INSIDE
- // < 0, ERROR
- __declspec(dllexport) double _stdcall AgN4010_Calc_Value(
- double ddValue,enum enumCalc_ValueOption enumCalc_ValueOption);
- // Return:
- // CONVERTED VALUE
- __declspec(dllexport) long _stdcall AgN4010_Calc_LimitLine(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- long nLimitLinePoints,
- const double ddLimitLineArray[],
- #if defined(__cplusplus)
- double ddAmplMaskArray_dBm[] = NULL,
- double ddFreqOverSpecArray_Hz[] = NULL,
- double ddAmplOverSpecArray_dBm[] = NULL);
- #else
- double ddAmplMaskArray_dBm[],
- double ddFreqOverSpecArray_Hz[],
- double ddAmplOverSpecArray_dBm[]);
- #endif
- // Return:
- // > 0, the number of points are out of spec
- // = 0, No points are out of spec
- // < 0, ERROR
- // ddLimitLineArray of OFDM (nLimitLines = 20):
- // (-40e6,-40), (-30e6,-40), (-20e6,-28), (-11e6,-20), (-9e6,0),
- // (9e6,0), (11e6,-20), (20e6,-28), (30e6,-40), (40e6,-40)
- // ddLimitLineArray of CCK (nLimitLines = 20):
- // (-30e6,-50), (-22e6,-50), (-22e6,-30), (-11e6,-30), (-11e6,0),
- // (11e6,0), (11e6,-30), (22e6,-30), (22e6,-50), (30e6,-50)
- __declspec(dllexport) void _stdcall AgN4010_Log_Open();
- __declspec(dllexport) void _stdcall AgN4010_Log_Close();
- __declspec(dllexport) void _stdcall AgN4010_Log_LogIt(const char *fmt,...);
- __declspec(dllexport) long _stdcall AgN4010_SetBluetoothMode();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_SetWlanMode();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_GetExtraMeasureResult(
- const char *lpszItemName,double *lpddMeasureResult);
- // > 0, SUCCESS
- // = 0, PROPERTY NOT EXISTS
- // < 0, ERROR
- //
- // Supported Item Name:
- //
- // EVM_BurstGood
- // EVM_FrequencyError_Hz
- // EVM_GatedPower_dBm
- // EVM_IQOffset_dB
- // EVM_ModulationFormat
- // EVM_RmsEVM_Percent
- //
- __declspec(dllexport) long _stdcall AgN4010_Chart_SpectralMask(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- const double ddAmplMaskArray_dBm[],
- #if defined(__cplusplus)
- const char *lpszCaption = NULL,unsigned long uWaitTime = 0);
- #else
- const char *lpszCaption,unsigned long uWaitTime);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Chart_Spectrum(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- #if defined(__cplusplus)
- const char *lpszCaption = NULL,unsigned long uWaitTime = 0);
- #else
- const char *lpszCaption,unsigned long uWaitTime);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Chart_OBW(
- long nPoints,
- const double ddFreqArray_Hz[],
- const double ddAmplArray_dBm[],
- #if defined(__cplusplus)
- const char *lpszCaption = NULL,unsigned long uWaitTime = 0);
- #else
- const char *lpszCaption,unsigned long uWaitTime);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_Chart_MultiTraces(
- long nPoints,
- const double ddFreqArray_Hz[],
- long nTraces,
- const double *ddTraces,
- #if defined(__cplusplus)
- const char *lpszTraceNameList = NULL,
- const char *lpszCaption = NULL,unsigned long uWaitTime = 0);
- #else
- const char *lpszTraceNameList,
- const char *lpszCaption,unsigned long uWaitTime);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_ReSelect(
- double ddLevel_dBm,
- #if defined(__cplusplus)
- double ddOffsetFrequency_MHz = 0);
- #else
- double ddOffsetFrequency_MHz);
- #endif
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_Select_Sequence(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz,
- long nSamplingRate_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_Select_Sequence_11ag(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_Select_Sequence_11b(
- const char *lpszSequenceFile,
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_TriggerSequence();
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_Stop(
- #if defined(__cplusplus)
- long boolWaitUntilStopPlaying = true);
- #else
- long boolWaitUntilStopPlaying);
- #endif
- // Return:
- // > 0, STOP PLAYING
- // = 0, STILL PLAYING
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_ARBEx_CWTone(
- double ddLevel_dBm,
- double ddOffsetFrequency_MHz);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_TTL_Output(long TTLBits);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- __declspec(dllexport) long _stdcall AgN4010_TTL_SwitchChannel(long nChanNo);
- // Return:
- // >= 0, SUCCESS
- // < 0, ERROR
- // Note:
- // nChanNo is zero-based
- #if defined(__cplusplus)
- }
- #endif