📄 agn4010wsoapi.h
字号:
__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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -