What is an alternative to use dpGet inside a callback function?
dpGet(…) is a blocking function, which should not be used inside callback functions (because it could lead to too much pending runs, which would be thrown away).
Option 1, connect to all required values:
On using dpConnect it is easy to add all required DPEs to the connection list.
Option 2, keep slow changing values on global variables:
Create a global variable, and do a dpConnect on the additional DPE, the callback should fill the current state to that global variable. Every time that additional state is required, it is just needed to read it from the global variable (instead of doing the dpGet).