I need to creates some Data Point Types on a local system that match the DPTypes on a DIST system. I can see the types on the remote system by using dpTypes and passing the ID of the DIST system.
I tried using the remote system name of the DIST system like this:
ret = dpTypeGet(remoteSys+DPT, elements, types, TRUE);
It always fails.
I tried to use
dpTypeGet("ExampleDP_Float", elements, types, TRUE);
and this works fine... but when I put the local system name:
dpTypeGet("System1:ExampleDP_Float", elements, types, TRUE);
this fails!
Is there a way with scripting to duplicate the DIST para structure for selected DPTypes on a local system?
Maybe I am using the wrong scripting functions? Version 3.15.
create DPType on local system from DIST
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: create DPType on local system from DIST
unfortunately distSyncMan.ctl cannot do what you are looking for. But as with this script I would choose a master server and make a dpTypeGet as JSON and send it to the other systems over a data point. The other systems then perform a dpTypeChange. Unfortunately the 3.15 does not have the function sysConnect() with which you can get an event on a dpTypeChanged.
- tmalone
- Posts:192
- Joined: Mon Nov 22, 2010 11:21 pm
Re: create DPType on local system from DIST
After some testing, I found that the Advanced Playback Module needs only the data types (and not all of the data points) on the local machine so that the dpGroups calls will work.
In this case, the project is nearing completion and I am able to export the DPTs on the playback and move them over to the APM system using ASCII manager. It is a manual operation and if they ever create new DPTypes, I will have to do it again
In this case, the project is nearing completion and I am able to export the DPTs on the playback and move them over to the APM system using ASCII manager. It is a manual operation and if they ever create new DPTypes, I will have to do it again