To add new ports to your VMC or PIL Transform, use Port Registration functions. Add code the to your MSVC project as described here:

Port Registration Functions

Create a user-defined function named MxVRegisterPortDefinitions()in the AppIF.c file. This function is called during SUT loading. Use the functions described below to define ports on the VMC. For more examples, see the VMCPortDefinitions sample project.

hmtoggle_plus1Dataflow Direction Enumeration
hmtoggle_plus1Discrete Ports
hmtoggle_plus1Continuous Ports
hmtoggle_plus1Message Ports
hmtoggle_plus1Task (Event) Ports
hmtoggle_plus1Port Property Functions (Arrays, Enums, and Editor Type)
hmtoggle_plus1Task Parameter Functions

 

Related Topics:

Using VMCs

PIL