Many Transforms are provided when you purchase components of the MxSuite. In addition, you can write your own Transforms to perform custom signal manipulations, or connect to external devices or equipment that is not currently supported.
This section guides you through building your first Custom Transform. An MxTransIt Transform is a .NET (C#) class that implements the ITransform interface by inheriting BaseTransform and overriding various methods. Within the class are several methods to implement the Transform's behavior. The methods are described below. The Template Visual Studio project can be used to create a new Transform from scratch, or you can take the code of an existing Transform and modify it to fit your purpose. Use this procedure to create a Transform from scratch: 1.Select File->New->Custom Transform from the MxTransIt main menu: 2.Create a new transform in this Location - Click 3.Transform or Assembly Name - Enter a name for the Transform. The name must be a valid C# identifier. Spaces and most special characters are not allowed. You can use the underline character. 4.Select Connector Transform or Signal Processing Transform. 5.Build/Output Location - Enter a location for the Visual Studio project output (the DLL). If you are using Windows 7, you cannot use Program Files or any of its subfolders. 6.Check Add the output location to the global transforms folders to add the Output Location to the Additional File Locations list. See Transform File Locations. 7.Click OK. To rebuild the solution, first close MxTransIt.
|
It is recommended that you use the current or a recent release of Visual Studio to develop Custom Transforms. You can use the Visual C# Express edition (downloadable free from the Microsoft web site). See Compatibility. Be sure the Desktop Development with C++ tools are installed. See Visual Studio and MxSuite.
|
|
In this section we will add to basic functionality to the transform. If this is your first transform, it would be worth following through these steps, to see if you can reproduce the behavior of the ABS Transform described below.
|
Error: 1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3390,5): error MSB3021: Unable to copy file "obj\Debug\Transforms.NCT2.dll" to "C:\Users\paulm\Documents\+MxV Projects\NCT2\Transforms\NCT2\Debug\Transforms.NCT2.dll". The process cannot access the file 'C:\Users\paulm\Documents\+MxV Projects\NCT2\Transforms\NCT2\Debug\Transforms.NCT2.dll' because it is being used by another process. Solution: Close MxTransIt before building the Visual Studio solution. Error: Custom Transform project does not build after updating to a new version of the MxSuite. Solution: Update the references in the Visual Studio project. See Updating Custom Transforms for a New Version of MxSuite. |
Best Practices for Custom Transforms
.NET Prerequisites for Custom Transform development
Updating Custom Transforms for a New Version of MxSuite