Thresholds and Web Services

4 Posts
2 Users
0 Likes
23 Views
ACHT
 ACHT
(@a-chaverotarcinfo-com)
Posts: 161
Reputable Member
Topic starter
 

Hello everybody

I have two questions :

Is it possible to catch the threshold value via Web Services ?

Have you a sample code for browse variables via Web Services with a filter about VariableType ?

1299=186 2014 01 14 102736

Thanks

 
Posted : 14/01/2014 3:28 pm
(@admin_doc72)
Posts: 493
Member Admin
 

Hi Anthony!

First question:
Yes, it is possible to read and write threshold values. Please refer to the updated WST-documentation as delivered on the installation media of PcVue 11.0 (v1.8, pages #50/#51 and #53/#54).

Second question:
Yes, I do have an example. Consider an imaginary C# client:

var sessionId = "XYZ";

var realTimeData = new RealTimeData();
var vcrVariables = new VariableCollectionRecord();
var vciIterator = new VariableCollectionIterator();
var varTypes = new List();

varTypes.Add(RealTimeData.VariableType.Alarm);
varTypes.Add(RealTimeData.VariableType.Bit);
varTypes.Add(RealTimeData.VariableType.Register);
varTypes.Add(RealTimeData.VariableType.Text);

vciIterator.variableType = varTypes.ToArray();

vcrVariables.variableCollectionIterator = vciIterator;

realTimeData.Browse(sessionId, vciIterator, out vcrVariables);

 
Posted : 15/01/2014 5:19 am
ACHT
 ACHT
(@a-chaverotarcinfo-com)
Posts: 161
Reputable Member
Topic starter
 

Thank you Armin

I red the V10 documentation and I have no information about Thresholds. This note is true for PcVue 10 ?

1304=187 2014 01 15 091806
 
Posted : 15/01/2014 2:18 pm
(@admin_doc72)
Posts: 493
Member Admin
 

Yes, if I remember well this feature has been available since 9.0sp2.
It is only that the documentation has not been updated. For v11.0 it has been the first time in five years that we updated the documentation.

 
Posted : 15/01/2014 4:15 pm