Converting an Existing VMC Project

Use this procedure to convert an existing (already harnessed) VMC project so it can use Guided Harnessing.

1.Browse to the directory containing the AppIF.c file.

2.Create a backup of the existing AppIF.c to a new file. In the procedure below, this file is called the original AppIF.c

3.Browse to the MxSuite Installation folder and this subfolder: \Templates\NewMxVProject\SUT\MxVHarness

4.Copy the files from MxVHarness into the folder containing the original AppIF.c file. (The folder from step 1.)

CAUTION: This will overwrite the current AppIF.c.

5.Open appif_incs.h in Notepad.

6.Cut and paste the #include lines from original AppiIF.c to the end of this file.

7.Edit the file appif_register.h

8.From the original AppIF.c file, copy and paste the body of the function MxVRegisterPortDefinitions to the body of MxAutoRegisterPortDefinitions in the appif_register.h file. Overwrite the code in the template (MxVRegisterPortDefinitions).

9.Edit the file: appif_sutfuncs.h

10.From the original AppIF.c, copy and paste all function and variable definitions to the file appif_sutfuncs.h, with the exception of:

MxVOpen

MxVClose

MxVRegisterPortDefinitions

Overwrite the code in the template (appif_sutfuncs.h).

11.Open the new AppIF.c

12.From the original AppIF.c, copy and paste the function bodies of MxVOpen and MxVClose to the corresponding function bodies in the new AppIF.c file. Overwrite the code in the template (AppIF.c).

13.Save all files.

14.Open the SUT solution in Visual Studio.

15.In the Solution Explorer, right-click on the MxVHarness folder, and select Add->Existing Item to add all the appif files to the Solution.

AddExistingItem

16.Build the Solution to ensure that the SUT builds properly.

17.Open the MxV Project in MxVDev, and start MxTransit.

18.Select the VMC Transform and click the Connect/ReConnect verb.

19.This will update the transform to include the current information about all the harness properties.

20.Save the Harness

The VMC Transform is now ready to be used with Guided Harnessing.

 

Related Topics:

Guided Harnessing

Using VMCs