RTP Series API Programming Reference
1.2.1
|
Typedefs | |
typedef enum PwrSnsrSignalUnits | PwrSnsrSignalUnits |
typedef enum PwrSnsrSimSignalType | PwrSnsrSimSignalType |
typedef enum PwrSnsrSimParamWeight | PwrSnsrSimParamWeight |
Enumerations | |
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_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... | |
Sensor simulation functions
typedef enum PwrSnsrSignalUnits PwrSnsrSignalUnits |
Unit selector for watts or dBm.
typedef enum PwrSnsrSimParamWeight PwrSnsrSimParamWeight |
Simulated signal parameter setting weight.
typedef enum PwrSnsrSimSignalType PwrSnsrSimSignalType |
Simulated signal type.
enum PwrSnsrSignalUnits |
enum PwrSnsrSimSignalType |
EXPORT int PwrSnsr_GetSimSignalAmplitude | ( | SessionID | Vi, |
const char * | Channel, | ||
float * | Amplitude, | ||
PwrSnsrSignalUnits | Units | ||
) |
Get the amplitude for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Amplitude | The simulated signal level (return value). |
Units | Units of amplitude in dBm or Watts |
EXPORT int PwrSnsr_GetSimSignalCompression | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimParamWeight * | Weight | ||
) |
Get the percent compression for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Weight | The relative compression setting (return value). |
Get the simulated signal duty cycle in percent. Affects Periodic only.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Duty | Duty cycle in percent (return value). |
EXPORT int PwrSnsr_GetSimSignalModulation | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimParamWeight * | Weight | ||
) |
Get the percent modulation for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Weight | The relative modulation setting (return value). |
Get the simulated signal PRF. Valid for Periodic and Burst.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
PRF | Pulse repetition frequency in Hz (return value). |
EXPORT int PwrSnsr_GetSimSignalType | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimSignalType * | SignalType | ||
) |
Get the simulated channel signal type.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
SignalType | The simulated signal type (return value). |
EXPORT int PwrSnsr_OpenSimMeter | ( | int | NumChans, |
char * | ResourceBuff, | ||
int | ResourceBuffSize, | ||
SessionID * | Vi | ||
) |
Open a simulated power meter session.
NumChans | Number of channels |
ResourceBuff | Buffer to read back the session name, can be NULL |
ResourceBuffSize | size of ResourceBuff in characters |
Vi | SessionID handle (out parameter) |
EXPORT int PwrSnsr_SetSimSignalAmplitude | ( | SessionID | Vi, |
const char * | Channel, | ||
float | Amplitude, | ||
PwrSnsrSignalUnits | Units | ||
) |
Set the amplitude for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Amplitude | The simulated signal level |
Units | Units of amplitude in dBm or Watts |
EXPORT int PwrSnsr_SetSimSignalCompression | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimParamWeight | Weight | ||
) |
Set the percent compression for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Weight | The relative compression setting. |
Set the simulated signal duty cycle in percent. Affects Periodic only.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Duty | Duty cycle in percent ( < 99.0). |
EXPORT int PwrSnsr_SetSimSignalModulation | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimParamWeight | Weight | ||
) |
Set the percent modulation for the signal on a simulation channel.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Weight | The relative modulation setting. |
Set the simulated signal PRF. Valid for Periodic and Burst.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
PRF | Pulse repetition frequency in Hz. |
EXPORT int PwrSnsr_SetSimSignalType | ( | SessionID | Vi, |
const char * | Channel, | ||
PwrSnsrSimSignalType | SignalType | ||
) |
Set the simulated channel signal type.
Vi | The SessionID handle that you obtain from the PwrSnsr_OpenSimMeter function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
SignalType | The simulated signal type. |