Description
Interface used to access the time options for the current procedure. Use this interface to set an Interrupt Time or Fixed Duration for a procedure.
Public Methods
Public Properties
CoClasses that Implement IAgAvtrProcedureTimeOptions
Example
Configure procedure time options
[C#] |
---|
// Get the time in epoch seconds
Application.UnitPreferences.SetCurrentUnit("DateFormat", "EpSec");
// Get the time options
IAgAvtrProcedureTimeOptions timeOptions = procedure.TimeOptions;
// Get the start time
Object startTime = timeOptions.StartTime;
// Set the procedure to interrupt after 15 seconds
timeOptions.SetInterruptTime(15);
|
|
Configure procedure time options
[Visual Basic .NET] |
---|
' Get the time in epoch seconds
Application.UnitPreferences.SetCurrentUnit("DateFormat", "EpSec")
' Get the time options
Dim timeOptions As IAgAvtrProcedureTimeOptions = procedure.TimeOptions
' Get the start time
Dim startTime As [Object] = timeOptions.StartTime
' Set the procedure to interrupt after 15 seconds
timeOptions.SetInterruptTime(15)
|
|
Configure a procedure time options
[Python - STK API] |
---|
# IAgAvtrProcedure procedure: Procedure object
# Get the time in epoch seconds
root.UnitPreferences.SetCurrentUnit('DateFormat', 'EpSec')
# Get the time options
timeOptions = procedure.TimeOptions
# Get the start time
startTime = timeOptions.StartTime
# Set the procedure to interrupt after 15 seconds
timeOptions.SetInterruptTime(15)
|
|
Configure a procedure time options
[MATLAB] |
---|
% IAgAvtrProcedure procedure: Procedure object
% Get the time in epoch seconds
root.UnitPreferences.SetCurrentUnit('DateFormat', 'EpSec');
% Get the time options
timeOptions = procedure.TimeOptions;
% Get the start time
startTime = timeOptions.StartTime;
% Set the procedure to interrupt after 15 seconds
timeOptions.SetInterruptTime(15);
|
|