IviPwrMeter_ConfigureInternalTrigger
IviPwrMeterInternalTrigger Capability Group
C Function Prototype
ViStatus IviPwrMeter_ConfigureInternalTrigger (ViSession vi, ViConstString eventSource, ViInt32 slope);
Purpose
This function configures the internal trigger event source and the internal trigger slope of the power meter.
Parameters
Name | Type | Description |
---|---|---|
vi | ViSession | The ViSession handle that you obtain from the IviPwrMeter_init or IviPwrMeter_InitWithOptions function. The handle identifies a particular instrument session. Default Value: None |
eventSource | ViConstString | The name of the channel to use as the internal trigger event source. The driver sets the IVIPWRMETER_ATTR_INTERNAL_TRIGGER_EVENT_SOURCE attribute to this value. Pass the virtual channel name that you assign to the instrument in the Configuration Utility. Virtual channel names are aliases for instrument-specific channel strings. The instrument-specific channel strings can differ from one instrument to another. Virtual channel names allow you to use and swap instruments without having to change the channel names in your source code. You assign a virtual channel name to an instrument-specific channel through the Configuration Utility. This control accepts virtual channel names you have assigned to the specific instrument you are using. It also accepts the instrument-specific channel names. Default Value: "" Notes: You can specify the channel name as a string variable or as a literal enclosed in double quotes. |
slope | ViInt32 | The internal trigger slope. The driver sets the IVIPWRMETER_ATTR_INTERNAL_TRIGGER_SLOPE attribute to this value. Valid Values: IVIPWRMETER_VAL_POSITIVE - Sets the trigger event to occur on the rising edge of the trigger pulse. IVIPWRMETER_VAL_NEGATIVE (Difference) - Sets the trigger event to occur on the falling edge of the trigger pulse. Default Value: IVIPWRMETER_VAL_POSITIVE |