10:47, EET
January 16, 2020
I have created a node on server as newNode2
After selecting node I am getting following error if i try to write node attribute-
Select the node attribute.
1 – NodeId
2 – NodeClass
3 – BrowseName
4 – DisplayName
5 – Description
6 – WriteMask
7 – UserWriteMask
8 – IsAbstract
9 – Symmetric
10 – InverseName
11 – ContainsNoLoops
12 – EventNotifier
13 – Value
14 – DataType
15 – ValueRank
16 – ArrayDimensions
17 – AccessLevel
18 – UserAccessLevel
19 – MinimumSamplingInterval
20 – Historizing
21 – Executable
5
attribute: Description
Writing to node ns=2;g=7d686d9a-4fa6-44a3-90f2-2a4eaadb7729 – newNode2
Enter the value to write: desc for newNode2
com.prosysopc.ua.StatusException: Bad_NotWritable (0x803B0000) “The access level does not allow writing to the Node.” StatusCode=Bad_NotWritable (0x803B0000) “The access level does not allow writing to the Node.”
Again if I select option 13
attribute: Value
Writing to node ns=2;g=7d686d9a-4fa6-44a3-90f2-2a4eaadb7729 – newNode2
DataType: BaseDataType
Enter the value to write: 1234
java.lang.IllegalArgumentException: No Javaclass corresponding to dataType BaseDataType
13:04, EET
April 3, 2012
You have not set a DataType(Id) for your node so it is the abstract BaseDataType. The sample would try to convert your input based on the DataType, but given it is the base, we do not have any java Class mapping for that, thus the conversion cannot be done.
Also for any other attribute than value the WriteMask/UserWriteMask should have the equivalent bit set in order to allow writing. However typically no server will allow writing to them. And for value the AccessLevel/UserAccessLevel must have CurrentWrite bit set in order to allow writing values).
14:07, EET
January 16, 2020
But if i try to set the datatype as follows then it will also giving me error as follows..
14
attribute: DataType
Writing to node ns=2;g=ec780880-333c-4d9b-b204-588c7f971619 – newNode1
Enter the value to write: Double
com.prosysopc.ua.DataTypeConversionException: Cannot convert Double to class com.prosysopc.ua.stack.builtintypes.NodeId: For input string: “Double”
15:44, EET
April 3, 2012
8:35, EET
January 16, 2020
After starting server/ running SampleConsoleServer application I got the following menu and there is no provision for setting the dataTypeId after adding node.
——————————————————-
– Enter D to enable/disable server diagnostics
– Enter a to add a new node
– Enter d to delete a node
– Enter e to send an event
– Enter r to Add a Reverse Connection to a Client
– Enter x to close the server
9:14, EET
April 3, 2012
I guess you are the first person to actually try to write to those nodes. I guess it could be improved at some point.
However note that both applications are samples for how to use the SDK, not full applications (even through they have a lots of basic functionalities), i.e. you will need to do this in the sampleconsoleserver example’s code yourself. Look at e.g. com.prosysopc.ua.samples.server.compliancenodes.ComplianceNodeManager. Or first try to write to e.g. Objects/ComplianceNodes/StaticVariables/Int32 on the sampleconsoleserver, that should work.
Most Users Ever Online: 1919
Currently Online:
18 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, ThomassnismModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1