Coder Social home page Coder Social logo

Unknown error (0x100001a8) about citect HOT 2 CLOSED

wz2b avatar wz2b commented on August 12, 2024
Unknown error (0x100001a8)

from citect.

Comments (2)

wz2b avatar wz2b commented on August 12, 2024

Just by way of a little more context, I tried something different:

class TestClass
{

    static void Main(string[] args)
    {
        var wrapper = new Citect.CtApi(true);
        wrapper.Open();

        Console.WriteLine("find some tags");
        var tags = wrapper.Find("Tag", "TAG=*SOFC_2*", "", "TAG");

        
        foreach(var onetag in tags)
        {
            foreach (var ot in onetag)
            {
                Console.WriteLine(ot.Key + ": " + ot.Value);
            }
        }

        Console.WriteLine("Get one tag");
        string t = wrapper.TagRead("SOFC_2_TEST_RUNNING");
        Console.WriteLine(t);

        wrapper.Close();
    }
}

The first part dumps all the tags that matched a tag pattern. It works, and gives me a list like this:

TAG: SOFC_2_GAS_5_SV_MON
TAG: SOFC_2_GAS_6_SELECT_FROM_HMI
TAG: SOFC_2_GAS_6_SELECTED
TAG: SOFC_2_GAS_6_SV_MOF
TAG: SOFC_2_GAS_6_SV_MON
TAG: SOFC_2_TEST_RUNNING

so as you can see SOFC_2_TEST_RUNNING is a valid tag. Tracing TagRead further:

var result = CtTagRead(_ctapi, tag, value, value.Capacity);

This returns false.

I also tried naming the tag I'm requesting CLUSTER.TAGNAME and CLUSTER.DEVICE.TAGNAME which also didn't work.

from citect.

estradege avatar estradege commented on August 12, 2024

Hi,
the Unknown error (0x100001a8) refer to 424 error code (Tag Not Found). TagRead also raise Unknown error (0x1000000c) if tag has a bad quality but this behaviour is not describe in the citect help.

from citect.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.