dpGetRefsToDpType()
The function returns all DPTs and DPs that contain the specified DPT as a reference.
Synopsis
dyn_dyn_string dpGetRefsToDpType (string reference);
Parameters
Parameter | Meaning |
---|---|
reference | Name of the DPT reference to check data point types and data points for (for example, "_MyReference" or "_ValueArchive"). |
Return Value
Data points and data point types if everything is OK, otherwise an empty dyn_dyn_string.
Errors
Errors (missing arguments) can be queried with getLastError() .
Description
The function returns all DPTs and DPE that contain the specified data point type as a DP type reference.
Example
The function checks in which data points _ValueArchive is used as a type reference and as which element.
main()
{
string dpt;
dyn_dyn_string dds;
dpt="WH_SC_SERVICE";
dds=dpGetRefsToDpType(dpt);
DebugN("The following elements contain dpt WH_SC_SERCICE as a
reference:");
DebugN(dds);
//returns , for example,"Motor1" for DPT and "Default.Test1" for
the
//element
//further information provide the internal typnumber and the
//number
//of dyn_dyn_strings and dyn_strings founded.
}
Assignment
Data point functions
Availability
CTRL