RTP Series API Programming Reference  1.2.1
User Calibration

Functions

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...
 

Detailed Description

User calibration functions

Function Documentation

◆ PwrSnsr_ClearUserCal()

EXPORT int PwrSnsr_ClearUserCal ( SessionID  Vi,
const char *  Channel 
)

Resets the value of fixed cal, zero, and skew to factory defaults.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
Returns
Success (0) or error code.

◆ PwrSnsr_GetExternalSkew()

EXPORT int PwrSnsr_GetExternalSkew ( SessionID  Vi,
const char *  Channel,
float *  External 
)

Gets the skew in seconds for the external trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
ExternalTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_GetInternalSkew()

EXPORT int PwrSnsr_GetInternalSkew ( SessionID  Vi,
const char *  Channel,
float *  InternalSkew 
)

Gets the skew in seconds for the internal trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
InternalSkewTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_GetSlaveSkew()

EXPORT int PwrSnsr_GetSlaveSkew ( SessionID  Vi,
const char *  Channel,
float *  SlaveSkew 
)

Gets the skew in seconds for the slave trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
SlaveSkewTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_SaveUserCal()

EXPORT int PwrSnsr_SaveUserCal ( SessionID  Vi,
const char *  Channel 
)

Instructs power meter to save the value of fixed cal, zero, and skew values.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
Returns
Success (0) or error code.

◆ PwrSnsr_SetExternalSkew()

EXPORT int PwrSnsr_SetExternalSkew ( SessionID  Vi,
const char *  Channel,
float  External 
)

Sets the skew in seconds for the external trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
ExternalTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_SetInternalSkew()

EXPORT int PwrSnsr_SetInternalSkew ( SessionID  Vi,
const char *  Channel,
float  InternalSkew 
)

Sets the skew in seconds for the internal trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
InternalSkewTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_SetSlaveSkew()

EXPORT int PwrSnsr_SetSlaveSkew ( SessionID  Vi,
const char *  Channel,
float  SlaveSkew 
)

Sets the skew in seconds for the slave trigger.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
SlaveSkewTrigger skew in seconds (-1e-6 to 1e-6).
Returns
Success (0) or error code.

◆ PwrSnsr_Zero()

EXPORT int PwrSnsr_Zero ( SessionID  Vi,
const char *  Channel 
)

Performs a zero offset null adjustment.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
Returns
Success (0) or error code.

◆ PwrSnsr_ZeroQuery()

EXPORT int PwrSnsr_ZeroQuery ( SessionID  Vi,
const char *  Channel,
int *  Val 
)

Performs a zero offset null adjustment and returns true if successful.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
ValBoolean value for operation success or failure.
Returns
Success (0) or error code.