Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-05-17 05:27 PM
Hello,
Looking for some resources on how to use the IDataSource interface, eg WriteTagVqtElement etc. via the Geo SCADA API.
There seems to be nothing in the way of examples on how to use any of the methods 😕
Thanks
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-07-08 03:53 AM
Writing to the CurrentValue field of a point using the WriteTagVqt method (or other data access interfaces) will either issue a control (for output and internal points) or apply a master-station override (for input points), both of which discard the time and quality in the VQT.
This method is not appropriate for backfilling historic data.
The WriteTagVqt method can, for example, be used set a variable database object which stores a value, quality and time.
An alternative would be to use SetProperties(). This allows you to set multiple properties on a object in one call which is more efficient and also very similar to the original code.
Something like:
ClearScada.Client.Simple.Connection SimpleConnection; ClearScada.Client.Advanced.IServer AdvConnection; // Connect to database ClearScada.Client.ServerNode node = new ClearScada.Client.ServerNode("127.0.0.1", 5481); SimpleConnection = new ClearScada.Client.Simple.Connection("Utility"); SimpleConnection.Connect(node); AdvConnection = SimpleConnection.Server; // Logon and get object ID for point etc. string[] PropertyNames = { "PresetQuality", "PresetTimestamp", "CurrentValue" }; object[] PropertyValues = { 80, 45458.370277778, 55.5 }; AdvConnection.SetProperties( 2, PropertyNames, PropertyValues);
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-07-08 03:53 AM
Writing to the CurrentValue field of a point using the WriteTagVqt method (or other data access interfaces) will either issue a control (for output and internal points) or apply a master-station override (for input points), both of which discard the time and quality in the VQT.
This method is not appropriate for backfilling historic data.
The WriteTagVqt method can, for example, be used set a variable database object which stores a value, quality and time.
An alternative would be to use SetProperties(). This allows you to set multiple properties on a object in one call which is more efficient and also very similar to the original code.
Something like:
ClearScada.Client.Simple.Connection SimpleConnection; ClearScada.Client.Advanced.IServer AdvConnection; // Connect to database ClearScada.Client.ServerNode node = new ClearScada.Client.ServerNode("127.0.0.1", 5481); SimpleConnection = new ClearScada.Client.Simple.Connection("Utility"); SimpleConnection.Connect(node); AdvConnection = SimpleConnection.Server; // Logon and get object ID for point etc. string[] PropertyNames = { "PresetQuality", "PresetTimestamp", "CurrentValue" }; object[] PropertyValues = { 80, 45458.370277778, 55.5 }; AdvConnection.SetProperties( 2, PropertyNames, PropertyValues);
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.