Click here to Skip to main content
15,891,864 members
Articles / Programming Languages / C#

1..2..3 ways of integrating MATLAB with the .NET

Rate me:
Please Sign up or sign in to vote.
4.82/5 (62 votes)
18 Nov 20037 min read 564.4K   26.1K   127  
A library to access MATLAB from .NET and a comparision of three possible methods to implement it.
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>DDELibrary</name>
    </assembly>
    <members>
        <member name="T:DDELibrary.TransactionType">
            <summary>
            The type of transaction
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_REGISTER">
            <summary>
            register
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_UNREGISTER">
            <summary>
            unregister
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_ADVDATA">
            <summary>
            advise data
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_XACT_COMPLETE">
            <summary>
            xact complete
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_DISCONNECT">
            <summary>
            disconnection
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_EXECUTE">
            <summary>
            execute
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_REQUEST">
            <summary>
            request
            </summary>
        </member>
        <member name="F:DDELibrary.TransactionType.XTYP_POKE">
            <summary>
            poke
            </summary>
        </member>
        <member name="T:DDELibrary.DDEReturnStatus">
            <summary>
            Result status from calls
            </summary>
        </member>
        <member name="T:DDELibrary.DDEErrors">
            <summary>
            Errors
            </summary>
        </member>
        <member name="T:DDELibrary.ClipboardFormats">
            <summary>
            Some usefule Clipboard Formats
            </summary>
        </member>
        <member name="T:DDELibrary.DDE">
            <summary>
            A class to wrap DDE services. It uses DDEML (a standard Windows component)
            to implement the DDE services. It's the base class for the DDEClient
            and for a (possible) DDEServer
            </summary>
        </member>
        <member name="M:DDELibrary.DDE.#ctor">
            <summary>
            Constructor of the DDE Instance. Usually only one of this class per application 		
            </summary>
        </member>
        <member name="M:DDELibrary.DDE.Close">
            <summary>
            Closes the Service
            </summary>
        </member>
        <member name="M:DDELibrary.DDE.Dispose">
            <summary>
            IDisposable implementation
            </summary>
        </member>
        <member name="M:DDELibrary.DDE.OpenChannel(System.String,System.String)">
            <summary>
            Opens a Channel of communication with the specified service and the specific topic
            </summary>
            <param name="service">the name of the service</param>
            <param name="topic">the name of topic</param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDE.OpenChannel(DDELibrary.DDEItem,DDELibrary.DDEItem)">
            <summary>
            Opens a Communication Channel with the Service and Topic
            Use DDEItem objects to reduce memory overhead
            </summary>
            <param name="hService"></param>
            <param name="hTopic"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDE.GetLastError">
            <summary>
            Returns the last error
            </summary>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDE.Test">
            <summary>
            A Testing function
            </summary>
        </member>
        <member name="M:DDELibrary.DDE.Dispose(System.Boolean)">
            <summary>
            IDisposable implementation
            </summary>
            <param name="disposing"></param>
        </member>
        <member name="F:DDELibrary.DDE.instanceID">
            <summary>
            The instance variable associated with the DDE session
            </summary>
        </member>
        <member name="P:DDELibrary.DDE.Active">
            <summary>
            Tells if the connection is active
            </summary>
        </member>
        <member name="T:DDELibrary.DDEClient">
            <summary>
            A DDE Client class
            </summary>
        </member>
        <member name="M:DDELibrary.DDEClient.#ctor">
            <summary>
            Initialize the system
            </summary>
        </member>
        <member name="M:DDELibrary.DDEClient.DDECallbackX(DDELibrary.TransactionType,System.Int32,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)">
            <summary>
            DDECallback for a Client ... do Nothing
            </summary>
            <param name="uType"></param>
            <param name="uFmt"></param>
            <param name="hConv"></param>
            <param name="hsz1"></param>
            <param name="hsz2"></param>
            <param name="hdata"></param>
            <param name="data1"></param>
            <param name="data2"></param>
            <returns></returns>
        </member>
        <member name="T:DDELibrary.DDEItem">
            <summary>
            efficient DDE item storage
            BE CAREFULE: it's not Dispose protected!!!
            </summary>
        </member>
        <member name="T:DDELibrary.DDEChannel">
            <summary>
            A DDE Channel handles the connection between a Client and a DDE Server
            </summary>
        </member>
        <member name="M:DDELibrary.DDEChannel.#ctor(DDELibrary.DDE,System.IntPtr)">
            <summary>
            Created by a DDE object
            </summary>
            <param name="d">the parent dde object</param>
            <param name="c">the channel handler</param>
        </member>
        <member name="M:DDELibrary.DDEChannel.Dispose">
            <summary>
            IDisposable requirement
            </summary>
        </member>
        <member name="M:DDELibrary.DDEChannel.Disconnect">
            <summary>
            Disconnect the Channel
            </summary>
        </member>
        <member name="M:DDELibrary.DDEChannel.Execute(System.String,System.String)">
            <summary>
            Executes a DDE Command on the specified item using the
            default timeout
            </summary>
            <param name="command"></param>
            <param name="item"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Execute(System.String,System.Int32)">
            <summary>
            Executes a DDE Command on the specified item using
            a timeout
            </summary>
            <param name="command"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Execute(System.String)">
            <summary>
            Executes a DDE Command without an item and with the default
            timeout
            </summary>
            <param name="command"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Execute(System.String,System.String,System.Int32)">
            <summary>
            Executes a DDE command on item specifying the timeout
            </summary>
            <param name="command"></param>
            <param name="item"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Execute(System.String,DDELibrary.DDEItem,System.Int32)">
            <summary>
            Same as the other overloaded classes but the item is specified
            by a DDEItem to make it faster
            </summary>
            <param name="command"></param>
            <param name="item"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Request(System.String,System.String@)">
            <summary>
            Request a specific item from the DDE Server
            </summary>
            <param name="item"></param>
            <param name="result"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Request(System.String,System.String@,System.Int32)">
            <summary>
            Request from the DDE Server using a timeout
            </summary>
            <param name="item"></param>
            <param name="result"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.RequestXL(DDELibrary.DDEItem,System.Byte[]@,System.Int32)">
            <summary>
            Request of an item from the DDE Server in XLTable format
            </summary>
            <param name="item"></param>
            <param name="result"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Request(DDELibrary.DDEItem,System.String@,System.Int32)">
            <summary>
            Faster request of an item from the server using a DDEItem
            </summary>
            <param name="item"></param>
            <param name="result"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Poke(System.String,System.String)">
            <summary>
            Writes (poke) a value into the specific item
            </summary>
            <param name="item"></param>
            <param name="data"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Poke(System.String,System.String,System.Int32)">
            <summary>
            Writes (poke) a value into the specific item using a timeout
            </summary>
            <param name="item"></param>
            <param name="data"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.PokeXL(DDELibrary.DDEItem,System.Byte[],System.Int32)">
            <summary>
            Writes (poke) a value into an item using XLTable format
            </summary>
            <param name="item"></param>
            <param name="data"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="M:DDELibrary.DDEChannel.Poke(DDELibrary.DDEItem,System.String,System.Int32)">
            <summary>
            Faster Write (poke) using a DDEItem
            </summary>
            <param name="item"></param>
            <param name="data"></param>
            <param name="timeout"></param>
            <returns></returns>
        </member>
        <member name="F:DDELibrary.DDEChannel.parent">
            <summary>
            The parent DDE session
            </summary>
        </member>
        <member name="F:DDELibrary.DDEChannel.channel">
            <summary>
            The channel with the DDE Server
            </summary>
        </member>
        <member name="P:DDELibrary.DDEChannel.Active">
            <summary>
            Tells if Active
            </summary>
        </member>
        <member name="P:DDELibrary.DDEChannel.Timeout">
            <summary>
            The default timeout for Execute, Request and Poke calls
            </summary>
        </member>
        <member name="P:DDELibrary.DDEChannel.LastTimeouted">
            <summary>
            Tells if the last operation timeouted
            </summary>
        </member>
        <member name="T:DDELibrary.XLTable">
            <summary>
            A class for Excel &lt;--&gt; matrix
            </summary>
        </member>
    </members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Scuola Superiore S.Anna
Italy Italy
Assistant Professor in Applied Mechanics working in Virtual Reality, Robotics and having fun with Programming

Comments and Discussions