Comments (2)
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.
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)
- Unhandled exception raised in the KernelBase.dll when connecting to Citect 2018 R2 + HOT 1
- Alarm ODBC setup - System HOT 1
- Credentials
- Consider extending Open to include nMode arguments HOT 1
- Reading more than one tag (ctListRead support) HOT 1
- Cannot find .DLL files HOT 2
- Unable to load DLL 'CtApi.dll' HOT 1
- Could not load file or assembly 'Citect.Platform.Transport.Interfaces, Version=8.40.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citect.