Create sample Motor object data to populate the data grids.
-
In Project view, right-click Model and select .
-
Hover-over the object, select
, and enter Motor.
-
Add and configure variables:
-
In Properties, at the top, add three variables by selecting
and selecting Variable.
-
Rename the variables by hovering-over each variable, selecting
, and entering:
-
Speed
-
Acceleration
-
ManufactureDate
-
Next to the ManufactureDate, select Int32 and select DateTime.
Tip: If you do not see the required option, select the Show all checkbox.
-
Convert the Model object into an object type:
-
In Type view, double-click Model.
-
From Project view, drag Motor into Type view.
-
Create and organize Motor object instances:
-
In Project view, right-click Model and select .
-
Hover-over the folder, select
, and enter MotorObjects.
-
In Project view, drag Motor into the MotorObjects folder.
-
Hover-over Motor, select
, and enter FaultyMotor.
-
Create nine Motor object instances by dragging MotorType from Type view into the MotorObjects folder in Project view.
-
For each Motor object instance, set the Acceleration, ManufactureDate, and Speed variable values.
Tip: You can enter any data in the correct format. This data will be used to populate the data grids.