Importing External Data Files Into STK

STK Pro, STK Premium (Air), STK Premium (Space), or STK Enterprise
You can obtain the necessary licenses for this tutorial by contacting AGI Support at support@agi.com or 1-800-924-7244.

The results of the tutorial may vary depending on the user settings and data enabled (online operations, terrain server, dynamic Earth data, etc.). It is acceptable to have different results.

Capabilities covered

This lesson covers the following capabilities of the Ansys Systems Tool Kit® (STK®) digital mission engineering software:

  • STK Pro
  • Analysis Workbench

Problem statement

Engineers and analysts want to analyze post-flight and post-operation telemetry data from a test. The data are critical to help understand behaviors of a vehicle and its subsystems. You have telemetry data available from external sources, but you must format it in such a way that they are usable by the STK application for visualization and analysis purposes.

Solution

Extend your analysis and reporting capabilities by configuring the external data files so they can be read by the STK application to provide reference data for a scenario object. First, create an External Data file and modify it with a simple text editor so it can be read by the STK application. Then, import it using a Connect command to read the data into the STK application, which will associate it with an STK object and a particular data provider. Next, create and edit a Calculation Scalar file and use it with the STK software's Analysis Workbench capability to associate it with another data provider. Once imported, use each file to create custom dynamic data displays.

What you will learn

Upon completion of this tutorial, you will understand:

  • How to create and format External Data files and Calculation Scalar files
  • How to import data from External Data files using Connect commands
  • How to import data from Calculation Scalar files using the Analysis Workbench capability
  • How to create custom data displays using the User Supplied Data and Scalar Calculations data providers

Creating a new scenario

First, you must create a new STK scenario, then build from there.

  1. Launch the STK application ().
  2. Click Create a Scenario in the Welcome to STK dialog box.
  3. Enter the following in the STK: New Scenario Wizard:
  4. Option Value
    Name External_Data_Test
    Location Default
    Start Default date / time 16:00:00.000 UTCG
    Stop + 24 hr
  5. Click OK when you finish.
  6. Click Save () when the scenario loads.
  7. The STK software creates a folder with the same name as your scenario for you.

  8. Verify the scenario name and location in the Save As dialog box.
  9. Click Save.

Save () often during this lesson!

Inserting a Satellite object

Insert a notional Satellite object using the Orbit Wizard method.

  1. Bring the Insert STK Objects tool () to the front.
  2. Select Satellite () in the Select An Object to Be Inserted list.
  3. Select Orbit Wizard () in the Select A Method list.
  4. Click Insert....
  5. Leave the Type set to Circular.
  6. Enter TestSat in the Satellite Name field when the Orbit Wizard opens.
  7. Leave all other values set to their defaults.
  8. Click OK to propagate TestSat () and to close the Orbit wizard.

Creating an External Data file

An External Data file is an ASCII text file formatted for compatibility with the STK application that ends in a *.txt extension. External Data files contain time-ordered object data computed outside of the STK application.

The data contained in an External Data file must be arranged in blocks called keyword groups. A keyword group starts with BEGIN <group name> and ends with END <group name>. The information contained in the block consists of keywords their associated values, which are called keyword phrases. Keywords are not case sensitive, and their associated values can be separated by a single or several spaces or tabs.

The keyword groups in External Data files are further organized into data groups and the data elements to ensure that the data contained in the file can be read by the STK application. A data group identifies a group of related quantities that will be specified on the same time grid. Individual values are specified using data elements. Time-ordered data are specified in a Data keyword group.

The data files used in this tutorial represent telemetry data that would come from an external source. They contain notional data not associated with any real satellite. They're used to show you how to format and insert your data when working with the STK application.

Copying the contents of an External Data file

Copy the contents of a sample External Data file and paste it into the text editor of your choice.

  1. Open Windows Notepad, Notepad++, TextPad, or another text editor that does not add hidden characters to your text.
  2. Copy the External Data file sample text below:
  3. stk.v.4.3
    Begin DataGroup
    	GroupName           My Data
    	NumberOfPoints      3
    	BlockFactor         50
    	ReferenceEpoch      1 Jan 2001 00:00:00.000000000
    	Begin DataElement
    		Name          bippy
    		Dimension     DistanceUnit
    		FileUnitAbbr  km
    		InterpOrder   1
    	End DataElement
    	Begin DataElement
    		Name          zippy
    		Dimension     Rate
    		FileUnitAbbr  ft
    		FileUnitAbbr  min
    		InterpOrder   1
    	End DataElement
        
    	Begin Data
    		0.00000000000000e+00  5.03930000000000e+04  1000
    		1.20000000000000e+02  4.84840000000000e+04  2000
    		2.40000000000000e+02  3.23230000000000e+04  3000
    	End Data
    End DataGroup
    
  4. Paste the text into your text editor.

Reviewing the External Data file's contents

Take a look at the contents of the External Data file.

  1. Review the version stamp.
  2. External Data files, like other external file formats, must contain a version stamp. A version stamp indicates the version of the STK software for which the file is formatted to be used. Files can be created in, and imported to, versions of the STK software consistent with the file version stamp or higher. For example, a file created in and stamped with stk.v.4.3, as here, be imported into version 4.3 of the STK software through the most recent version. The version stamp must be the first line in the External Data file.

  3. Review the keyword phrases at the beginning of the file.
    • GroupName — the name of the data grouping; it is used to set data through Connect and becomes the data provider group name in the ExternalData data provider for reporting and graphing
    • NumberOfPoints — the number of time-ordered entries in the data table; in this case, there are three
    • BlockFactorMemory — the number of blocks allocated for reading data. It is used to optimize the performance of sending in data through Connect. In this case, there are 50
    • ReferenceEpoch — the reference epoch for times in the data table. Times are given as seconds past the reference epoch
  4. Review the DataElement keyword blocks.
  5. You have two data elements: bippy and zippy.

  6. Note each data element's Dimension keyword phrase.
  7. Note that the dimensions for bippy and zippy are DistanceUnit and Rate, respectively. A Dimension is the name of a group of units of the same measure for the particular data element. It controls the allowed unit conversions. DistanceUnit is a simple dimension. Rate is a compound dimension, which is built from simple dimensions. The specification of the dimension must precede the specification of the dimension's units. See the Dimensions and Units page for a list of allowable simple and compound dimensions.

  8. Review each data element's FileUnitAbbr (file unit abbreviation) keyword phrase.
  9. In the STK application, unit means both a specific numerical measure of a value and a specific format of a specific numerical measure of a value. FileUnitAbbr is the abbreviation of the unit designation specifying the units in which data are input for each dimension. For input dimensions that are a compound dimension, such as Rate, the abbreviations are supplied for each sub-dimension. By default, the STK application assumes that all distance measurements in a data table are in meters and rate measurements are kilometers per second. Your input data are specified to be in measured in kilometers for the Distance and feet per minute for the Rate. See the Dimensions and Units page for a list of unit abbreviations and the applicable dimensions for each.

  10. Review each data element's InterpOrder keyword phrase.
  11. Whenever derivative information is not available, the STK application resorts to numerical differentiation. The STK application derives the function and its first derivative based on sampled data, using polynomial interpolation. InterpOrder is the order of Lagrange interpolation to be used to provide values at times not specified in the data table.

  12. Review the Data keyword group.
  13. Time-ordered data are specified in this block. You have three data points each for three columns of data: time (in epoch seconds past the reference epoch), distance (in kilometers), and rate (in feet per minute).

Copying the satellite's orbit epoch

Update the file's reference to match that of your satellite.

  1. Return to the STK application.
  2. Right-click on TestSat () in the Object Browser.
  3. Select Properties () in the shortcut menu.
  4. Select the Basic - Orbit page when the Properties Browser opens.
  5. Locate the Orbit Epoch field.
  6. Copy the Orbit Epoch time (for example, 01 Jun 2026 16:00:00.000 UTCG).
  7. Click Cancel to close the Properties Browser without making any changes.

Updating the External Data file's reference epoch

You need update the file's reference to match that of your satellite. It is important to note that the times in the data file are given as seconds past the reference epoch.

  1. Return to your text editor.
  2. Replace the ReferenceEpoch's associated value with the Orbit Epoch time from TestSat.
  3. Delete the UTCG unit label.

Your file's ReferenceEpoch keyword phrase should look like the example below:

ReferenceEpoch      1 Jun 2026 16:00:00.000

Updating the External Data file's DataElement names

The file contains two data elements: bippy and zippy. The names of these elements will appear as the data element names in the STK application. Update them to be easier to understand.

  1. Replace bippy with Distance.
  2. Replace zippy with Rate.

These names will appear, along with Time, in the My Data data provider group in the Report & Graph Manager.

Your finished External Data File should appear similar to the one shown below:

Edited External Data File

Saving the External Data file

Save your External Data file as a text (*.txt) document.

  1. Open the File menu.
  2. Select Save As.
  3. Browse to your scenario folder (for example, C:\Users\<username>\Documents\STK_ODTK 13\External_Data_Test) when the Save As dialog box opens.
  4. Enter My External Data in the File name field.
  5. Ensure Save as type is set to Text documents (*.txt).
  6. Click Save to create your External Data file and to close the Save As dialog box.
  7. Keep your text editor open.

Importing the External Data file using Connect

After the External Data file is created, you can use the ExternalData Connect command to associate the file with the Satellite object. The command allows for the association and management of time-ordered data computed outside of the STK application with STK objects. Data associated with STK objects via the ExternalData command can be accessed through the User Supplied Data data provider, and therefore become available for use in reporting, graphing, dynamic displays, strip charts, and data displays. This command is also useful for the real-time display of telemetry information on the 3D graphics window. The code syntax is:

ExternalData <ObjectPath> {DataOption} [<Parameters>]

Opening the Send a Connect Command Utility

Connect commands are normally passed from outside the STK application over a TCP/IP connection or through a COM interface. In this scenario, since you are executing a single Connect command, you'll use the Send a Connect Command Utility through an integrated Web Browser window in the STK Workspace. The Send a Connect Command Utility functions inside of the STK application; therefore, no outside connections are required.

  1. Return to the STK application.
  2. Click New Web Browser Window () on the Default toolbar.
  3. Click Browse () on the Web Browser Controls toolbar when the Web Browser window opens.
  4. Select the Example HTML Utilities folder in the left navigation pane when the Open dialog box opens.
  5. Select the STK Automation folder.
  6. Click Open.
  7. Select the Send a Connect Command folder.
  8. Click Open.
  9. Select Send_A_Connect_Command.htm.
  10. Click Open to confirm your selection and to close the Open dialog box.

You can also use the API Demo Utility to execute the Connect command.

Entering the Connect command in the Send a Connect Command Utility

The Send a Connect Command Utility allows you to execute a Connect command in the STK application by entering it into a text field and submitting it. Use the Send a Connect Command Utility to run your ExternalData Connect command.

  1. Copy and paste or enter the following Connect command in the Type (or paste) an STK/Command to execute field when the Send a Connect Command Utility opens.
  2. ExternalData */Satellite/TestSat ReadFile "" Save

    Send a Connect Command Utility

  3. Copy and paste or enter the file path to your External Data.txt file inside the command's quotation marks ("").
  4. You can easily copy this path, including the surrounding quotation marks, by navigating to your scenario folder, right-clicking on your My External Data.txt file, and selecting Copy as path in the shortcut menu.

    Your completed Connect command should look like this:

    ExternalData */Satellite/TestSat ReadFile "C:\Users\<username>\Documents\STK_ODTK 13\External_Data_Test\My External Data.txt" Save

  5. Click Execute.
  6. Close the Web Browser window with the Send a Connect Command Utility when you are finished.
  7. Save () your scenario.

Creating a dynamic data display

Now that the data are read into the STK application and are associated with the Satellite object, you can create a custom report of the data and display it dynamically in the 3D Graphics window.

Creating a custom report style

Before you can display your external data in a dynamic data display, you must first create a custom report style using the Report & Graph Manager.

  1. Right-click on TestSat () in the Object Browser.
  2. Select Report & Graph Manager... () in the shortcut menu.
  3. Select the External_Data_Test Styles () folder in the Styles panel list when the Report & Graph Manager opens.
  4. Click Create new report style () on the Styles toolbar.
  5. Name the new report style () External Data Text File.
  6. Select the Enter key.

Updating the report contents

You can customize the properties of a static or dynamic report. The properties available for defining the content and format of data will depend on the data providers in the style you selected. You can define the contents and format of a new report style by updating the Report Content Properties. In this case, you will use the User Supplied Data data provider, which returns the values of custom data associated with the object.

  1. Select the Content page when the Properties Browser opens.
  2. Expand () the User Supplied Data () data provider.
  3. Expand () the My Data () data provider group.
  4. Move () the following data provider elements to the Report Contents list:
    • Time ()
    • Distance ()
    • Rate ()
  5. Click OK to confirm your selections and to close the Properties Browser.

Generating the External Data Text File report

With your report configured to use your user-supplied data, generate your custom External Data Text File report to view its contents.

  1. Click Generate... in the Styles panel.
  2. Review the report.
  3. External Data Text File Report

    Your report will look different than the one above. Note the data have been automatically converted to the scenario's default units of measure. The STK application automatically handled the conversion based on the specified dimensions and units.

  4. When finished, close the External Data Text File report.
  5. Click Close to close the Report & Graph Manager.

Adding a dynamic data display to the 3D Graphics window

An object's 3D Graphics - Data Display properties are used to display dynamic data for the specified object in the 3D Graphics window. This feature is useful when presenting information that requires both visual and textual data.

  1. Open TestSat's () Properties ().
  2. Select the 3D Graphics - Data Display page when the Properties Browser opens.
  3. Click Add....
  4. Select External Data Text File in the Styles list when the Add a Data Display dialog box opens.
  5. Click OK to confirm your selection and to close the Add a Data Display dialog box.
  6. Click OK to confirm your changes and to close the Properties Browser.

Viewing the data display in the 3D Graphics window

With your dynamic data display configured, view it in the 3D Graphics window.

  1. Bring the 3D Graphics window to the front.
  2. Right-click on TestSat () in the Object Browser.
  3. Select Zoom To in the shortcut menu.
  4. Click X Real-time Animation Mode () on the Animation toolbar.
  5. Click Start () to animate your scenario.
  6. External Data Text File Dynamic Data Display

    As the scenario plays, you can see a dynamic display of the external data in the 3D Graphics window. Data are interpolated as a first-order polynomial between the three available data points from your External Data file.

  7. Click Reset () when finished.

Creating a Calculation Scalar file

Another way to import external data into the STK application is by using a Calculation Scalar file. A Calculation Scalar file (*.csc) is an ASCII text file formatted for compatibility with the STK application that ends in a *.csc extension. The first step is to convert the user supplied data into *.csc format. When completed, you can convert the file into an STK report and dynamically display the report in the 3D Graphics window.

The following conventions must be observed when specifying data points for a Calculation Scalar file:

  • Each line must contain only one data point.
  • The values on each line must be separated by at least one space.
  • The lines must be listed in ascending order in time but do not have to be evenly spaced in time.
  • You cannot have multiple points at the same time.
  • There must be at least as many points as specified by the NumberOfPoints keyword.

There are two mutually exclusive formats used to specify actual data points in the Calculation Scalar file:

  • TimeValues — Indicates that subsequent time-ordered tabulated data will contain two columns: time and scalar values
  • TimeValueRates — Indicates that subsequent time-ordered tabulated data will contain three columns: time, scalar values, and their rates

For this tutorial, you will create a Calculation Scalar file using the TimeValueRates format.

Copying the contents of a Calculation Scalar file

For this scenario, use the TimeValueRates file format.

  1. Return to your .text editor.
  2. Create a new text file.
  3. Copy the TimeValueRates Calculation Scalar file sample text below:
  4. stk.v.10.0
    BEGIN Data
    	ReferenceEpoch    18 Sep 2013 16:00:00.000
    	TimeFormat        DD/MM/YYYY
    	UnitType          Distance
    	ValueUnit         mi
    	ValueRateUnit     ft/sec
    	NumberOfIntervals 1
    	BEGIN Interval
    		NumberOfPoints 23
    		BEGIN TimeValueRates
    			18/09/2013 12:00:00.000   -0.00039702    -0.001
    			18/09/2013 12:10:00.000   -0.00039605    -0.001
    			18/09/2013 12:20:00.000   -0.00039901    -0.001
    			18/09/2013 12:30:00.000   -0.00040111    -0.001
    			18/09/2013 12:40:00.000   -0.00039512    -0.001
    			18/09/2013 12:50:00.000   -0.00040421    -0.001
    			18/09/2013 13:00:00.000   -0.00040824    -0.001
    			18/09/2013 13:10:00.000   -0.00041515    -0.001
    			18/09/2013 13:20:00.000   -0.00041222    -0.001
    			18/09/2013 13:30:00.000   -0.00042328    -0.001
    			18/09/2013 13:40:00.000   -0.00041925    -0.001
    			18/09/2013 13:50:00.000   -0.00041634    -0.001
    			18/09/2013 14:00:00.000   -0.00041034    -0.001
    			18/09/2013 14:10:00.000   -0.00041133    -0.001
    			18/09/2013 14:20:00.000   -0.00041036    -0.001
    			18/09/2013 14:30:00.000   -0.00040242    -0.001
    			18/09/2013 14:40:00.000   -0.00040734    -0.001
    			18/09/2013 14:50:00.000   -0.00039937    -0.001
    			18/09/2013 15:00:00.000   -0.00040344    -0.001
    			18/09/2013 15:10:00.000   -0.00039938    -0.001
    			18/09/2013 15:20:00.000   -0.00040345    -0.001
    			18/09/2013 15:30:00.000   -0.00041202    -0.001
    			18/09/2013 15:40:00.000   -0.00041202    -0.001
    		END TimeValueRates
    	END Interval
    END Data
    
  5. Paste the text into your text editor.

Reviewing the Calculation Scalar file's contents

Take a look at the contents of the Calculation Scalar file.

  1. Review the version stamp.
  2. As with the External Data file, a Calculation Scalar file must contain the earliest compatible version of the STK software for which the file is formatted to be used.

  3. Review the keyword phrases at the beginning of the file.
    • ReferenceEpoch — the reference epoch time for the time values of the calculation scalar data in the file in the Gregorian UTC time format. There is no relationship between the reference epoch specified in the calculation scalar file and the actual scenario epoch in your scenario.
    • TimeFormat — specifies a keyword defining the date format of time tags. If set, each line of data in the file begins with a time in the specific date format followed by the rest of the data. Spaces are valid whenever the format admits them (for example, 1 Jun 2026 16:00:00.000), but quotation marks around time strings are invalid.
    • UnitType — the type of tabulated scalar data in the file
    • ValueUnit and ValueRateUnit — define the units of the tabulated data in the file. The unit must be valid for the specified UnitType. Requires corresponding units, including compound units, to be specified using abbreviations; in this example, mi and ft/sec. The specified abbreviation strings must be consistent with the UnitType. If ValueUnit or ValueRateUnit are omitted, it is assumed that SI units appropriate for the specified UnitType are used.
    • NumberOfIntervals — the number of intervals containing time-ordered tabulated scalar data. This entry must precede actual intervals.
  4. Review the Interval keyword group and its contents.
    • NumberOfPoints — the number of TimeValueRates entries within an interval. This entry must precede actual paired data.
    • TimeValueRates — time-ordered tabulated data containing three columns: <TimeInSeconds> <ScalarData> <TimeRateOfChange>, where:
      • <TimeInSeconds> is the time value of the point in seconds (in the format xxxx.xxx) relative to the epoch as defined by the ReferenceEpoch keyword
      • <ScalarData> are one ore more scalar data points in units specified by the DimensionName keyword
      • <TimeRateOfChange> is the time rate of change of the corresponding value

Copying the satellite's orbit epoch

As before, update the Calculation Scalar file's reference epoch to match that of your satellite.

  1. Return to the STK application.
  2. Open TestSat's () Properties ().
  3. Select the Basic - Orbit page when the Properties Browser opens.
  4. Locate the Orbit Epoch field.
  5. Copy the Orbit Epoch time (for example, 01 Jun 2026 16:00:00.000 UTCG).
  6. Click Cancel to close the Properties Browser without making any changes.

Updating the Calculation Scalar file's reference epoch

As before, update the file's reference to match that of your satellite. It is important to note that the times in the data file are given as seconds past the reference epoch.

  1. Return to your text editor.
  2. Replace the ReferenceEpoch's associated value with the Orbit Epoch time from TestSat.
  3. Delete the UTCG unit label.

Your file's ReferenceEpoch keyword phrase should look like the example below:

ReferenceEpoch    1 Jun 2026 16:00:00.000

Updating the Calculation Scalar file's Value and ValueRate units

Right now, the units for your tabulated data are specified to be miles and feet per second. Update the ValueUnit and ValueRateUnit keyword phrases with more appropriate unit abbreviations.

  1. Replace ValueUnit's associated value with km.
  2. Replace ValueRateUnit's associated value with km/sec.

Your keyword phrases should appear as below:

ValueUnit         km
ValueRateUnit     km/sec

Changing the TimeInSeconds

The file's TimeFormat specifies that the time data appear in the DD/MM/YYYY. However, the sample file's data are configured for a reference epoch of September 28, 2013, starting at 12:00:00.000 UTCG. Update the file to use an epoch and time steps appropriate for your analysis period.

  1. Open your text editor's find-and-replace dialog box.
  2. Enter 18/09/2013 in the Find field.
  3. Enter the starting date of your scenario's analysis period in the DD/MM/YYYY format.
  4. For example, 01/06/2026.

  5. Click Replace All.
  6. Close the find and replace dialog box.
  7. Manually update the times so they are relative to the starting hour of your scenario's analysis period.
  8. Data are reported every ten minutes over a period of three hours and forty minutes, so if your scenario's Reference Epoch starts at 16:00:00.000, the time of your final data entry point should be 19:40:00.000.

Your finished Calculation Scalar file should appear similar to the one shown below:

Edited CSC File

Saving the Calculation Scalar file

With your file configured, save it in Calculation Scalar file format.

  1. Open the File menu.
  2. Select Save As.
  3. Browse to your scenario folder (for example, C:\Users\<username>\Documents\STK_ODTK 13\External_Data_Test) when the Save As dialog box opens.
  4. Open the Save as type drop-down list.
  5. Select All files: (*.*).
  6. Enter MyTimeValueRate.csc in the File name field.
  7. Click Save to create your External Data file and to close the Save As dialog box.
  8. Close your text editor.

Importing the Calculation Scalar file using the Calculation tool

The Analysis Workbench capability comprises four application-wide tools that you can use to create custom components and insert them into your scenarios. The Calculation tool creates time-varying computational results. You can use the Calculation tool to reference your external Calculation Scalar file's data.

Opening the Calculation tool

Open the Calculation tool with TestSat.

  1. Right-click on TestSat () in the Object Browser.
  2. Select Analysis Workbench... () in the shortcut menu.
  3. Select the Calculation tab when the Analysis Workbench opens.

Creating a new Scalar Calculation component

Scalars are Calculation components that produce scalar time-varying calculations. Create a new Scalar Calculation component to use your Calculation Scalar file.

  1. Ensure TestSat () is selected in the object tree.
  2. Click Create new Scalar Calculation ().

Defining the Scalar calculation

The Add Calculation Component dialog box allows you to specify various properties of a component that you have added. Use the File type of Scalar calculation to produce a scalar calculation by interpolating tabulated data contained in your Calculation Scalar file.

  1. Click Type: Select... when the Add Calculation Component dialog box opens.
  2. Select File () in the Select Component Type list when the Select Component Type dialog box opens.
  3. Click OK to confirm your selection and to close the Select Component Type dialog box.
  4. Enter MyTelemetryData in the Name field.
  5. This will become the name of the data provider group containing your custom data provider elements used for reporting.

  6. Click the Fielname ellipsis ().
  7. Browse to the location of your MyTimeValueRate.csc file when the Select File dialog box opens.
  8. Select MyTimeValueRate.csc.
  9. Click Open to confirm your selection and to close the Select File dialog box.
  10. Click OK to confirm your changes and to close the Add Calculation Component dialog box.
  11. Click Close to Close the Analysis Workbench.

You can also use the Calculation tool to use data from an External Data (*.txt) file that has been read into the STK application. The Data Element type of Scalar Calculation lists every scalar time-varying element from the STK data provider system, which allows you to take advantage of existing STK computational output. This includes the User Supplied Data data provider, which you can use to incorporate data from your External Data file into new frameworks within the Calculation tool. The data must have a time element and must not require additional data. The Data Element Scalar Calculation type is not valid for Central Body objects, Templates, or Comm objects like Antennas, Radars, Receivers, and Transmitters.

Creating another dynamic data display

Now that the data from your Calculation Scalar file are associated with the Scalar Calculation component, create a custom report to use for another dynamic data diplay.

Creating a custom report style

Create another custom report style using the Report & Graph Manager.

  1. Right-click on TestSat () in the Object Browser.
  2. Select Report & Graph Manager... () in the shortcut menu.
  3. Select the External_Data_Test Styles () folder in the Styles panel list when the Report & Graph Manager opens.
  4. Click Create new report style () on the Styles toolbar.
  5. Name the new report style () External CSC Telemetry Data.
  6. Select the Enter key.

Updating the report contents

In this case, you will customize your report using the Scalar Calculations data provider, which reports time-varying data from scalar calculations.

  1. Select the Content page when the Properties Browser opens.
  2. Expand () the Scalar Calculations () data provider.
  3. Expand () the MyTelemetryData () data provider group.
  4. Move () the following data provider elements to the Report Contents list:
    • Time ()
    • Scalar ()
    • Scalar Rate ()

Note that unlike with the User Supplied Data data provider, the names of the Scalar and Scalar Rate data provider elements are already configured by default with the Scalar Calculations data provider. To update your data display labels, you must re-title these elements elsewhere.

Updating data provider options

Set the report's data provider options for the Scalar and Scalar Rate to specify the title to be displayed for each data provider.

  1. Select Scalar Calculations-MyTelemetryData-Scalar in the Report Contents list.
  2. Click Options....
  3. Enter Distance in the Title field when the Options dialog box opens.
  4. Click OK to confirm your change and to close the Options dialog box.
  5. Select Scalar Calculations-MyTelemetryData-Scalar Rate in the Report Contents list.
  6. Click Options....
  7. Enter Rate in the Title field when the Options dialog box opens.
  8. Click OK to confirm your change and to close the Options dialog box.
  9. Click OK to confirm your changes and to close the Properties Browser.

Generating the External CSC Telemetry Data

With your report configured to use your user-supplied data, generate your custom External CSC Telemetry Data report to view its contents.

  1. Click Generate... in the Styles panel.
  2. Review the report.
  3. External CSC Telemetry Data Report

    Your report will look different than the example above. The report should look similar to the data in your file, albeit with some of the TimeValueRates values rounded.

  4. When finished, close the External CSC Telemetry Data report.
  5. Click Close to close the Report & Graph Manager.

Updating the dynamic data display to the 3D Graphics window

Update TestSat's properties to use the External CSC Telemetry Data report for the dynamic data display.

  1. Open TestSat's () Properties ().
  2. Select the 3D Graphics - Data Display page when the Properties Browser opens.
  3. Clear the Show check box for External Data Text File in the table.
  4. Click Add....
  5. Select External CSC Telemetry Data in the Styles list when the Add a Data Display dialog box opens.
  6. Click OK to confirm your selection and to close the Add a Data Display dialog box.
  7. Click OK to confirm your changes and to close the Properties Browser.

Viewing the data display in the 3D Graphics window

View your updated dynamic data display in the 3D Graphics window.

  1. Bring the 3D Graphics window to the front.
  2. Zoom To TestSat ().
  3. Click Normal Animation Mode (). on the Animation toolbar.
  4. Click Start () to animate your scenario.
  5. 3D Graphics External CSC Telemetry Data Display

  6. Click Reset () when you are finished.

Saving your work

Clean up your workspace and save your scenario.

  1. Close any open reports, properties and tools.
  2. Save () your work.

Summary

You began by creating an External Data file and examining its contents. After reading the file into the STK application using a Connect command, you used the User Supplied Data data provider to create a custom report for a dynamic data display in the 3D Graphics window. You then created and formatted a Calculation Scalar file and referenced it using a File-type Scalar Calculation in the Analysis Workbench's Calculation tool. After creating another custom report using the Scalar Calculations data provider, you updated the dynamic data display to show data from your Calculation Scalar file. By configuring external files to be readable by the STK application, you can use the data they contain in new frameworks available through the STK application's data providers and tools for a variety of applications, from the display of the data, to scalar calculations, and beyond.