Generates type-safe API
ntswrap.exe [-c namespace.class]
[-i interface_name] [-a assembly_name]
Available as a MATLAB® function or Windows console executable.
ntswrap.exe [-c accepts
command line switches in any order. namespace.class]
[-i interface_name] [-a assembly_name]
Run ntswrap for Generate the Type-Safe API with an Assembly with
a MATLAB
Compiler SDK™ generated assembly.
-a .NET_native_interface.dll Absolute or relative path to assembly containing .NET statically-typed interface, referenced by -i switch.
-b MATLAB_NET_assembly.dll Path to folder containing .NET assembly that defines component
referenced by -c switch
-c component_class_nameNamespace-qualified name of assembly identified by path in -b switch
-dEnables debugging of the type-safe API assembly
Incompatible with -s.
-i interface_nameNamespace-qualified name of user-supplied interface in assembly
identified by path in -a switch
-kKeep generated type safe API source code; do not delete after processing
-n namespace_containing_generated_type-safe_API_classOptional. If specified, places generated type-safe API in specifed namespace
-o output_folderOptional. If specified, all output files will be written to specified, preallocated folder
-sGenerate source code only; do not compile type-safe API source into an assembly
-v vx.xVersion of Microsoft® .NET Framework (csc compiler)
used to generate type-safe API assembly (for example v4.0)
Incompatible with -s.
-w name_of_generated_type-safe_API_wrapper_class_and_assemblyOptional. If specified, overrides default name of generated type-safe API class and assembly
Incompatible with -c.
ComponentInterface.dll.NET binary containing type-safe API class. Requires ComponentNative.dll,Interface.dll and MWArray.dll
ComponentInterface.csOptional output, produced by -s and -k
ntswrap.exe -c AddOneComp.Mechanism
-i IAddOne
-a IAddOne.dll
Issuing this command generates a type-safe API for the MATLAB
Compiler SDK class Mechanism in
the namespace AddOneCompNative. By default, ntswrap compiles
the source code into an assembly MechanismIAddOne.dll.
If ntswrap is called as a MATLAB function,
all the input arguments should be specified as character arrays or
string type. For example,
ntswrap('-c', 'AddOneComp.Mechanism', ...
'-a', 'IAddOne.dll', ...
'-i', 'IAddOne');