Note: This is no replacement for the Official ETM Support!
PosAlertTextDP = "SYS1:DP1:_alert_hdl.._active";
PosAlertTextDP = "SYS1:DP2.Pos:_alert_hdl.._active";
PosAlertTextDP = "SYS1:DP3:_alert_hdl.._active";
// this doesn't work, PosAlertText remains empty
// dpGet for each single dyn array element works fine
As mentioned in the code comments above, dpGet doesn't produce a result when used with the whole PosAlertTextDP dyn_string array, but it works fine when each element is processed on it's own.
Any ideas why the above fails? I've used dpGet to pull values (not config related parameters) from dps and passed the dp names using dyn_string and that works absolutely fine, but for some reason when I add ":_alert_hdl.._active" (or any other config) it returns nothing (dpGet doesn't return an error, so it seems to run fine).
As you have detected on your own you have to use getLastError() to check if the command was successful or not.
Senior Support Specialist