<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									ask for library C# use on class 5 motor - Communications				            </title>
            <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/</link>
            <description>Animatics Distributor Locator Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 09 Mar 2026 15:45:57 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1136</link>
                        <pubDate>Mon, 31 Aug 2015 16:10:39 +0000</pubDate>
                        <description><![CDATA[If the motor is powered and connected to the com port specified you will get the Comms Enabled message.  

The important part is getting the .dll file in the right directory and adding it ...]]></description>
                        <content:encoded><![CDATA[If the motor is powered and connected to the com port specified you will get the Comms Enabled message.  

The important part is getting the .dll file in the right directory and adding it to the directives list in your program.  That way you can access the other methods for moving the motor around and doing stuff.

PS... I'm using Visual Studio 2013.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>AClark</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1136</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1135</link>
                        <pubDate>Mon, 31 Aug 2015 15:57:01 +0000</pubDate>
                        <description><![CDATA[What was the result?  Which MessageBox?]]></description>
                        <content:encoded><![CDATA[What was the result?  Which MessageBox?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1135</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1134</link>
                        <pubDate>Mon, 31 Aug 2015 15:49:09 +0000</pubDate>
                        <description><![CDATA[I have a C# example that I did a few weeks ago.  I&#039;m not much of a coder, so go easy on me. 

Add this to your directives at the top of your .cs file...

using INTEGMOTORINTERFACELib;
...]]></description>
                        <content:encoded><![CDATA[I have a C# example that I did a few weeks ago.  I'm not much of a coder, so go easy on me. 

Add this to your directives at the top of your .cs file...

using INTEGMOTORINTERFACELib;

Declare these class variables...

        Exception COMEx = new System.Runtime.InteropServices.COMException();
        public bool CommsConnected;
        public int NumMotors;
        public int MaxAddress = 3;
        public int Flags = 1;
        public int RS232Address;
        string thePort = "Com4";
        SMIHost host = new SMIHost();

Here is the method I wrote to connect a motor to my program...

private void SetComms()
        {
            try
            { 
                RS232Address = host.DetectRS232(MaxAddress, Flags);
                host.OpenPort(thePort);
                NumMotors = host.AddressMotorChain();
            }
            catch (Exception COMEx)
            {
                string errstring = COMEx.HResult.ToString();
                MessageBox.Show("There is a COM issue with the motor.n" + errstring, "Comms Error Message");
                return;
            }
            int numMotorsDetected = host.NoOfMotors;
            if (NumMotors == numMotorsDetected &amp;&amp; NumMotors&gt;=1)
            {
                MessageBox.Show("Comms Enabled.  There are/is " + Convert.ToString(NumMotors) + " motors on " + thePort + ".","Motor Comm Status");
                CommsConnected = true;
            }   
        }]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>AClark</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1134</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1026</link>
                        <pubDate>Fri, 06 Feb 2015 04:35:28 +0000</pubDate>
                        <description><![CDATA[The .chm file in the SMIEngine folder is the best reference.  I don&#039;t recognize your error.  It may have something to do with what Country Code you have selected in Windows.  You may want to...]]></description>
                        <content:encoded><![CDATA[The .chm file in the SMIEngine folder is the best reference.  I don't recognize your error.  It may have something to do with what Country Code you have selected in Windows.  You may want to try setting it to USA to see if you have the same result.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1026</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1025</link>
                        <pubDate>Fri, 06 Feb 2015 04:30:16 +0000</pubDate>
                        <description><![CDATA[Hi,

From Animatics VBIO.vb example,

&quot;ErrorHandler:
        If Err.Number = &amp;H80004005 Then
            UIStatus.SelectedText = &quot;Error:&quot; &amp; Err.Description &amp; Chr(13) &amp; ...]]></description>
                        <content:encoded><![CDATA[Hi,

From Animatics VBIO.vb example,

"ErrorHandler:
        If Err.Number = &amp;H80004005 Then
            UIStatus.SelectedText = "Error:" &amp; Err.Description &amp; Chr(13) &amp; Chr(10)
        Else
            UIStatus.SelectedText = "Error:" &amp; ErrorToString(Err.Number) &amp; Chr(13) &amp; Chr(10)
        End If
    End Sub"

may i ask that where get the value of "&amp;H80004005"?
Err.number can refer from any user manual?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>zslim</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1025</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1024</link>
                        <pubDate>Fri, 06 Feb 2015 04:28:25 +0000</pubDate>
                        <description><![CDATA[from animatics VBIO.vb example,

&quot;ErrorHandler:
        If Err.Number = &amp;H80004005 Then
            UIStatus.SelectedText = &quot;Error:&quot; &amp; Err.Description &amp; Chr(13) &amp; Chr(10)...]]></description>
                        <content:encoded><![CDATA[from animatics VBIO.vb example,

"ErrorHandler:
        If Err.Number = &amp;H80004005 Then
            UIStatus.SelectedText = "Error:" &amp; Err.Description &amp; Chr(13) &amp; Chr(10)
        Else
            UIStatus.SelectedText = "Error:" &amp; ErrorToString(Err.Number) &amp; Chr(13) &amp; Chr(10)
        End If
    End Sub"

may i ask that where get from the value "&amp;H80004005"?
Err.number can refer from any user manual?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>zslim</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1024</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1010</link>
                        <pubDate>Thu, 15 Jan 2015 04:35:22 +0000</pubDate>
                        <description><![CDATA[I&#039;m sorry... but I do not have a C# example.]]></description>
                        <content:encoded><![CDATA[I'm sorry... but I do not have a C# example.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1010</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1009</link>
                        <pubDate>Thu, 15 Jan 2015 03:23:40 +0000</pubDate>
                        <description><![CDATA[Do you have simple sample of communication C# interface with Animatics motor?]]></description>
                        <content:encoded><![CDATA[Do you have simple sample of communication C# interface with Animatics motor?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>zslim</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1009</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1008</link>
                        <pubDate>Thu, 15 Jan 2015 02:20:55 +0000</pubDate>
                        <description><![CDATA[Do you have simple sample of communication C# interface with Animatics motor?]]></description>
                        <content:encoded><![CDATA[Do you have simple sample of communication C# interface with Animatics motor?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>zslim</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1008</guid>
                    </item>
				                    <item>
                        <title>ask for library C# use on class 5 motor</title>
                        <link>https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1006</link>
                        <pubDate>Wed, 14 Jan 2015 14:52:06 +0000</pubDate>
                        <description><![CDATA[The SMIEngine library gets installed with the SMI2 software.  The DLL file is IntegMotorInterface.dll and will be installed in your C:Windows subdirectories.

There will be a subdirectory ...]]></description>
                        <content:encoded><![CDATA[The SMIEngine library gets installed with the SMI2 software.  The DLL file is IntegMotorInterface.dll and will be installed in your C:Windows subdirectories.

There will be a subdirectory of sample code for some compilers in the C:Program Files (x86)AnimaticsSMIEngine directory.  The SMIEngine.chm file explains the DLL.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/ask-for-library-c-use-on-class-5-motor/#post-1006</guid>
                    </item>
							        </channel>
        </rss>
		