There are several ways to modify port/signal properties in MxTransIt:
•The Edit Multiple Ports command enables you to modify all ports on a Transform.
•The Edit Port command enables you to modify additional properties for a specific port.
•You can use the Port Properties box to modify properties for most ports. Be sure to select the port, not the Transform.
If a port is exported, its port properties (defined in MxTransIt) are also exported to the MxVDev Signal Dictionary, but properties already in the Signal Dictionary take precedence over properties exported from MxTransIt. Properties in the MxVDev Signal Dictionary do not propagate to the Harness.
You can use the Edit Multiple Ports dialog for the following: •To change port names (See Renaming Ports.) •To add descriptions •To set the initial value of ports (For outports, the initial value is the default expected value.) •To view the Enum labels of the ports To open the dialog, select (click on) a Transform, then select Transform‑>Edit Multiple Ports from the MxTransIt main menu. To change additional properties, use the Edit Port dialog. |
You can use the Edit Port dialog for the following: •To change the port name (See Renaming Ports.) •To define an alias for the port •To add a description •To set the initial, minimum, and maximum values of the port •To change the Numeric Signal Properties •To change the Display Format for a message or fixed-point continuous port •To associate an Enum set with a port •To set the length for message Signals •To set the default Pass/Fail mask for message Signals Auto-generated ports (on the MxVMC and SIL Easy Transforms) cannot be edited with this dialog. To change these ports, edit the C++ code in Visual Studio. Use this procedure to edit port properties: 1.Move the mouse over the port. It is important that the mouse be over the port, not just the Transform. When the mouse is positioned properly, the port name is displayed in a bubble as shown here: 2.Right-click to display the context menu and select Edit Port: The Edit Signal Info dialog is displayed. It varies depending on the Signal properties selected. 3.Enter the appropriate properties for the port. 4.Click OK. A warning is generated in MxVDev the first time a transition on a port is outside the min/max range. EnumsTo associate an Enum Set with the Signal: 1.Select the Enumeration Set from the Enumeration List drop-down list in the Edit Signal Info box. 2.Click OK. To add, change, or delete Enum Sets, click Notes: •Only one Enum Set can be associated with a Signal. •Enum values must be an integer and can be negative. |
Port properties are displayed in the Properties tab of the Properties box at the right of the MxTransIt window. If the Properties box is not visible, press F4 or select View->Properties. Normally, the Properties tab displays Transform properties. To view port properties, click on the port to select it. It is important that the mouse be over the port, not just the Transform. When the mouse is positioned properly, the port name is displayed in a bubble as shown here: Click Alias: The Alias field replaces the name of the Signal when it is displayed in a TestCase. It may be used, for example, when the name is too long or obscure. This field is optional. Initial Value: See Signal Dictionary—Initial Value. Minimum and Maximum: See below and Min/Max Ranges. Note: Properties of an array Signal, such as Minimum and Maximum, apply to all elements of the array. |
During run time, if a transition on a port is outside the min/max range, a warning is generated in MxVDev. Only one warning is generated for each port unless the system is reset. |
You can rename ports on a Transform using Edit Port, Edit Multiple Ports, or the Properties box. If the port is exported and connected to MxVDev, the connection is not broken, however the name is not changed in MxVDev or its TestCases. To propagate the changed name to MxVDev, use this procedure: 1.Rename the port on the Transform. 2.Unexport the port by deselecting it in the Export Ports dialog. 3.Click the OK button in the Export Ports dialog box. 4.Reopen the Export Ports dialog and select the port. 5.Click OK. 8.Rename the Signal in the TestCases. Select the "Update all TestCases containing this Signal" box. 9.Delete the old Signal (old port name) from the MxVDev Signal Dictionary. Note: The virgule (/) or slash character is not allowed in port names. |
Working with Enums (in MxVDev)