RTP Series API Programming Reference  1.2.1
PwrSnsrLib.h File Reference

Go to the source code of this file.

Data Structures

struct  PulseInfo
 Data structure containing pulse information. More...
 

Macros

#define SUCCESS   (0L)
 
#define CURRENT_TIMEOUT   (-2)
 
#define EXPORT
 

Typedefs

typedef int SessionID
 
typedef enum PwrSnsrAcquisitionStatusEnum PwrSnsrAcquisitionStatusEnum
 
typedef enum PwrSnsrTriggerModeEnum PwrSnsrTriggerModeEnum
 
typedef enum PwrSnsrTriggerSlopeEnum PwrSnsrTriggerSlopeEnum
 
typedef enum PwrSnsrTriggerPositionEnum PwrSnsrTriggerPositionEnum
 
typedef enum PwrSnsrTriggerSourceEnum PwrSnsrTriggerSourceEnum
 
typedef enum PwrSnsrUnitsEnum PwrSnsrUnitsEnum
 
typedef enum PwrSnsrMarkerNumberEnum PwrSnsrMarkerNumberEnum
 
typedef enum PwrSnsrBandwidthEnum PwrSnsrBandwidthEnum
 
typedef enum PwrSnsrFilterStateEnum PwrSnsrFilterStateEnum
 
typedef enum PwrSnsrPulseUnitsEnum PwrSnsrPulseUnitsEnum
 
typedef enum PwrSnsrCondCodeEnum PwrSnsrCondCodeEnum
 
typedef enum PwrSnsrTriggerStatusEnum PwrSnsrTriggerStatusEnum
 
typedef enum PwrSnsrTermActionEnum PwrSnsrTermActionEnum
 
typedef enum PwrSnsrHoldoffModeEnum PwrSnsrHoldoffModeEnum
 
typedef enum PwrSnsrStatGatingEnum PwrSnsrStatGatingEnum
 
typedef enum PwrSnsrTrigOutModeEnum PwrSnsrTrigOutModeEnum
 
typedef enum PwrSnsrMeasBuffGateEnum PwrSnsrMeasBuffGateEnum
 
typedef enum PwrSnsrMeasBuffStartModeEnum PwrSnsrMeasBuffStartModeEnum
 
typedef enum PwrSnsrMeasBuffStopReasonEnum PwrSnsrMeasBuffStopReasonEnum
 
typedef enum PwrSnsrRdgsEnableFlag PwrSnsrRdgsEnableFlag
 
typedef enum PwrSnsrErrorCodesEnum PwrSnsrErrorCodesEnum
 
typedef struct PulseInfo PulseInfo
 Data structure containing pulse information. More...
 
typedef enum PwrSnsrSignalUnits PwrSnsrSignalUnits
 
typedef enum PwrSnsrSimSignalType PwrSnsrSimSignalType
 
typedef enum PwrSnsrSimParamWeight PwrSnsrSimParamWeight
 

Enumerations

enum  PwrSnsrAcquisitionStatusEnum { PwrSnsrAcqComplete = 1, PwrSnsrAcqInProgress = 0, PwrSnsrAcqStatusUnknown = -1 }
 
enum  PwrSnsrTriggerModeEnum { PwrSnsrTriggerModeNormal = 1, PwrSnsrTriggerModeAuto = 2, PwrSnsrTriggerModeAutoLevel = 3, PwrSnsrTriggerModeFreerun = 4 }
 
enum  PwrSnsrTriggerSlopeEnum { PwrSnsrTriggerSlopePositive = 1, PwrSnsrTriggerSlopeNegative = 0 }
 
enum  PwrSnsrTriggerPositionEnum { PwrSnsrTriggerPositionLeft = 0, PwrSnsrTriggerPositionMiddle = 1, PwrSnsrTriggerPositionRight = 2 }
 
enum  PwrSnsrTriggerSourceEnum {
  PwrSnsrTriggerSourceChannel1 = 0, PwrSnsrTriggerSourceExternal = 2, PwrSnsrTriggerSourceChannel2 = 1, PwrSnsrTriggerSourceChannel3 = 3,
  PwrSnsrTriggerSourceChannel4 = 4, PwrSnsrTriggerSourceChannel5 = 5, PwrSnsrTriggerSourceChannel6 = 6, PwrSnsrTriggerSourceChannel7 = 7,
  PwrSnsrTriggerSourceChannel8 = 8, PwrSnsrTriggerSourceChannel9 = 9, PwrSnsrTriggerSourceChannel10 = 10, PwrSnsrTriggerSourceChannel11 = 11,
  PwrSnsrTriggerSourceChannel12 = 12, PwrSnsrTriggerSourceChannel13 = 13, PwrSnsrTriggerSourceChannel14 = 14, PwrSnsrTriggerSourceChannel15 = 15,
  PwrSnsrTriggerSourceChannel16 = 16, PwrSnsrTriggerSourceIndependent = 17
}
 
enum  PwrSnsrUnitsEnum {
  PwrSnsrUnitsdBm = 0, PwrSnsrUnitswatts = 1, PwrSnsrUnitsvolts = 2, PwrSnsrUnitsDBV = 3,
  PwrSnsrUnitsDBMV = 4, PwrSnsrUnitsDBUV = 5
}
 
enum  PwrSnsrMarkerNumberEnum { PwrSnsrMarkerNumberMarker1 = 1, PwrSnsrMarkerNumberMarker2 = 2 }
 
enum  PwrSnsrBandwidthEnum { PwrSnsrBandwidthHigh = 0, PwrSnsrBandwidthLow = 1 }
 
enum  PwrSnsrFilterStateEnum { PwrSnsrFilterStateOff = 0, PwrSnsrFilterStateOn = 1, PwrSnsrFilterStateAuto = 2 }
 
enum  PwrSnsrPulseUnitsEnum { PwrSnsrPulseUnitsWatts = 0, PwrSnsrPulseUnitsVolts = 1 }
 
enum  PwrSnsrCondCodeEnum {
  PwrSnsrCondCodeMeasurementStopped = -1, PwrSnsrCondCodeError = 0, PwrSnsrCondCodeUnderrange = 2, PwrSnsrCondCodeOverrange = 3,
  PwrSnsrCondCodeNormal = 1
}
 
enum  PwrSnsrTriggerStatusEnum {
  PwrSnsrTriggerStatusStopped = 0, PwrSnsrTriggerStatusPretrig = 1, PwrSnsrTriggerStatusWaiting = 2, PwrSnsrTriggerStatusAcquiringNew = 3,
  PwrSnsrTriggerStatusAutoTrig = 4, PwrSnsrTriggerStatusFreerun = 5, PwrSnsrTriggerStatusTriggered = 6, PwrSnsrTriggerStatusRunning = 7
}
 
enum  PwrSnsrTermActionEnum { PwrSnsrTermActionStop = 0, PwrSnsrTermActionRestart = 1, PwrSnsrTermActionDecimate = 2 }
 
enum  PwrSnsrHoldoffModeEnum { PwrSnsrHoldoffModeNormal = 1, PwrSnsrHoldoffModeGap = 2 }
 
enum  PwrSnsrStatGatingEnum { PwrSnsrStatGatingFreeRun = 0, PwrSnsrStatGatingMarkers = 1 }
 
enum  PwrSnsrTrigOutModeEnum {
  PwrSnsrTrigOutModeMioOff = 0, PwrSnsrTrigOutModeMioPullUp = 1, PwrSnsrTrigOutModeMioTtl0 = 2, PwrSnsrTrigOutModeMioTbRef = 3,
  PwrSnsrTrigOutModeMioSweepHigh = 4, PwrSnsrTrigOutModeMioSweepLow = 5, PwrSnsrTrigOutModeMioTrigHigh = 6, PwrSnsrTrigOutModeMioTrigLow = 7,
  PwrSnsrTrigOutModeMioMaster = 8, PwrSnsrTrigOutModeMioSlave = 9
}
 
enum  PwrSnsrMeasBuffGateEnum {
  PwrSnsrMeasBuffGateBurst = 0, PwrSnsrMeasBuffGateMarker = 1, PwrSnsrMeasBuffGateExtGate = 2, PwrSnsrMeasBuffGatePeriodic = 3,
  PwrSnsrMeasBuffGateExtTrig = 4
}
 
enum  PwrSnsrMeasBuffStartModeEnum { PwrSnsrMeasBuffStartModeImmediate = 1, PwrSnsrMeasBuffStartModeExternalEnable = 2, PwrSnsrMeasBuffStartModeExternalStart = 3 }
 
enum  PwrSnsrMeasBuffStopReasonEnum { PwrSnsrMeasBuffStopReasonCountReached = 1, PwrSnsrMeasBuffStopReasonTimedOut = 2, PwrSnsrMeasBuffStopReasonBufferOverran = 3, PwrSnsrMeasBuffStopReasonNone = 0 }
 
enum  PwrSnsrRdgsEnableFlag {
  PwrSnsrSequenceEnable = 1, PwrSnsrStartTimeEnable = 2, PwrSnsrDurationEnable = 4, PwrSnsrMinEnable = 8,
  PwrSnsrAvgEnable = 16, PwrSnsrMaxEnable = 32
}
 
enum  PwrSnsrErrorCodesEnum {
  PWR_SNSR_IO_GENERAL = -2147204588, PWR_SNSR_IO_TIMEOUT = -2147204587, PWR_SNSR_MODEL_NOT_SUPPORTED = -2147204586, PWR_SNSR_INV_PARAMETER = -1073807240,
  PWR_SNSR_ERROR_INVALID_SESSION_HANDLE = -1074130544, PWR_SNSR_ERROR_STATUS_NOT_AVAILABLE = -1074134947, PWR_SNSR_ERROR_RESET_FAILED = -1074134945, PWR_SNSR_ERROR_RESOURCE_UNKNOWN = -1074134944,
  PWR_SNSR_ERROR_ALREADY_INITIALIZED = -1074134943, PWR_SNSR_ERROR_OUT_OF_MEMORY = -1074134954, PWR_SNSR_ERROR_OPERATION_PENDING = -1074134953, PWR_SNSR_ERROR_NULL_POINTER = -1074134952,
  PWR_SNSR_ERROR_UNEXPECTED_RESPONSE = -1074134951, PWR_SNSR_ERROR_NOT_INITIALIZED = -1074135011, PWR_SNSR_LIBUSB_ERROR_IO = -1, PWR_SNSR_LIBUSB_ERROR_INVALID_PARAM = -2,
  PWR_SNSR_LIBUSB_ERROR_ACCESS = -3, PWR_SNSR_LIBUSB_ERROR_NO_DEVICE = -4, PWR_SNSR_LIBUSB_ERROR_NOT_FOUND = -5, PWR_SNSR_LIBUSB_ERROR_BUSY = -6,
  PWR_SNSR_LIBUSB_ERROR_TIMEOUT = -7, PWR_SNSR_LIBUSB_ERROR_OVERFLOW = -8, PWR_SNSR_LIBUSB_ERROR_PIPE = -9, PWR_SNSR_LIBUSB_ERROR_INTERRUPTED = -10,
  PWR_SNSR_LIBUSB_ERROR_NO_MEM = -11, PWR_SNSR_LIBUSB_ERROR_NOT_SUPPORTED = -12, PWR_SNSR_LIBUSB_ERROR_OTHER = -99
}
 
enum  PwrSnsrSignalUnits { PwrSnsrSignalUnitsdBm = 0, PwrSnsrSignalUnitsWatts = 1 }
 
enum  PwrSnsrSimSignalType { PwrSnsrSimSignalPeriodic = 0, PwrSnsrSimSignalBurst = 1 }
 
enum  PwrSnsrSimParamWeight { PwrSnsrWeightNone = 0, PwrSnsrWeightLight = 1, PwrSnsrWeightMedium = 2, PwrSnsrWeightHeavy = 3 }
 

Functions

EXPORT int PwrSnsr_SendSCPICommand (SessionID Vi, const char *Command)
 Send a SCPI command to the instrument. More...
 
EXPORT int PwrSnsr_ReadSCPI (SessionID Vi, int ValueBufferSize, long *ValueActualSize, char Value[], int Timeout)
 Read a SCPI string response from the instrument. More...
 
EXPORT int PwrSnsr_SendSCPIToNamedParser (SessionID Vi, const char *name, const char *Command)
 Send a SCPI command to the instrument using a named SCPI parser. More...
 
EXPORT int PwrSnsr_ReadSCPIFromNamedParser (SessionID Vi, const char *name, int ValueBufferSize, long *ValueActualSize, char Value[], int Timeout)
 Read a SCPI string response from the instrument. More...
 
EXPORT int PwrSnsr_SendSCPIBytes (SessionID Vi, int CommandBufferSize, char Command[])
 Send a SCPI command as a byte array. More...
 
EXPORT int PwrSnsr_ReadSCPIBytes (SessionID Vi, int ValueBufferSize, char Value[], long *ValueActualSize, int Timeout)
 Read a SCPI byte array response from the instrument. More...
 
EXPORT int PwrSnsr_FindResources (const char *Delimiter, int ValBufferSize, char Val[])
 Returns a delimited string of available resources. These strings can be used in the initialize function to open a session to an instrument. More...
 
EXPORT int PwrSnsr_GetMinimumSupportedFirmware (int *Version)
 Gets the minimum supported firmware as an integer. Format is YYYYMMDD. More...
 
EXPORT int PwrSnsr_SetTimeOut (SessionID Vi, long Milliseconds)
 Sets the time out in milliseconds for I/O. More...
 
EXPORT int PwrSnsr_GetTimeOut (SessionID Vi, long *Val)
 Returns the time out value for I/O in milliseconds. More...
 
EXPORT int PwrSnsr_init (char *ResourceName, SessionID *Vi)
 Initialize a communication session with a supported USB power sensor. More...
 
EXPORT int PwrSnsr_close (SessionID Vi)
 Closes the I/O session to the instrument. Driver methods and properties that access the instrument are not accessible after Close is called. More...
 
EXPORT int PwrSnsr_GetError (SessionID Vi, int *ErrorCode, int ErrorDescriptionBufferSize, char ErrorDescription[])
 This function retrieves and then clears the error information for the session. Normally, the error information describes the first error that occurred since the user last called the Get Error or Clear Error function. More...
 
EXPORT int PwrSnsr_ClearError (SessionID Vi)
 This function clears the error code and error description for the given session. More...
 
EXPORT int PwrSnsr_reset (SessionID Vi)
 
EXPORT int PwrSnsr_self_test (SessionID Vi, int *TestResult)
 Performs an instrument self test, waits for the instrument to complete the test, and queries the instrument for the results. If the instrument passes the test, TestResult is 0. More...
 
EXPORT int PwrSnsr_SetFetchLatency (SessionID Vi, int Latency)
 Set the period the library waits to update fetch measurements in ms. More...
 
EXPORT int PwrSnsr_GetFetchLatency (SessionID Vi, int *Latency)
 Get the period the library waits to update fetch measurements in ms. More...
 
EXPORT int PwrSnsr_MeasurePower (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return average power using a default instrument configuration in Modulated Mode and dBm units. Instrument remains stopped in Modulated Mode after a measurement. More...
 
EXPORT int PwrSnsr_FetchCWPower (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the most recently acquired CW power. More...
 
EXPORT int PwrSnsr_MeasureVoltage (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return average voltage using a default instrument configuration in Modulated Mode and volts units. Instrument remains stopped in Modulated Mode after a measurement. More...
 
EXPORT int PwrSnsr_ReadWaveformMinMax (SessionID Vi, const char *Channel, int MinWaveformBufferSize, float MinWaveform[], int *MinWaveformActualSize, int MaxWaveformBufferSize, float MaxWaveform[], int *MaxWaveformActualSize, int WaveformArrayBufferSize, float WaveformArray[], int *WaveformArrayActualSize)
 Initiates an acquisition on all enabled channels, waits (up to MaxTime) for the acquisition to complete, and returns the min/max waveforms for this channel. Call FetchMinMaxWaveform to obtain the min/max waveforms for other channels. More...
 
EXPORT int PwrSnsr_ReadWaveform (SessionID Vi, const char *Channel, int WaveformArrayBufferSize, float WaveformArray[], int *WaveformArrayActualSize)
 Initiates an acquisition on all enabled channels, waits (up to MaxTime) for the acquisition to complete, and returns the waveform for this channel. Call FetchWaveform to obtain the waveforms for other channels. More...
 
EXPORT int PwrSnsr_FetchWaveformMinMax (SessionID Vi, const char *Channel, int MinWaveformBufferSize, float MinWaveform[], int *MinWaveformActualSize, int MaxWaveformBufferSize, float MaxWaveform[], int *MaxWaveformActualSize, int WaveformArrayBufferSize, float WaveformArray[], int *WaveformArrayActualSize)
 Returns the previously acquired minimum and maximum waveforms for this specified channel. The acquisition must be made prior to calling this method. Call this method separately for each channel. More...
 
EXPORT int PwrSnsr_FetchWaveform (SessionID Vi, const char *Channel, int WaveformArrayBufferSize, float WaveformArray[], int *WaveformArrayActualSize)
 Returns a previously acquired waveform for this channel. The acquisition must be made prior to calling this method. Call this method separately for each channel. More...
 
EXPORT int PwrSnsr_FetchPowerArray (SessionID Vi, const char *Channel, float *PulsePeak, PwrSnsrCondCodeEnum *PulsePeakValid, float *PulseCycleAvg, PwrSnsrCondCodeEnum *PulseCycleAvgValid, float *PulseOnAvg, PwrSnsrCondCodeEnum *PulseOnValid, float *IEEETop, PwrSnsrCondCodeEnum *IEEETopValid, float *IEEEBottom, PwrSnsrCondCodeEnum *IEEEBottomValid, float *Overshoot, PwrSnsrCondCodeEnum *OvershootValid, float *Droop, PwrSnsrCondCodeEnum *DroopValid)
 Returns an array of the current automatic amplitude measurements performed on
a periodic pulse waveform. More...
 
EXPORT int PwrSnsr_FetchTimeArray (SessionID Vi, const char *Channel, float *Frequency, PwrSnsrCondCodeEnum *FrequencyValid, float *Period, PwrSnsrCondCodeEnum *PeriodValid, float *Width, PwrSnsrCondCodeEnum *WidthValid, float *Offtime, PwrSnsrCondCodeEnum *OfftimeValid, float *DutyCycle, PwrSnsrCondCodeEnum *DutyCycleValid, float *Risetime, PwrSnsrCondCodeEnum *RisetimeValid, float *Falltime, PwrSnsrCondCodeEnum *FalltimeValid, float *EdgeDelay, PwrSnsrCondCodeEnum *EdgeDelayValid, float *Skew, PwrSnsrCondCodeEnum *SkewValid)
 Returns an array of the current automatic timing measurements performed on a periodic pulse waveform. More...
 
EXPORT int PwrSnsr_FetchCWArray (SessionID Vi, const char *Channel, float *PeakAverage, PwrSnsrCondCodeEnum *PeakAverageValid, float *PeakMax, PwrSnsrCondCodeEnum *PeakMaxValid, float *PeakMin, PwrSnsrCondCodeEnum *PeakMinValid, float *PeakToAvgRatio, PwrSnsrCondCodeEnum *PeakToAvgRatioValid)
 Returns the current average, maximum, minimum powers or voltages and the
peak-to-average ratio of the specified channel. Units are the same as the
channel units. Note the peak-to-average ratio and marker ratio are returned
in dB for logarithmic channel units, and percent for all other channel units. More...
 
EXPORT int PwrSnsr_FetchRiseTime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the interval between the first signal crossing of the proximal line to the first signal crossing of the distal line. More...
 
EXPORT int PwrSnsr_FetchWidth (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the pulse width, i.e. the interval between the first and second signal crossings of the mesial line. More...
 
EXPORT int PwrSnsr_FetchPulsePeak (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the peak amplitude during the pulse. More...
 
EXPORT int PwrSnsr_FetchPulseOnAverage (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Average power of the ON portion of the pulse. More...
 
EXPORT int PwrSnsr_FetchPulseCycleAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the average power of the entire pulse. More...
 
EXPORT int PwrSnsr_FetchPRF (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the number of cycles of a repetitive signal that take place in one second (Pulse Repetition Frequency). More...
 
EXPORT int PwrSnsr_FetchPeriod (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the interval between two successive pulses. (Reciprocal of the Pulse RepetitionFrequency) More...
 
EXPORT int PwrSnsr_FetchOvershoot (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the difference between the distortion following a major transition and the IEEE top line in dB or percent, depending on the channel units. More...
 
EXPORT int PwrSnsr_FetchOfftime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the time a repetitive pulse is off. (Equal to the pulse period minus the pulsewidth). More...
 
EXPORT int PwrSnsr_FetchIEEETop (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the IEEE-defined top line, i.e. the portion of a pulse waveform which represents the second nominal state of a pulse. More...
 
EXPORT int PwrSnsr_FetchIEEEBottom (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the IEEE-define base line, i.e. The two portions of a pulse waveform which represent the first nominal state from which a pulse departs and to which it ultimately returns. More...
 
EXPORT int PwrSnsr_FetchFallTime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the interval between the last signal crossing of the distal line to the last signalcrossing of the proximal line. More...
 
EXPORT int PwrSnsr_FetchEdgeDelay (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns time offset from the trigger reference to the first mesial transition level of either slope on the waveform. More...
 
EXPORT int PwrSnsr_FetchDutyCycle (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Returns the ratio of the pulse on-time to off-time. More...
 
EXPORT int PwrSnsr_ReadCWPower (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *IsValid, float *Val)
 
EXPORT int PwrSnsr_ReadCWArray (SessionID Vi, const char *Channel, float *PeakAverage, PwrSnsrCondCodeEnum *PeakAverageValid, float *PeakMax, PwrSnsrCondCodeEnum *PeakMaxValid, float *PeakMin, PwrSnsrCondCodeEnum *PeakMinValid, float *PeakToAvgRatio, PwrSnsrCondCodeEnum *PeakToAvgRatioValid)
 Returns the current average, maximum, minimum powers or voltages and the peak-to-average ratio of the specified channel. Units are the same as the channel's units. Note the peak-to-average ratio and marker ratio are returned in dB for logarithmic channel units, and percent for all other channel units. More...
 
EXPORT int PwrSnsr_ReadPowerArray (SessionID Vi, const char *Channel, float *PulsePeak, PwrSnsrCondCodeEnum *PulsePeakValid, float *PulseCycleAvg, PwrSnsrCondCodeEnum *PulseCycleAvgValid, float *PulseOnAvg, PwrSnsrCondCodeEnum *PulseOnValid, float *IEEETop, PwrSnsrCondCodeEnum *IEEETopValid, float *IEEEBottom, PwrSnsrCondCodeEnum *IEEEBottomValid, float *Overshoot, PwrSnsrCondCodeEnum *OvershootValid, float *Droop, PwrSnsrCondCodeEnum *DroopValid)
 Returns an array of the current automatic amplitude measurements performed on a periodic pulse waveform.
More...
 
EXPORT int PwrSnsr_ReadTimeArray (SessionID Vi, const char *Channel, float *Frequency, PwrSnsrCondCodeEnum *FrequencyValid, float *Period, PwrSnsrCondCodeEnum *PeriodValid, float *Width, PwrSnsrCondCodeEnum *WidthValid, float *Offtime, PwrSnsrCondCodeEnum *OfftimeValid, float *DutyCycle, PwrSnsrCondCodeEnum *DutyCycleValid, float *Risetime, PwrSnsrCondCodeEnum *RisetimeValid, float *Falltime, PwrSnsrCondCodeEnum *FalltimeValid, float *EdgeDelay, PwrSnsrCondCodeEnum *EdgeDelayValid, float *Skew, PwrSnsrCondCodeEnum *SkewValid)
 Returns an array of the current automatic timing measurements performed on a periodic pulse waveform. More...
 
EXPORT int PwrSnsr_ReadDutyCycle (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the ratio of the pulse on-time to off-time. More...
 
EXPORT int PwrSnsr_ReadEdgeDelay (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns time offset from the trigger reference to the first mesial transition level of either slope on the waveform. More...
 
EXPORT int PwrSnsr_ReadFallTime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the interval between the last signal crossing of the distal line to the last signal crossing of the proximal line. More...
 
EXPORT int PwrSnsr_ReadIEEEBottom (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the IEEE-define base line, i.e. The two portions of a pulse waveform which represent the first nominal state from which a pulse departs and to which it ultimately returns. More...
 
EXPORT int PwrSnsr_ReadIEEETop (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the IEEE-defined top line, i.e. the portion of a pulse waveform which represents the second nominal state of a pulse. More...
 
EXPORT int PwrSnsr_ReadOfftime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the time a repetitive pulse is off. (Equal to the pulse period minus the pulse width). More...
 
EXPORT int PwrSnsr_ReadOvershoot (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the difference between the distortion following a major transition and the IEEE top line in dB or percent, depending on the channel units. More...
 
EXPORT int PwrSnsr_ReadPeriod (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the interval between two successive pulses. More...
 
EXPORT int PwrSnsr_ReadPRF (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the number of cycles of a repetitive signal that take place in one second (Pulse Repetition Frequency). More...
 
EXPORT int PwrSnsr_ReadPulseCycleAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the average power of the entire pulse. More...
 
EXPORT int PwrSnsr_ReadPulseOnAverage (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Average power of the ON portion of the pulse. More...
 
EXPORT int PwrSnsr_ReadPulsePeak (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the peak amplitude during the pulse. More...
 
EXPORT int PwrSnsr_ReadRiseTime (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the interval between the first signal crossing of the proximal line to the first signal crossing of the distal line. More...
 
EXPORT int PwrSnsr_ReadWidth (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the pulse width, i.e. the interval between the first and second signal crossings of the mesial line. More...
 
EXPORT int PwrSnsr_GetTrigDelay (SessionID Vi, float *Delay)
 Return the trigger delay time in seconds with respect to the trigger for the trigger display location in the LEFT position. More...
 
EXPORT int PwrSnsr_SetTrigDelay (SessionID Vi, float Delay)
 Sets the trigger delay time in seconds with respect to the trigger for the trigger display location in the LEFT position. More...
 
EXPORT int PwrSnsr_GetTrigHoldoff (SessionID Vi, float *Holdoff)
 Return the trigger holdoff time in seconds. More...
 
EXPORT int PwrSnsr_SetTrigHoldoff (SessionID Vi, float Holdoff)
 Sets the trigger holdoff time in seconds. More...
 
EXPORT int PwrSnsr_GetTrigHoldoffMode (SessionID Vi, PwrSnsrHoldoffModeEnum *HoldoffMode)
 Returns the holdoff mode to normal or gap holdoff. More...
 
EXPORT int PwrSnsr_SetTrigHoldoffMode (SessionID Vi, PwrSnsrHoldoffModeEnum HoldoffMode)
 Sets the holdoff mode to normal or gap holdoff. More...
 
EXPORT int PwrSnsr_GetTrigLevel (SessionID Vi, float *Level)
 Return the trigger level for synchronizing data acquisition with a pulsed input signal. More...
 
EXPORT int PwrSnsr_SetTrigLevel (SessionID Vi, float Level)
 Set the trigger level for synchronizing data acquisition with a pulsed input signal. More...
 
EXPORT int PwrSnsr_GetTrigMode (SessionID Vi, PwrSnsrTriggerModeEnum *Mode)
 Return the trigger mode for synchronizing data acquisition with pulsed signals. More...
 
EXPORT int PwrSnsr_SetTrigMode (SessionID Vi, PwrSnsrTriggerModeEnum Mode)
 Set the trigger mode for synchronizing data acquisition with pulsed signals. More...
 
EXPORT int PwrSnsr_GetTrigPosition (SessionID Vi, PwrSnsrTriggerPositionEnum *Position)
 Return the position of the trigger event on displayed sweep. More...
 
EXPORT int PwrSnsr_SetTrigPosition (SessionID Vi, PwrSnsrTriggerPositionEnum Position)
 Set the position of the trigger event on displayed sweep. More...
 
EXPORT int PwrSnsr_GetTrigSource (SessionID Vi, PwrSnsrTriggerSourceEnum *Source)
 Set the signal the power meter monitors for a trigger. It can be channel external input, or independent. More...
 
EXPORT int PwrSnsr_SetTrigSource (SessionID Vi, PwrSnsrTriggerSourceEnum Source)
 Get the signal the power meter monitors for a trigger. It can be channel external input, or independent. More...
 
EXPORT int PwrSnsr_GetTrigStatus (SessionID Vi, PwrSnsrTriggerStatusEnum *Status)
 The status of the triggering system. Update rate is controlled by FetchLatency setting. More...
 
EXPORT int PwrSnsr_GetTrigVernier (SessionID Vi, float *Vernier)
 Return the fine position of the trigger event on the power sweep. More...
 
EXPORT int PwrSnsr_SetTrigVernier (SessionID Vi, float Vernier)
 Set the fine position of the trigger event on the power sweep. More...
 
EXPORT int PwrSnsr_GetTrigSlope (SessionID Vi, PwrSnsrTriggerSlopeEnum *Slope)
 Return the trigger slope or polarity. More...
 
EXPORT int PwrSnsr_SetTrigSlope (SessionID Vi, PwrSnsrTriggerSlopeEnum Slope)
 Sets the trigger slope or polarity. More...
 
EXPORT int PwrSnsr_SetTrigOutMode (SessionID Vi, const char *Channel, int Mode)
 Sets the trigger out/mult io mode. Setting trigger mode overrides this command. More...
 
EXPORT int PwrSnsr_Abort (SessionID Vi)
 Terminates any measurement in progress and resets the state of the trigger system. Note that Abort will leave the measurement in a stopped condition with all current measurements cleared. More...
 
EXPORT int PwrSnsr_FetchExtendedWaveform (SessionID Vi, const char *Channel, int WaveformArrayBufferSize, float WaveformArray[], int *WaveformArrayActualSize, int Count)
 When capture priority is enabled, returns up to 100000 points of trace data based on the current timebase starting at the current trigger delay point. More...
 
EXPORT int PwrSnsr_Clear (SessionID Vi)
 Clear all data buffers. Clears averaging filters to empty. More...
 
EXPORT int PwrSnsr_InitiateAquisition (SessionID Vi)
 Starts a single measurement cycle when INITiate:CONTinuous is set to OFF. More...
 
EXPORT int PwrSnsr_Status (SessionID Vi, PwrSnsrAcquisitionStatusEnum *Val)
 Returns whether an acquisition is in progress, complete, or if the status is unknown. More...
 
EXPORT int PwrSnsr_SetInitiateContinuous (SessionID Vi, int InitiateContinuous)
 Set the data acquisition mode for single or free-run measurements. More...
 
EXPORT int PwrSnsr_GetInitiateContinuous (SessionID Vi, int *InitiateContinuous)
 Get the data acquisition mode for single or free-run measurements. More...
 
EXPORT int PwrSnsr_EnableCapturePriority (SessionID Vi, const char *Channel, int Enabled)
 Sets the 55 series power meter to a buffered capture mode and disables real time processing. More...
 
EXPORT int PwrSnsr_GetChannelByIndex (SessionID Vi, int BuffSize, char Channel[], int Index)
 Gets the channel name by zero index. Note: SCPI commands use a one-based index. More...
 
EXPORT int PwrSnsr_GetEnabled (SessionID Vi, const char *Channel, int *Enabled)
 Get the measurement state of the selected channel. When the value is true, the channel performs measurements; when the value is false, the channel is disabled and no measurements are performed. More...
 
EXPORT int PwrSnsr_SetEnabled (SessionID Vi, const char *Channel, int Enabled)
 Get the measurement state of the selected channel. When the value is true, the channel performs measurements; when the value is false, the channel is disabled and no measurements are performed. More...
 
EXPORT int PwrSnsr_GetSerialNumber (SessionID Vi, const char *Channel, int SerialNumberBufferSize, char SerialNumber[])
 Gets the serial number of the sensor. More...
 
EXPORT int PwrSnsr_GetChannelCount (SessionID Vi, int *Count)
 Get number of channels. More...
 
EXPORT int PwrSnsr_GetUnits (SessionID Vi, const char *Channel, PwrSnsrUnitsEnum *Units)
 Get units for the selected channel. More...
 
EXPORT int PwrSnsr_SetUnits (SessionID Vi, const char *Channel, PwrSnsrUnitsEnum Units)
 Set units for the selected channel. More...
 
EXPORT int PwrSnsr_GetCurrentTemp (SessionID Vi, const char *Channel, double *CurrentTemp)
 Get current sensor internal temperature in degrees C. More...
 
EXPORT int PwrSnsr_GetAverage (SessionID Vi, const char *Channel, int *Average)
 Get the number of traces averaged together to form the measurement result on the selected channel. More...
 
EXPORT int PwrSnsr_SetAverage (SessionID Vi, const char *Channel, int Average)
 Set the number of traces averaged together to form the measurement result on the selected channel. More...
 
EXPORT int PwrSnsr_GetBandwidth (SessionID Vi, const char *Channel, PwrSnsrBandwidthEnum *Bandwidth)
 Get the sensor video bandwidth for the selected sensor. More...
 
EXPORT int PwrSnsr_SetBandwidth (SessionID Vi, const char *Channel, PwrSnsrBandwidthEnum Bandwidth)
 Set the sensor video bandwidth for the selected sensor. More...
 
EXPORT int PwrSnsr_GetFilterState (SessionID Vi, const char *Channel, PwrSnsrFilterStateEnum *FilterState)
 Get the current setting of the integration filter on the selected channel. More...
 
EXPORT int PwrSnsr_SetFilterState (SessionID Vi, const char *Channel, PwrSnsrFilterStateEnum FilterState)
 Set the current setting of the integration filter on the selected channel. More...
 
EXPORT int PwrSnsr_GetFilterTime (SessionID Vi, const char *Channel, float *FilterTime)
 Get the current length of the integration filter on the selected channel. More...
 
EXPORT int PwrSnsr_SetFilterTime (SessionID Vi, const char *Channel, float FilterTime)
 Set the current length of the integration filter on the selected channel. More...
 
EXPORT int PwrSnsr_GetIsAvgSensor (SessionID Vi, const char *Channel, int *IsAvgSensor)
 Retruns true if sensor is average responding (not peak detecting). More...
 
EXPORT int PwrSnsr_GetDistal (SessionID Vi, const char *Channel, float *Distal)
 Get the pulse amplitude percentage, which is used to define the end of a rising edge or beginning of a falling edge transition. More...
 
EXPORT int PwrSnsr_SetDistal (SessionID Vi, const char *Channel, float Distal)
 Set the pulse amplitude percentage, which is used to define the end of a rising edge or beginning of a falling edge transition. More...
 
EXPORT int PwrSnsr_GetEndGate (SessionID Vi, const char *Channel, float *EndGate)
 Get the point on a pulse, which is used to define the end of the pulse's active interval. More...
 
EXPORT int PwrSnsr_SetEndGate (SessionID Vi, const char *Channel, float EndGate)
 Set the point on a pulse, which is used to define the end of the pulse's active interval. More...
 
EXPORT int PwrSnsr_GetMesial (SessionID Vi, const char *Channel, float *Mesial)
 Get the pulse amplitude percentage, which is used to define the midpoint of a rising edge or end of a falling edge transition. More...
 
EXPORT int PwrSnsr_SetMesial (SessionID Vi, const char *Channel, float Mesial)
 Set the pulse amplitude percentage, which is used to define the midpoint of a rising edge or end of a falling edge transition. More...
 
EXPORT int PwrSnsr_GetProximal (SessionID Vi, const char *Channel, float *Proximal)
 Get the pulse amplitude percentage, which is used to define the beginning of a rising edge or end of a falling edge transition. More...
 
EXPORT int PwrSnsr_SetProximal (SessionID Vi, const char *Channel, float Proximal)
 Set the pulse amplitude percentage, which is used to define the beginning of a rising edge or end of a falling edge transition. More...
 
EXPORT int PwrSnsr_GetPulseUnits (SessionID Vi, const char *Channel, PwrSnsrPulseUnitsEnum *Units)
 Get the units for entering the pulse distal, mesial and proximal levels. More...
 
EXPORT int PwrSnsr_SetPulseUnits (SessionID Vi, const char *Channel, PwrSnsrPulseUnitsEnum PwrSnsrPulseUnitsEnum)
 Set the units for entering the pulse distal, mesial and proximal levels. More...
 
EXPORT int PwrSnsr_GetStartGate (SessionID Vi, const char *Channel, float *StartGate)
 Get the point on a pulse, which is used to define the beginning of the pulse's active interval. More...
 
EXPORT int PwrSnsr_SetStartGate (SessionID Vi, const char *Channel, float StartGate)
 Set the point on a pulse, which is used to define the beginning of the pulse's active interval. More...
 
EXPORT int PwrSnsr_GetCalFactors (SessionID Vi, const char *Channel, float *MaxFrequency, float *MinFrequency, int FrequencyListBufferSize, float FrequencyList[], int *FrequencyListActualSize, int CalFactorListBufferSize, float CalFactorList[], int *CalFactorListActualSize, PwrSnsrBandwidthEnum Bandwidth)
 Query information associated with calibration factors. More...
 
EXPORT int PwrSnsr_GetCalFactor (SessionID Vi, const char *Channel, float *CalFactor)
 Get the frequency calibration factor currently in use on the selected channel. More...
 
EXPORT int PwrSnsr_SetCalFactor (SessionID Vi, const char *Channel, float CalFactor)
 Set the frequency calibration factor currently in use on the selected channel. More...
 
EXPORT int PwrSnsr_GetFrequency (SessionID Vi, const char *Channel, float *Frequency)
 Get the RF frequency for the current sensor. More...
 
EXPORT int PwrSnsr_SetFrequency (SessionID Vi, const char *Channel, float Frequency)
 Set the RF frequency for the current sensor, and apply the appropriate frequency calibration factor from the sensor internal table. More...
 
EXPORT int PwrSnsr_GetOffsetdB (SessionID Vi, const char *Channel, float *OffsetdB)
 Get a measurement offset in dB for the selected sensor. More...
 
EXPORT int PwrSnsr_SetOffsetdB (SessionID Vi, const char *Channel, float OffsetdB)
 Set a measurement offset in dB for the selected sensor. More...
 
EXPORT int PwrSnsr_GetTempComp (SessionID Vi, const char *Channel, int *TempComp)
 Get the state of the peak sensor temperature compensation system. More...
 
EXPORT int PwrSnsr_SetTempComp (SessionID Vi, const char *Channel, int TempComp)
 Set the state of the peak sensor temperature compensation system. More...
 
EXPORT int PwrSnsr_GetModel (SessionID Vi, const char *Channel, int ModelBufferSize, char Model[])
 Gets the model of the meter connected to the specified channel. More...
 
EXPORT int PwrSnsr_GetPeakHoldDecay (SessionID Vi, const char *Channel, int *EnvelopeAverage)
 Get the number of min/max traces averaged together to form the peak hold measurement results on the selected channel. More...
 
EXPORT int PwrSnsr_GetPeakHoldTracking (SessionID Vi, const char *Channel, int *EnvelopeTracking)
 Returns whether peak hold decay automatically tracks trace averaging. If set to true, the peak hold decay and trace averaging values are the same. If set to false, peak hold decay is indepedent. More...
 
EXPORT int PwrSnsr_SetPeakHoldTracking (SessionID Vi, const char *Channel, int EnvelopeTracking)
 Sets whether peak hold decay automatically tracks trace averaging. If set to true, the peak hold decay and trace averaging values are the same. If set to false, peak hold decay is indepedent. More...
 
EXPORT int PwrSnsr_GetFirmwareVersion (SessionID Vi, const char *Channel, int FirmwareVersionBufferSize, char FirmwareVersion[])
 Returns the firmware version of the power meter associated with this channel. More...
 
EXPORT int PwrSnsr_SetPeakHoldDecay (SessionID Vi, const char *Channel, int PeakHoldDecay)
 Set the number of min/max traces averaged together to form the peak hold measurement results on the selected channel. More...
 
EXPORT int PwrSnsr_GetTimebase (SessionID Vi, float *Timebase)
 Get the Pulse Mode timebase in seconds/division. (10 divisions = 1 trace) Value = 5e-9 to 10e-3 (or max timebase) sec in a 1-2-5 sequence,. More...
 
EXPORT int PwrSnsr_SetTimebase (SessionID Vi, float Timebase)
 Set the Pulse Mode timebase in seconds/division. (10 divisions = 1 trace) Value = 5e-9 to 10e-3 sec (or max timebase) in a 1-2-5 sequence,. More...
 
EXPORT int PwrSnsr_SetTimespan (SessionID Vi, float Timespan)
 Set the horizontal time span of the trace in pulse mode. Time span = 10* Time/Division. Value = 5e-8 to 100e-3 sec in a 1-2-5 sequence. More...
 
EXPORT int PwrSnsr_GetTimespan (SessionID Vi, float *Timespan)
 Get the horizontal time span of the trace in pulse mode. Time span = 10* Time/Division. Value = 5e-8 to 100e-3 sec in a 1-2-5 sequence. More...
 
EXPORT int PwrSnsr_GetMaxTimebase (SessionID Vi, float *MaxTimebase)
 Gets the maximum timebase setting available. More...
 
EXPORT int PwrSnsr_GetMarkerTimePosition (SessionID Vi, int MarkerNumber, float *TimePosition)
 Get the time (x-axis-position) of the selected marker relative to the trigger. More...
 
EXPORT int PwrSnsr_SetMarkerTimePosition (SessionID Vi, int MarkerNumber, float TimePosition)
 Set the time (x-axis-position) of the selected marker relative to the trigger. More...
 
EXPORT int PwrSnsr_GetMarkerPixelPosition (SessionID Vi, int MarkerNumber, int *PixelPosition)
 Get the horizontal pixel position (X-axis-position) of the selected vertical marker. There are 501 pixel positions numbered from 0 to 500 inclusive. More...
 
EXPORT int PwrSnsr_SetMarkerPixelPosition (SessionID Vi, int MarkerNumber, int PixelPosition)
 Set the horizontal pixel position (X-axis-position) of the selected vertical marker. There are 501 pixel positions numbered from 0 to 500 inclusive. More...
 
EXPORT int PwrSnsr_FetchArrayMarkerPower (SessionID Vi, const char *Channel, float *AvgPower, PwrSnsrCondCodeEnum *AvgPowerCondCode, float *MaxPower, PwrSnsrCondCodeEnum *MaxPowerCondCode, float *MinPower, PwrSnsrCondCodeEnum *MinPowerCondCode, float *PkToAvgRatio, PwrSnsrCondCodeEnum *PkToAvgRatioCondCode, float *Marker1Power, PwrSnsrCondCodeEnum *Marker1PowerCondCode, float *Marker2Power, PwrSnsrCondCodeEnum *Marker2PowerCondCode, float *MarkerRatio, PwrSnsrCondCodeEnum *MarkerRatioCondCode)
 Returns an array of the current marker measurements for the specified channel. More...
 
EXPORT int PwrSnsr_FetchMarkerAverage (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Forthe specified marker, return the average power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchMarkerMax (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Forthe specified marker, return the maximum power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchMarkerMin (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *IsValid, float *Val)
 Forthe specified marker, return the minimum power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadArrayMarkerPower (SessionID Vi, const char *Channel, float *AvgPower, PwrSnsrCondCodeEnum *AvgPowerCondCode, float *MaxPower, PwrSnsrCondCodeEnum *MaxPowerCondCode, float *MinPower, PwrSnsrCondCodeEnum *MinPowerCondCode, float *PkToAvgRatio, PwrSnsrCondCodeEnum *PkToAvgRatioCondCode, float *Marker1Power, PwrSnsrCondCodeEnum *Marker1PowerCondCode, float *Marker2Power, PwrSnsrCondCodeEnum *Marker2PowerCondCode, float *MarkerRatio, PwrSnsrCondCodeEnum *MarkerRatioCondCode)
 Returns an array of the current marker measurements for the specified channel. More...
 
EXPORT int PwrSnsr_ReadMarkerAverage (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Forthe specified marker, return the average power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadMarkerMax (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Forthe specified marker, return the maximum power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadMarkerMin (SessionID Vi, const char *Channel, int Marker, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Forthe specified marker, return the minimum power or voltage at the marker. The units are the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the average power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalFilteredMin (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the minmum power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalFilteredMax (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the maximum filtered power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalMax (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the maximum instantaneous power or voltage in the time interval between marker1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalMin (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the minimum instantaneous power or voltage in the time interval between marker1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalPkToAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the peak-to-average ratio of the power or voltage between marker 1 and marker 2. The units are dB for logarithmic channel units or percent for linear channel units. More...
 
EXPORT int PwrSnsr_ReadIntervalAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the average power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalFilteredMin (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the minmum power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalFilteredMax (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the maximum filtered power or voltage in the time interval between marker 1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalMax (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the maximum instantaneous power or voltage in the time interval between marker1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalMin (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the minimum instantaneous power or voltage in the time interval between marker1 and marker 2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalPkToAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the peak-to-average ratio of the power or voltage between marker 1 and marker 2. The units are dB for logarithmic channel units or percent for linear channel units. More...
 
EXPORT int PwrSnsr_FetchIntervalMaxAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return maximum of the average power trace between MK1 and MK2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchIntervalMinAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return minimum of the average power trace between MK1 and MK2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalMaxAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return maximum of the average power trace between MK1 and MK2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_ReadIntervalMinAvg (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return minimum of the average power trace between MK1 and MK2. The units will be the same as the specified channel. More...
 
EXPORT int PwrSnsr_FetchMarkerDelta (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the difference between MK1 and MK2. The units will be the same as marker units. More...
 
EXPORT int PwrSnsr_FetchMarkerRatio (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the ratio of MK1 to MK2. The units will be dB for logarithmic units or percent for linear units. More...
 
EXPORT int PwrSnsr_FetchMarkerRDelta (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the difference between MK2 and MK1. The units will be the same as marker units. More...
 
EXPORT int PwrSnsr_FetchMarkerRRatio (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the ratio of MK2 to MK1. The units will be dB for logarithmic units or percent for linear units. More...
 
EXPORT int PwrSnsr_ReadMarkerDelta (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the difference between MK1 and MK2. The units will be the same as marker units. More...
 
EXPORT int PwrSnsr_ReadMarkerRatio (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the ratio of MK1 to MK2. The units will be dB for logarithmic units or percent for linear units. More...
 
EXPORT int PwrSnsr_ReadMarkerRDelta (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the difference between MK2 and MK1. The units will be the same as marker units. More...
 
EXPORT int PwrSnsr_ReadMarkerRRatio (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Return the ratio of MK2 to MK1. The units will be dB for logarithmic units or percent for linear units. More...
 
int EXPORT PwrSnsr_GetVerticalCenter (SessionID Vi, const char *Channel, float *VerticalCenter)
 Gets vertical center based on current units: arg = (range varies by units) More...
 
int EXPORT PwrSnsr_SetVerticalCenter (SessionID Vi, const char *Channel, float VerticalCenter)
 Sets vertical center based on current units: arg = (range varies by units) More...
 
int EXPORT PwrSnsr_GetVerticalScale (SessionID Vi, const char *Channel, float *VerticalScale)
 Gets vertical scale based on current units: arg = (range varies by units) More...
 
int EXPORT PwrSnsr_SetVerticalScale (SessionID Vi, const char *Channel, float VerticalScale)
 Sets vertical scale based on current units: arg = (range varies by units) More...
 
EXPORT int PwrSnsr_GetHorizontalOffset (SessionID Vi, const char *Channel, double *HorizontalOffset)
 Get the statistical mode horizontal scale offset in dB. The offset value will appear at the leftmost edge of the scale with units dBr (decibels relative). More...
 
EXPORT int PwrSnsr_SetHorizontalOffset (SessionID Vi, const char *Channel, double HorizontalOffset)
 Set the statistical mode horizontal scale offset in dB. The offset value will appear at the leftmost edge of the scale with units dBr (decibels relative). More...
 
EXPORT int PwrSnsr_GetHorizontalScale (SessionID Vi, const char *Channel, double *HorizontalScale)
 Get the statistical mode horizontal scale in dB/Div. More...
 
EXPORT int PwrSnsr_SetHorizontalScale (SessionID Vi, const char *Channel, double HorizontalScale)
 Set the statistical mode horizontal scale in dB/Div. More...
 
EXPORT int PwrSnsr_FetchCCDFTrace (SessionID Vi, const char *Channel, int TraceBufferSize, float Trace[], int *TraceActualSize)
 Returns the points in the CCDF trace. More...
 
EXPORT int PwrSnsr_StatModeReset (SessionID Vi, const char *Channel)
 Resets statistical capturing mode by clearing the buffers and restarting the aquisition timer. More...
 
EXPORT int PwrSnsr_FetchStatMeasurementArray (SessionID Vi, const char *Channel, double *Pavg, PwrSnsrCondCodeEnum *PavgCond, double *Ppeak, PwrSnsrCondCodeEnum *PpeakCond, double *Pmin, PwrSnsrCondCodeEnum *PminCond, double *PkToAvgRatio, PwrSnsrCondCodeEnum *PkToAvgRatioCond, double *CursorPwr, PwrSnsrCondCodeEnum *CursorPwrCond, double *CursorPct, PwrSnsrCondCodeEnum *CursorPctCond, double *SampleCount, PwrSnsrCondCodeEnum *SampleCountCond, double *SecondsRun, PwrSnsrCondCodeEnum *SecondsRunCond)
 Returns an array of the current automatic statistical measurements performed on a sample population. More...
 
EXPORT int PwrSnsr_FetchCCDFPower (SessionID Vi, const char *Channel, double Percent, PwrSnsrCondCodeEnum *CondCode, double *Val)
 Return relative power (in dB) for a given percent on the CCDF plot. More...
 
EXPORT int PwrSnsr_FetchCCDFPercent (SessionID Vi, const char *Channel, double Power, PwrSnsrCondCodeEnum *CondCode, double *Val)
 Return relative power (in dB) for a given percent on the CCDF plot. More...
 
EXPORT int PwrSnsr_GetCapture (SessionID Vi, const char *Channel, int *Capture)
 Get whether statistical capture is enabled. More...
 
EXPORT int PwrSnsr_SetCapture (SessionID Vi, const char *Channel, int Capture)
 Set whether statistical capture is enabled. More...
 
EXPORT int PwrSnsr_GetGating (SessionID Vi, const char *Channel, PwrSnsrStatGatingEnum *Gating)
 Get whether statistical capture is enabled. More...
 
EXPORT int PwrSnsr_SetGating (SessionID Vi, const char *Channel, PwrSnsrStatGatingEnum Gating)
 Set whether the statical capture is gated by markers or free-running. More...
 
EXPORT int PwrSnsr_GetTermAction (SessionID Vi, const char *Channel, PwrSnsrTermActionEnum *TermAction)
 Get the termination action for statistical capturing. More...
 
EXPORT int PwrSnsr_SetTermAction (SessionID Vi, const char *Channel, PwrSnsrTermActionEnum TermAction)
 Set the termination action for statistical capturing. More...
 
EXPORT int PwrSnsr_GetTermCount (SessionID Vi, const char *Channel, double *TermCount)
 Get the termination count for statistical capturing. After the sample count has been reached, the action determined by TermAction is taken. More...
 
EXPORT int PwrSnsr_SetTermCount (SessionID Vi, const char *Channel, double TermCount)
 Set the termination count for statistical capturing. After the sample count has been reached, the action determined by TermAction is taken. More...
 
EXPORT int PwrSnsr_GetTermTime (SessionID Vi, const char *Channel, int *TermTime)
 Get the termination time in seconds for statistical capturing. After the time has elapsed, the action determined by TermAction is taken. More...
 
EXPORT int PwrSnsr_SetTermTime (SessionID Vi, const char *Channel, int TermTime)
 Set the termination time in seconds (1 - 3600) for statistical capturing. After the time has elapsed, the action determined by TermAction is taken. More...
 
EXPORT int PwrSnsr_GetCCDFTraceCount (SessionID Vi, const char *Channel, int *TraceCount)
 Get the number of points in the CCDF trace plot. More...
 
EXPORT int PwrSnsr_SetCCDFTraceCount (SessionID Vi, const char *Channel, int TraceCount)
 Set the number of points (1 - 16384) in the CCDF trace plot. More...
 
EXPORT int PwrSnsr_FetchCursorPercent (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, double *Val)
 Returns the percent CCDF at the cursor. More...
 
EXPORT int PwrSnsr_FetchCursorPower (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, double *Val)
 Returns the power CCDF in dB at the cursor. More...
 
EXPORT int PwrSnsr_GetPercentPosition (SessionID Vi, const char *Channel, double *PercentPosition)
 Get the cursor percent on the CCDF plot. More...
 
EXPORT int PwrSnsr_SetPercentPosition (SessionID Vi, const char *Channel, double PercentPosition)
 Set the cursor percent on the CCDF plot. More...
 
EXPORT int PwrSnsr_SetPowerPosition (SessionID Vi, const char *Channel, double PowerPosition)
 Set the cursor power in dB on the CCDF plot. More...
 
EXPORT int PwrSnsr_GetPowerPosition (SessionID Vi, const char *Channel, double *PowerPosition)
 Get the cursor power in dB on the CCDF plot. More...
 
EXPORT int PwrSnsr_GetAcqStatusArray (SessionID Vi, const char *Channel, int *SweepLength, double *SampleRate, double *SweepRate, double *SweepTime, double *StartTime, int *StatusWord)
 Returns data about the status of the acquisition system. More...
 
EXPORT int PwrSnsr_GetDiagStatusArray (SessionID Vi, const char *Channel, float *DetectorTemp, float *CpuTemp, float *MioVoltage, float *VccInt10, float *VccAux18, float *Vcc50, float *Vcc25, float *Vcc33)
 Returns diagnostic data. More...
 
EXPORT int PwrSnsr_GetManufactureDate (SessionID Vi, const char *Channel, int ManufactureDateBufferSize, char ManufactureDate[])
 Date the sensor was manufactured in the following format YYYYmmDD. More...
 
EXPORT int PwrSnsr_GetImpedance (SessionID Vi, const char *Channel, float *Impedance)
 Input impedance of the sensor. More...
 
EXPORT int PwrSnsr_GetPeakPowerMax (SessionID Vi, const char *Channel, float *PeakPowerMax)
 Maximum power level the sensor can measure. More...
 
EXPORT int PwrSnsr_GetPeakPowerMin (SessionID Vi, const char *Channel, float *PeakPowerMin)
 Minimum power level the sensor can measure. More...
 
EXPORT int PwrSnsr_GetAttenuation (SessionID Vi, const char *Channel, float *Attenuation)
 Attenuation in dB for the sensor. More...
 
EXPORT int PwrSnsr_GetFactoryCalDate (SessionID Vi, const char *Channel, int FactoryCalDateBufferSize, char FactoryCalDate[])
 The date (YYYYmmDD) the last time the sensor was calibrated at the factory. More...
 
EXPORT int PwrSnsr_GetMinimumTrig (SessionID Vi, const char *Channel, float *MinimumTrig)
 Minimum internal trigger level in dBm. More...
 
EXPORT int PwrSnsr_GetMinFreqHighBandwidth (SessionID Vi, const char *Channel, float *MinFreqHighBandwidth)
 Minimum frequency of RF the sensor can measure in high bandwidth. More...
 
EXPORT int PwrSnsr_GetMaxFreqHighBandwidth (SessionID Vi, const char *Channel, float *MaxFreqHighBandwidth)
 Maximum frequency carrier the sensor can measure in high bandwidth. More...
 
EXPORT int PwrSnsr_GetMinFreqLowBandwidth (SessionID Vi, const char *Channel, float *MinFreqLowBandwidth)
 Minimum frequency carrier the sensor can measure in low bandwidth. More...
 
EXPORT int PwrSnsr_GetMaxFreqLowBandwidth (SessionID Vi, const char *Channel, float *MaxFreqLowBandwidth)
 Maximum frequency carrier the sensor can measure in low bandwidth. More...
 
EXPORT int PwrSnsr_GetFpgaVersion (SessionID Vi, const char *Channel, int ValBufferSize, char Val[])
 Get the sensor FPGA version. More...
 
EXPORT int PwrSnsr_SaveUserCal (SessionID Vi, const char *Channel)
 Instructs power meter to save the value of fixed cal, zero, and skew values. More...
 
EXPORT int PwrSnsr_ClearUserCal (SessionID Vi, const char *Channel)
 Resets the value of fixed cal, zero, and skew to factory defaults. More...
 
EXPORT int PwrSnsr_GetExternalSkew (SessionID Vi, const char *Channel, float *External)
 Gets the skew in seconds for the external trigger. More...
 
EXPORT int PwrSnsr_SetExternalSkew (SessionID Vi, const char *Channel, float External)
 Sets the skew in seconds for the external trigger. More...
 
EXPORT int PwrSnsr_GetSlaveSkew (SessionID Vi, const char *Channel, float *SlaveSkew)
 Gets the skew in seconds for the slave trigger. More...
 
EXPORT int PwrSnsr_SetSlaveSkew (SessionID Vi, const char *Channel, float SlaveSkew)
 Sets the skew in seconds for the slave trigger. More...
 
EXPORT int PwrSnsr_GetInternalSkew (SessionID Vi, const char *Channel, float *InternalSkew)
 Gets the skew in seconds for the internal trigger. More...
 
EXPORT int PwrSnsr_SetInternalSkew (SessionID Vi, const char *Channel, float InternalSkew)
 Sets the skew in seconds for the internal trigger. More...
 
EXPORT int PwrSnsr_Zero (SessionID Vi, const char *Channel)
 Performs a zero offset null adjustment. More...
 
EXPORT int PwrSnsr_ZeroQuery (SessionID Vi, const char *Channel, int *Val)
 Performs a zero offset null adjustment and returns true if successful. More...
 
EXPORT int PwrSnsr_GetTimePerPoint (SessionID Vi, const char *Channel, float *TimePerPoint)
 Get time spacing for each waveform point in seconds. More...
 
EXPORT int PwrSnsr_GetSweepTime (SessionID Vi, const char *Channel, float *SweepTime)
 Get sweep time for the trace in seconds. More...
 
EXPORT int PwrSnsr_GetChanTraceCount (SessionID Vi, const char *Channel, int *TraceCount)
 Get the number of points in the CCDF trace plot. More...
 
EXPORT int PwrSnsr_GetTraceStartTime (SessionID Vi, const char *Channel, float *TraceStartTime)
 Get time offset (start time) of the trace in seconds. May be negative, indicating pre-trigger information. More...
 
EXPORT int PwrSnsr_FetchDistal (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the actual detected power of the distal level in the current channel units. More...
 
EXPORT int PwrSnsr_FetchMesial (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the actual detected power of the mesial level in the current channel units. More...
 
EXPORT int PwrSnsr_FetchProximal (SessionID Vi, const char *Channel, PwrSnsrCondCodeEnum *CondCode, float *Val)
 Returns the actual detected power of the proximal level in the current channel units. More...
 
EXPORT int PwrSnsr_FetchAllMultiPulse (SessionID Vi, const char *Channel, int PulseInfosSize, PulseInfo PulseInfos[], int *PulseInfosActualSize)
 Return all previously acquired multiple pulse measurements. The elements in the PulseInfos array correspond to pulses on the current trace from left to right (ascending time order). More...
 
EXPORT int PwrSnsr_SaveToMemoryChannel (SessionID Vi, const char *MemChan, const char *ChannelName)
 Saves the given channel to a memory channel. If the memory channel does not exist, a new one is created. More...
 
EXPORT int PwrSnsr_GetMemChanArchive (SessionID Vi, const char *MemChan, int ValBufferSize, char Val[])
 Returns an XML document containing settings and readings obtained using the SaveToMemoryChannel method. More...
 
EXPORT int PwrSnsr_LoadMemChanFromArchive (SessionID Vi, const char *MemChan, const char *ArchiveContent)
 Loads the named memory channel using the given archive. If the memory channel does not exist, one is created. More...
 
EXPORT int PwrSnsr_GetIsAvailable (SessionID Vi, const char *Channel, int *IsAvailable)
 Returns true if modulated/CW measurement system is available. Will always return false if measurement buffer is enabled. More...
 
EXPORT int PwrSnsr_GetIsRunning (SessionID Vi, const char *Channel, int *IsRunning)
 Returns true if modulated/CW measuremnts are actively running. More...
 
EXPORT int PwrSnsr_GetReadingPeriod (SessionID Vi, const char *Channel, float *ReadingPeriod)
 Returns the period (rate) in seconds per new filtered reading. More...
 
EXPORT int PwrSnsr_GetBufferedAverageMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Get the average power measurements that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_AcquireMeasurements (SessionID Vi, double Timeout, int Count, PwrSnsrMeasBuffStopReasonEnum *StopReason, int *Val)
 Initiates new acquisition from the measurement buffer system (if acquisition is in the stopped state). Blocks until the number of measurements for each enabled channel is equal to count, or a time out has occurred. More...
 
EXPORT int PwrSnsr_GetMaxMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Get the maximum power measurements that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_GetMinMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Get the minimum power measurements that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_GetDuration (SessionID Vi, float *Duration)
 Get the time duration samples are captured during each timed mode acquisiton. More...
 
EXPORT int PwrSnsr_SetDuration (SessionID Vi, float Duration)
 Set the duration samples are captured during each timed mode acquisition. More...
 
EXPORT int PwrSnsr_GetSequenceNumbers (SessionID Vi, const char *Channel, int ValBufferSize, unsigned int Val[], int *ValActualSize)
 Get the sequence number entries that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_GetStartTimes (SessionID Vi, const char *Channel, int ValBufferSize, double Val[], int *ValActualSize)
 Get the start time entries in seconds that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_GetDurations (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Get the duration entries in seconds that were captured during the last call to AcquireMeasurements. More...
 
EXPORT int PwrSnsr_StartAcquisition (SessionID Vi)
 Starts measurement buffer acquisition. This method allows the user to send a command to the power meter to begin buffering measurements without waiting for all measurements to be completed. Alternately, you can call the AcquireReadings method to start buffering measurements and wait for them to be read from the meter. More...
 
EXPORT int PwrSnsr_StopAcquisition (SessionID Vi)
 Sends a command to stop the measurement buffer from acquiring readings. More...
 
EXPORT int PwrSnsr_ClearBuffer (SessionID Vi)
 Sends a command to the power meter to clear all buffered readings. This method does not clear cached measurements accessible through GetAverageMeasurements, etc. More...
 
EXPORT int PwrSnsr_ClearMeasurements (SessionID Vi)
 Clears cached average, min, max, duration, start time, and sequence number measurements. More...
 
EXPORT int PwrSnsr_GetMeasurementsAvailable (SessionID Vi, const char *Channel, int *Val)
 Get the number of measurement entries available that were captured during AcquireMeasurements(). More...
 
EXPORT int PwrSnsr_SetPeriod (SessionID Vi, float Period)
 Set the period each timed mode acquisition (measurement buffer) is started. More...
 
EXPORT int PwrSnsr_GetPeriod (SessionID Vi, float *Period)
 Get the period each timed mode acquisition (measurement buffer) is started. More...
 
EXPORT int PwrSnsr_GetRdgsEnableFlag (SessionID Vi, int *Flag)
 Get the flag indicating which measurement buffer arrays will be read when calling PwrSnsr_AcquireMeasurements. More...
 
EXPORT int PwrSnsr_SetRdgsEnableFlag (SessionID Vi, int Flag)
 Set the flag indicating which measurement buffer arrays will be read when calling PwrSnsr_AcquireMeasurements. More...
 
EXPORT int PwrSnsr_GetGateMode (SessionID Vi, PwrSnsrMeasBuffGateEnum *GateMode)
 Each Measurement Buffer Entry is controlled by a buffer gate that defines the start and end of the entry time interval. The gate signal may be internally or externally generated in several different ways. More...
 
EXPORT int PwrSnsr_SetGateMode (SessionID Vi, PwrSnsrMeasBuffGateEnum GateMode)
 Each Measurement Buffer Entry is controlled by a buffer gate that defines the start and end of the entry time interval. More...
 
EXPORT int PwrSnsr_GetStartMode (SessionID Vi, PwrSnsrMeasBuffStartModeEnum *StartMode)
 Get the mode used to start acquisition of buffer entries. More...
 
EXPORT int PwrSnsr_SetStartMode (SessionID Vi, PwrSnsrMeasBuffStartModeEnum StartMode)
 Set the mode used to start acquisition of buffer entries. More...
 
EXPORT int PwrSnsr_AdvanceReadIndex (SessionID Vi)
 Send a command to the meter to notify it the user is done reading and to advance the read index. More...
 
EXPORT int PwrSnsr_QueryAverageMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Query the power meter for all buffered average power measurements. More...
 
EXPORT int PwrSnsr_QueryStartTimes (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Query the power meter for all buffered start times in seconds. More...
 
EXPORT int PwrSnsr_QuerySequenceNumbers (SessionID Vi, const char *Channel, int ValBufferSize, unsigned int Val[], int *ValActualSize)
 Query the power meter for all buffered sequence numbers. More...
 
EXPORT int PwrSnsr_QueryDurations (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Query the power meter for all buffered measurement durations in seconds. More...
 
EXPORT int PwrSnsr_QueryMaxMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Query the power meter for all buffered maximum power measurements. More...
 
EXPORT int PwrSnsr_QueryMinMeasurements (SessionID Vi, const char *Channel, int ValBufferSize, float Val[], int *ValActualSize)
 Query the power meter for all buffered minimum power measurements. More...
 
EXPORT int PwrSnsr_GetWriteProtection (SessionID Vi, int *WriteProtection)
 Get whether the measurement buffer is set to overwrite members that have not been read by the user. More...
 
EXPORT int PwrSnsr_GetTimedOut (SessionID Vi, int *TimedOut)
 Check if the last measurement buffer session timed out. More...
 
EXPORT int PwrSnsr_GetSessionCount (SessionID Vi, int *SessionCount)
 Get the count of elements for this measurement buffer session. Set to 0 for the meter to continuously acquire measurements. More...
 
EXPORT int PwrSnsr_SetSessionCount (SessionID Vi, int SessionCount)
 Set the count of elements for this measurement buffer session. Set to 0 for the meter to continuously acquire measurements. More...
 
EXPORT int PwrSnsr_SetSessionTimeout (SessionID Vi, float Seconds)
 Set the count of elements for this measurement buffer session. Set to 0 for the meter to continuously acquire measurements. More...
 
EXPORT int PwrSnsr_GetReturnCount (SessionID Vi, int *ReturnCount)
 Get the return count for each measurement query. More...
 
EXPORT int PwrSnsr_SetReturnCount (SessionID Vi, int ReturnCount)
 Set the return count for each measurement query. More...
 
EXPORT int PwrSnsr_SetWriteProtection (SessionID Vi, int WriteProtection)
 Set whether to allow the measurement buffer to overwrite entries that have not been read by the user. More...
 
EXPORT int PwrSnsr_GetOverRan (SessionID Vi, int *OverRan)
 Get flag indicating whether the power meter's internal buffer filled up before being emptied. More...
 
EXPORT int PwrSnsr_GetBufferedMeasurementsAvailable (SessionID Vi, int *MeasurementsAvailable)
 Gets the number of measurements available in the power meter's internal buffer. Note: The number of readings that have been acquired may be more or less. More...
 
EXPORT int PwrSnsr_GetMeasBuffEnabled (SessionID Vi, int *MeasBuffEnabled)
 Get whether the measurement buffer has been enabled. More...
 
EXPORT int PwrSnsr_SetMeasBuffEnabled (SessionID Vi, int MeasBuffEnabled)
 Enable or disable the measurement buffer. Disabling the measurement buffer enables modulated/CW measurements. Conversely, enabling it disables modulated/CW measurements. More...
 
EXPORT int PwrSnsr_ResetContinuousCapture (SessionID Vi)
 Sets a flag indicating to restart continuous capture. This method allows the user to restart continuous acquisition. Has no effect if ContinuousCapture is set to false. More...
 
EXPORT int PwrSnsr_GetEndDelay (SessionID Vi, float *EndDelay)
 Get delay time added to the detected end of a burst for analysis. Typically negative. Typically used to exclude the falling edge of a burst. More...
 
EXPORT int PwrSnsr_SetEndDelay (SessionID Vi, float EndDelay)
 Set delay time added to the detected end of a burst for analysis. Typically negative. Typically used to exclude the falling edge of a burst. More...
 
EXPORT int PwrSnsr_GetStartQual (SessionID Vi, float *StartQual)
 Get the minimum amount of time power remains above the trigger point to be counted as the beginning of a burst. More...
 
EXPORT int PwrSnsr_SetStartQual (SessionID Vi, float StartQual)
 Set the minimum amount of time power remains above the trigger point to be counted as the beginning of a burst. More...
 
EXPORT int PwrSnsr_GetStartDelay (SessionID Vi, float *StartDelay)
 Get delay time added to the detected beginning of a burst for analysis. Typically used to exclude the rising edge of a burst. More...
 
EXPORT int PwrSnsr_SetStartDelay (SessionID Vi, float StartDelay)
 Set delay time added to the detected beginning of a burst for analysis. Typically used to exclude the rising edge of a burst. More...
 
EXPORT int PwrSnsr_GetEndQual (SessionID Vi, float *EndQual)
 Get the minimum amount of time power remains below the trigger point to be counted as the end of a burst. More...
 
EXPORT int PwrSnsr_SetEndQual (SessionID Vi, float EndQual)
 Set the minimum amount of time power remains below the trigger point to be counted as the end of a burst. More...
 
EXPORT int PwrSnsr_SetContinuousCapture (SessionID Vi, int ContinuousCapture)
 Set whether AcquireMeasurements will stop the measurement buffer session or continue capturing measurement buffer entries after being called. More...
 
EXPORT int PwrSnsr_GetContinuousCapture (SessionID Vi, int *ContinuousCapture)
 Get whether AcquireMeasurements will stop the measurement buffer session or continue capturing measurement buffer entries after being called. More...
 
EXPORT int PwrSnsr_Write (SessionID Vi, const char *Channel, int DataBufferSize, unsigned char Data[])
 Write a byte array to the meter. More...
 
EXPORT int PwrSnsr_ReadByteArray (SessionID Vi, const char *Channel, int Count, int ValBufferSize, unsigned char Val[], int *ValActualSize)
 Reads byte array from the meter. More...
 
EXPORT int PwrSnsr_ReadControl (SessionID Vi, const char *Channel, int Count, int ValBufferSize, unsigned char Val[], int *ValActualSize)
 Reads a control transfer on the USB. More...
 
EXPORT int PwrSnsr_GetDongleSerialNumber (long *val)
 Get the hardware license serial number. More...
 
EXPORT int PwrSnsr_GetExpirationDate (int *Date)
 Get the hardware license expiration date. More...
 
EXPORT int PwrSnsr_GetNumberOfCals (long *val)
 Get the number of calibrations left on the license. More...
 
EXPORT int PwrSnsr_IsLicenseDongleConnected (int *val)
 Get whether the hardware license dongle is connected. More...
 
EXPORT int PwrSnsr_OpenSimMeter (int NumChans, char *ResourceBuff, int ResourceBuffSize, SessionID *Vi)
 Open a simulated power meter session. More...
 
EXPORT int PwrSnsr_SetSimSignalAmplitude (SessionID Vi, const char *Channel, float Amplitude, PwrSnsrSignalUnits Units)
 Set the amplitude for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_GetSimSignalAmplitude (SessionID Vi, const char *Channel, float *Amplitude, PwrSnsrSignalUnits Units)
 Get the amplitude for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_SetSimSignalModulation (SessionID Vi, const char *Channel, PwrSnsrSimParamWeight Weight)
 Set the percent modulation for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_GetSimSignalModulation (SessionID Vi, const char *Channel, PwrSnsrSimParamWeight *Weight)
 Get the percent modulation for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_SetSimSignalCompression (SessionID Vi, const char *Channel, PwrSnsrSimParamWeight Weight)
 Set the percent compression for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_GetSimSignalCompression (SessionID Vi, const char *Channel, PwrSnsrSimParamWeight *Weight)
 Get the percent compression for the signal on a simulation channel. More...
 
EXPORT int PwrSnsr_SetSimSignalType (SessionID Vi, const char *Channel, PwrSnsrSimSignalType SignalType)
 Set the simulated channel signal type. More...
 
EXPORT int PwrSnsr_GetSimSignalType (SessionID Vi, const char *Channel, PwrSnsrSimSignalType *SignalType)
 Get the simulated channel signal type. More...
 
EXPORT int PwrSnsr_SetSimSignalPRF (SessionID Vi, const char *Channel, float PRF)
 Set the simulated signal PRF. Valid for Periodic and Burst. More...
 
EXPORT int PwrSnsr_GetSimSignalPRF (SessionID Vi, const char *Channel, float *PRF)
 Get the simulated signal PRF. Valid for Periodic and Burst. More...
 
EXPORT int PwrSnsr_SetSimSignalDuty (SessionID Vi, const char *Channel, float Duty)
 Set the simulated signal duty cycle in percent. Affects Periodic only. More...
 
EXPORT int PwrSnsr_GetSimSignalDuty (SessionID Vi, const char *Channel, float *Duty)
 Get the simulated signal duty cycle in percent. Affects Periodic only. More...
 

Detailed Description

File containing all user-callable functions.

Macro Definition Documentation

◆ CURRENT_TIMEOUT

#define CURRENT_TIMEOUT   (-2)

Value indicating to use the current timeout.

◆ EXPORT

#define EXPORT

DLL export declaration.

◆ SUCCESS

#define SUCCESS   (0L)

Successful operation return value.

Typedef Documentation

◆ PwrSnsrAcquisitionStatusEnum

Instrument acquisition status.

◆ PwrSnsrBandwidthEnum

Video bandwidth enumeration.

◆ PwrSnsrCondCodeEnum

Condition code indicating validity of the measurement.

◆ PwrSnsrErrorCodesEnum

Error codes

◆ PwrSnsrFilterStateEnum

Filter state enum.

◆ PwrSnsrHoldoffModeEnum

Trigger holdoff mode.

◆ PwrSnsrMarkerNumberEnum

Marker number enumeration.

◆ PwrSnsrMeasBuffGateEnum

Measurement buffer gate modes.

◆ PwrSnsrMeasBuffStartModeEnum

Measurement buffer start modes.

◆ PwrSnsrMeasBuffStopReasonEnum

Measurement buffer stop reason.

◆ PwrSnsrPulseUnitsEnum

Enum for pulse calculation units.

◆ PwrSnsrRdgsEnableFlag

Select the action to take when either the statistical terminalcount is reached or the terminal time has elapsed.

◆ PwrSnsrStatGatingEnum

Gating value for statistical capture.

◆ PwrSnsrTermActionEnum

Select the action to take when either the statistical terminalcount is reached or the terminal time has elapsed.

◆ PwrSnsrTriggerModeEnum

Trigger mode for synchronizing data acquisition with pulsed signals.

◆ PwrSnsrTriggerPositionEnum

Set or return the position of the trigger event on displayed sweep.

◆ PwrSnsrTriggerSlopeEnum

Values for edge trigger slope

◆ PwrSnsrTriggerSourceEnum

Trigger source used for synchronizing data acquisition.

◆ PwrSnsrTriggerStatusEnum

Trigger status of the acquisition system.

◆ PwrSnsrTrigOutModeEnum

Multi IO trigger out modes.

◆ PwrSnsrUnitsEnum

Units returned by channel measurements.

◆ SessionID

typedef int SessionID

Session identification handle.

Enumeration Type Documentation

◆ PwrSnsrAcquisitionStatusEnum

Instrument acquisition status.

Enumerator
PwrSnsrAcqComplete 

The sensor has completed the acquisition.

PwrSnsrAcqInProgress 

The sensor is still acquiring data.

PwrSnsrAcqStatusUnknown 

The sensor cannot determine the status of the acquisition.

◆ PwrSnsrBandwidthEnum

Video bandwidth enumeration.

Enumerator
PwrSnsrBandwidthHigh 

High bandwidth.

PwrSnsrBandwidthLow 

Low bandwidth.

◆ PwrSnsrCondCodeEnum

Condition code indicating validity of the measurement.

Enumerator
PwrSnsrCondCodeMeasurementStopped 

Measurement is STOPPED. Value returned is not updated.

PwrSnsrCondCodeError 

Error return. Measurement is not valid.

PwrSnsrCondCodeUnderrange 

An Over-range condition exists.

PwrSnsrCondCodeOverrange 

An Under-range condition exists.

PwrSnsrCondCodeNormal 

Normal return. No error.

◆ PwrSnsrErrorCodesEnum

Error codes

Enumerator
PWR_SNSR_IO_GENERAL 

I/O error.

PWR_SNSR_IO_TIMEOUT 

I/O timeout error.

PWR_SNSR_MODEL_NOT_SUPPORTED 

Instrument model does not support this feature.

PWR_SNSR_INV_PARAMETER 

Invalid parameter value

PWR_SNSR_ERROR_INVALID_SESSION_HANDLE 

Session ID invalid.

PWR_SNSR_ERROR_STATUS_NOT_AVAILABLE 

Status not available.

PWR_SNSR_ERROR_RESET_FAILED 

Reset failed.

PWR_SNSR_ERROR_RESOURCE_UNKNOWN 

Unknown resource descriptor.

PWR_SNSR_ERROR_ALREADY_INITIALIZED 

Session already initialized.

PWR_SNSR_ERROR_OUT_OF_MEMORY 

Out of memory.

PWR_SNSR_ERROR_OPERATION_PENDING 

Operation pending.

PWR_SNSR_ERROR_NULL_POINTER 

Null pointer not allowed.

PWR_SNSR_ERROR_UNEXPECTED_RESPONSE 

Unexpected response from the instrument.

PWR_SNSR_ERROR_NOT_INITIALIZED 

Session not initialized.

PWR_SNSR_LIBUSB_ERROR_IO 

Input/output error

PWR_SNSR_LIBUSB_ERROR_INVALID_PARAM 

Invalid parameter

PWR_SNSR_LIBUSB_ERROR_ACCESS 

Access denied (insufficient permissions)

PWR_SNSR_LIBUSB_ERROR_NO_DEVICE 

No such device (it may have been disconnected)

PWR_SNSR_LIBUSB_ERROR_NOT_FOUND 

Entity not found

PWR_SNSR_LIBUSB_ERROR_BUSY 

Resource busy

PWR_SNSR_LIBUSB_ERROR_TIMEOUT 

Operation timed out

PWR_SNSR_LIBUSB_ERROR_OVERFLOW 

Overflow

PWR_SNSR_LIBUSB_ERROR_PIPE 

Pipe error

PWR_SNSR_LIBUSB_ERROR_INTERRUPTED 

System call interrupted (perhaps due to signal)

PWR_SNSR_LIBUSB_ERROR_NO_MEM 

Insufficient memory

PWR_SNSR_LIBUSB_ERROR_NOT_SUPPORTED 

Operation not supported or unimplemented on this platform

PWR_SNSR_LIBUSB_ERROR_OTHER 

Other error

◆ PwrSnsrFilterStateEnum

Filter state enum.

Enumerator
PwrSnsrFilterStateOff 

Filter off.

PwrSnsrFilterStateOn 

Filter on.

PwrSnsrFilterStateAuto 

Automatically calculated filter.

◆ PwrSnsrHoldoffModeEnum

Trigger holdoff mode.

Enumerator
PwrSnsrHoldoffModeNormal 

Trigger will not arm again after the trigger conditions and its inverse are satisfied and then the amount of time set for trigger holdoff.

PwrSnsrHoldoffModeGap 

Trigger will not arm again after the trigger conditions are satisfied and then the amount of time set for trigger holdoff.

◆ PwrSnsrMarkerNumberEnum

Marker number enumeration.

Enumerator
PwrSnsrMarkerNumberMarker1 

Marker 1

PwrSnsrMarkerNumberMarker2 

Marker2

◆ PwrSnsrMeasBuffGateEnum

Measurement buffer gate modes.

◆ PwrSnsrMeasBuffStartModeEnum

Measurement buffer start modes.

◆ PwrSnsrMeasBuffStopReasonEnum

Measurement buffer stop reason.

◆ PwrSnsrPulseUnitsEnum

Enum for pulse calculation units.

Enumerator
PwrSnsrPulseUnitsWatts 

Calculates distal, mesial, and proximal using watts.

PwrSnsrPulseUnitsVolts 

Calculates distal, mesial, and proximal using volts.

◆ PwrSnsrRdgsEnableFlag

Select the action to take when either the statistical terminalcount is reached or the terminal time has elapsed.

Enumerator
PwrSnsrSequenceEnable 

Enable sequence array capture.

PwrSnsrStartTimeEnable 

Enable start time array capture.

PwrSnsrDurationEnable 

Enable duration array capture.

PwrSnsrMinEnable 

Enable min measurement array capture.

PwrSnsrAvgEnable 

Enable average measurement capture.

PwrSnsrMaxEnable 

Enable max measurement capture.

◆ PwrSnsrStatGatingEnum

Gating value for statistical capture.

Enumerator
PwrSnsrStatGatingFreeRun 

No gating.

PwrSnsrStatGatingMarkers 

Gating is constrained to the portion of the the trace between the markers.

◆ PwrSnsrTermActionEnum

Select the action to take when either the statistical terminalcount is reached or the terminal time has elapsed.

Enumerator
PwrSnsrTermActionStop 

Stop accumulating samples and hold the result.

PwrSnsrTermActionRestart 

Clear the CCDF and begin a new one.

PwrSnsrTermActionDecimate 

Divide all sample bins by 2 and continue.

◆ PwrSnsrTriggerModeEnum

Trigger mode for synchronizing data acquisition with pulsed signals.

Enumerator
PwrSnsrTriggerModeNormal 

The power meter causes a sweep to be triggered each time the power level crosses the preset trigger level in the direction specified by the slope.

PwrSnsrTriggerModeAuto 

The power meter automatically triggers if the configured trigger does not occur within the meter's timeout period.

PwrSnsrTriggerModeAutoLevel 

The power meter automatically adjusts the trigger level the trigger level to halfway between the highest and lowest power levels detected.

◆ PwrSnsrTriggerPositionEnum

Set or return the position of the trigger event on displayed sweep.

Enumerator
PwrSnsrTriggerPositionLeft 

Left trigger position.

PwrSnsrTriggerPositionMiddle 

Middle trigger position.

PwrSnsrTriggerPositionRight 

Right trigger position.

◆ PwrSnsrTriggerSlopeEnum

Values for edge trigger slope

Enumerator
PwrSnsrTriggerSlopePositive 

A negative (falling) edge passing through the trigger level triggers the power meter.

PwrSnsrTriggerSlopeNegative 

A positive (rising) edge passing through the trigger level triggers the power meter.

◆ PwrSnsrTriggerSourceEnum

Trigger source used for synchronizing data acquisition.

Enumerator
PwrSnsrTriggerSourceChannel1 

Channel 1

PwrSnsrTriggerSourceExternal 

EXT setting uses the signal applied to the rear MULTI I/O connector.

PwrSnsrTriggerSourceChannel2 

Channel 2

PwrSnsrTriggerSourceChannel3 

Channel 3

PwrSnsrTriggerSourceChannel4 

Channel 4

PwrSnsrTriggerSourceChannel5 

Channel 5

PwrSnsrTriggerSourceChannel6 

Channel 6

PwrSnsrTriggerSourceChannel7 

Channel 7

PwrSnsrTriggerSourceChannel8 

Channel 8

PwrSnsrTriggerSourceChannel9 

Channel 9

PwrSnsrTriggerSourceChannel10 

Channel 10

PwrSnsrTriggerSourceChannel11 

Channel 11

PwrSnsrTriggerSourceChannel12 

Channel 12

PwrSnsrTriggerSourceChannel13 

Channel 13

PwrSnsrTriggerSourceChannel14 

Channel 14

PwrSnsrTriggerSourceChannel15 

Channel 15

PwrSnsrTriggerSourceChannel16 

Channel 16

PwrSnsrTriggerSourceIndependent 

Sets each sensor in a measurment group to use its own internal trigger.

◆ PwrSnsrTriggerStatusEnum

Trigger status of the acquisition system.

Enumerator
PwrSnsrTriggerStatusStopped 

Acquision is stopped.

PwrSnsrTriggerStatusPretrig 

Aquiring data and waiting for the pre-trigger to be satisfied.

PwrSnsrTriggerStatusWaiting 

Meter is armed and waiting for trigger event.

PwrSnsrTriggerStatusAcquiringNew 

Acquiring new data.

PwrSnsrTriggerStatusAutoTrig 

Meter is autotriggering.

PwrSnsrTriggerStatusFreerun 

Trigger is in free-run mode.

PwrSnsrTriggerStatusTriggered 

Meter is currently triggered.

PwrSnsrTriggerStatusRunning 

Acquisition is running.

◆ PwrSnsrTrigOutModeEnum

Multi IO trigger out modes.

◆ PwrSnsrUnitsEnum

Units returned by channel measurements.

Enumerator
PwrSnsrUnitsdBm 

dBm

PwrSnsrUnitswatts 

Watts

PwrSnsrUnitsvolts 

Volts

PwrSnsrUnitsDBV 

dBV

PwrSnsrUnitsDBMV 

dBmV

PwrSnsrUnitsDBUV 

dBuV