Page 1 of 1

Controller warning

Posted: Tue Aug 07, 2012 10:55 am
by jmsmoreira
Hi
I'm getting the following error when compiling, I already checked all the tags and they look ok.

Any idea?

Re: Controller warning

Posted: Tue Aug 07, 2012 3:11 pm
by mark.monroe
There is a bug in iX that causes this to happen sometimes. To fix it you need to:

1) Close iX
2) Backup the project directory
3) Open up the xml file associated with the error. In your case you would open up the "Controller1.neo" file located in your project folder.
4) Delete the xml that is associated with those tags.
5) Save file
6) Open you project up in iX and Rebuild it.

If I was having an issue with the DataItem1 tag, I would delete the below section from the "Contoller1.neo" file.

Code: Select all

      <Object d1p1:type="Neo.ApplicationFramework.Tools.OpcClient.DataItem, ToolsCF, Version=2.0.356.0, Culture=neutral, PublicKeyToken=null" d1p1:Site.Name="DataItem1">
        <InstanceDescriptor DeclaringType="Neo.ApplicationFramework.Tools.OpcClient.DataItem, ToolsCF, Version=2.0.356.0, Culture=neutral, PublicKeyToken=null" Name=".ctor" MemberType="Constructor">
          <Parameter Name="Name">
            <Object d1p1:type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="DataItem1" />
          </Parameter>
          <Parameter Name="ItemID">
            <Object d1p1:type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="Basin1_Blower_No2_Status" />
          </Parameter>
          <Parameter Name="DataType">
            <Object d1p1:type="Neo.ApplicationFramework.Interop.DataSource.BEDATATYPE, DataSourceInterop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" primitive.value="INT16" />
          </Parameter>
          <Parameter Name="Size">
            <Object d1p1:type="System.Int16, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="1" />
          </Parameter>
          <Parameter Name="Offset">
            <Object d1p1:type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="0" />
          </Parameter>
          <Parameter Name="Gain">
            <Object d1p1:type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="1" />
          </Parameter>
          <Parameter Name="IndexRegisterNumber">
            <Object d1p1:type="System.Int16, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="0" />
          </Parameter>
          <Parameter Name="LogToAuditTrail">
            <Object d1p1:type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" primitive.value="False" />
          </Parameter>
        </InstanceDescriptor>
      </Object>

Re: Controller warning

Posted: Wed Aug 08, 2012 6:49 am
by jmsmoreira
If this the file, I don't have one with a xml extension...

Re: Controller warning

Posted: Wed Aug 08, 2012 8:28 am
by mark.monroe
Yes, the ".neo" file is an xml file. The extension of the file has nothing to do with what is in the file. Extensions are just a way for you to tell Microsoft Windows what kind of file it is. In Linux extensions are not used at all.

You need to open the file in a text editor like Notepad. You will not be able to double click the file because Windows does not know that it is an xml file. You will need to open Notepad, and then open the file from within Notepad.

Re: Controller warning

Posted: Wed Aug 08, 2012 9:35 am
by jmsmoreira
Done!

Thank you