Get the values of many variables dynamically

6 Posts
4 Users
0 Likes
28 Views
fl.chen
(@fl-chenarcinfo-com)
Posts: 170
Reputable Member
Topic starter
 

Hello guys,

One of our customer has a requirement like this:
The third application just gets real-time values of PcVue variables which have some special properties, like domain equals 'Power'. Variables without Power will be discarded by the application.Then when you create variables with sepecial properties in PcVue, the application will extract values of the variables.

Do you know which way is best for this requirement? Thanks in advance.

BR,
Mark

 
Posted : 16/06/2015 2:40 pm
ED
 ED
(@e-duvalarcinfo-com)
Posts: 138
Estimable Member
 

Hi Mark

You mean that you have a third party application that wants to get data from PcVue.
The big question is how to transmit the varialbe and value to the other software.
You need to reply to this question first.
Another question you must ask yurself is:
Is the third party software on the same Pc machine as PcVue or on a separate one?

For instance if the third party software is OPC enable you can use PcVue as a OPC server.
Otherwise you can use the Varialbe access kit to extract the data you want and tranmit them to your third party using a socket or something similar.

Emmanuel

 
Posted : 16/06/2015 7:27 pm
(@admin_doc72)
Posts: 493
Member Admin
 

Emmanuel, please do not forget the web services toolkit which is also a very powerful interface and which allows hassle-free data exchange between stations. It is particularly suitable when communicating across firewalls, or domain and network boundaries.

 
Posted : 17/06/2015 12:30 pm
ED
 ED
(@e-duvalarcinfo-com)
Posts: 138
Estimable Member
 

Hi Armin

This is true this option skipped my mind.
Mark you are spoiled for choice.
But it all comes down to what your third party software can support or has already available.

 
Posted : 17/06/2015 12:41 pm
fl.chen
(@fl-chenarcinfo-com)
Posts: 170
Reputable Member
Topic starter
 

Hello Emmanuel and Armin,

Thanks for your answer.

The customer wants: once the third application is developed, they don't need to make any configuration to this third application.It gets PcVue variables by the properties defined in PcVue. The third application is on same PC as PcVue.

So, actually,my question is that which is the best way to get PcVue variables with a filter,web services or directly read and deal with varexp.dat file. For the moment, I tell the customer to study web services.

BR,
Mark

 
Posted : 17/06/2015 2:27 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hi Mark,

Using Manager Toolkit or WebServices is convenient to browse and get real variables value.

In my point of view Manager Toolkit is a bit more difficult as you must use C++ and also subscribe to variables to be notified on value change. But also is more efficient is you have large amount of variables to manage.
Web Services is more "easy", its in .Net and works on polling.

So, the question to ask your customer is: How many variables does he need to manage (maximum)?

Nico

 
Posted : 17/06/2015 3:03 pm