hi! Is possible create a Data Type from one system in a distributed project to another system o copy a Data type from one system to other system in a distributed projects?
i'm trying for a time but i seems is not possible.
Thanks!
create remote data types
Search
Re: create remote data types
Hello,
I think you are talking about datapoint-types.
The creation/modification of datapoint-types is only possible for the own system.
If you want to "copy" the datapoint-type you have to make an ASCII export and import.
Best Regards
Leopold Knipp
Senior Support Specialist
I think you are talking about datapoint-types.
The creation/modification of datapoint-types is only possible for the own system.
If you want to "copy" the datapoint-type you have to make an ASCII export and import.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: create remote data types
Hello,
It could be possible by making a "create type" script on every server with a listener (ex: dpconnect on a dyn_string or something else)
You put all the data of the type in the dyn_string (name, type, node, etc).
When your dyn change, your script is triggered and in your script you use the data to build your datatype.
It needs to have this "create type script" on every server and a "stamp" datapoint to bring the data and a trigger for the script.
It is probably not as efficient as an ascii export/import but it allows you to do this transparently for a final user.
Hope I can help you
Regards
Alexandre DANEAU
It could be possible by making a "create type" script on every server with a listener (ex: dpconnect on a dyn_string or something else)
You put all the data of the type in the dyn_string (name, type, node, etc).
When your dyn change, your script is triggered and in your script you use the data to build your datatype.
It needs to have this "create type script" on every server and a "stamp" datapoint to bring the data and a trigger for the script.
It is probably not as efficient as an ascii export/import but it allows you to do this transparently for a final user.
Hope I can help you
Regards
Alexandre DANEAU
Re: create remote data types
hi! thanks, i had the same idea about that...but i think its not a very 'clean/elegant' solution...
if we have no choice i'll try to implement that...i think it is easy to implement.
Thanks again!
if we have no choice i'll try to implement that...i think it is easy to implement.
Thanks again!
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: create remote data types
I think that the most elegant solution who be to have the standard control function extended by an optional systemnumber/name parameter. You probably will want to have the dpTypeChange function also extended.
But if that is not possible or takes to long, you could implement your own control function for this, because the function in the C++ API does contain an optional systemnumber parameter.
But if that is not possible or takes to long, you could implement your own control function for this, because the function in the C++ API does contain an optional systemnumber parameter.