Creating Data Type Instances from Context Menus
- Updated2024-10-09
- 2 minute(s) read
Creating Data Type Instances from Context Menus
With the exception of the Insert User and Insert Group items, all the context menu items in the following table provide a submenu from which you can select the following categories of data types:
- Simple data types TestStand defines, including the number, string, Boolean, and object reference data types.
- Container data types you use for a parameter when you want to pass an object of any type to the sequence, in which case you also must turn off type checking for the parameter.
- Named data types, including all the custom named data types in type palette files or in the files you are currently editing. The submenu also includes standard TestStand named data types , such as Error, Path, Expression, and CommonResults.
Context Menu Item | Location of Context Menu | Item Inserted |
---|---|---|
Insert File Global | File Globals section of the Variables pane in the Sequence File window | Sequence file global variable |
Insert Parameter | Parameters section of the Variables pane in the Sequence File window | Sequence parameter |
Insert Local | Locals section of the Variables pane in the Sequence File window | Sequence local variable |
Insert Station Global | Station Globals window | Station global variable |
Insert User Insert Group | User Manager window | New object with the User data type |
Insert Field | Variables pane in the Sequence File window, Station Globals window, and Types window | New element in an existing data type |
If the submenu does not contain the data type you require, create the data type in the Types window and then select the new data type from the Type submenu of the Insert context menu. When the data type already exists in another window or pane, copy or drag the data type to a type palette file or to the file you are editing.
To create a parameter with a complex data type, first create the data type in the Types window and then select the complex data type from the Insert Parameter»Type submenu.