I try to read a db tag and i have the resul : tag driver not found
what’s wrong ?
see picture attached
I try to read a db tag and i have the resul : tag driver not found
what’s wrong ?
see picture attached
The startup of modules happens in 2 phases: setup(), and startup().
In general, in setup() you can’t depend on other systems being available yet for use. The main systems contained in GatewayContext will be up, so you can do various initialization stuff (add listeners to system events, register extension points, add localization bundles, etc.), but you can’t do things like try to access a running tag provider.
In startup(), the main systems should be up and running, and you should be able to do anything.
So, long story short, try moving your code from setup() to startup().
Regards,
I deplace the code in the startup section, but I have the same error : Tag driver not found ???
Oh, right, I missed another key thing in your code: your call to TagPathParser.parse is wrong. The signature of the overload you’re using is parse(defaultSource, path).
Actually, the 3rd version you had, that’s commented out, should work (parse("[default]test2")). But try this:
TagPathParser.parse("default","test2");
Regards,
I have an exception or a null value, but i can’t achive a good read.
I try with the 7.2.9-beta5 (b197).
I have to change my version : 7.2.8 ? or 7.3beta.
I read they was problem with acces right in 7.2.8 (read(Arrays.asList(path),null,true); for examp
I use :
Sql Tag real time
default Internal Provider Built-in SQLTags provider
I create a string tag test2 under the default Provider?
Do I check other point ? could you send me a java code to test ?
I really need to quickly valide read/write/subscription of a standart DB Tag from a java module in order to validate the use of Ignition for my project.
I need a proof of concept on this point.
Except this sdk difficulty, all other features seems to me very powerfull and flexible compared to other legacy scada solutions.
Best regards.
my read tag issue is solved.
I this i had sdk and igniton different version.
I install then the 7.2.9 released of ignition and sdk.
simple write tag example and subscription ?
Here’s some examples:
[code]// Writing
TagPath path = TagPathParser.parse(“SomeFolder/MyTag”);
context.getTagManager().write(path, 5.0);
// Subscribing
context.getTagManager().subscribe(path, new TagChangeListener() {
public void tagChanged(TagChangeEvent e) {
TagValue value = e.getTag().getValue();
System.out.println("New value is: "+value.getValue());
}
public TagProp getTagProperty() {
return TagProp.Value;
}
});[/code]
Thank a lot for this example, it works fine.
Just another question: how to do synchronous write ?
I means :
write value 1
write value 2
write value 3
in order than the listener “receive” the value in the same order
regards
well, you don’t really. Write behavior differs depending on the tag type.
The only way to truly do this would be to write 1, and then only write 2 after the listener receives the 1st change.
Are the write function thread safe for an internal db tag ?
My target is to write a mutithread module with writing operation of different internal db tag in different concurrent thread.
yes, tag writing is thread-safe.