Hi Andreas,
> [...] using JScript [...]
> int16_t __stdcall TPDI_READ_Powerconsumptionvi(double *Voltage, double *Current);
Considering that Open() and TPDI_POWER() functions are called fine, I think that the problem is with the (out) parameters passed by reference that cannot be processed by JScript.
See
http://support.smartbear.com/viewarticle/31116/ for more details and especially consider the last but one paragraph.
As a possible workaround you may consider either to create a ScriptExtension (
http://support.smartbear.com/viewarticle/28456/) and implement it using VBScript (that do not have problems with the parameters passed by reference) or create additional DLL that will wrap the call to TPDI_READ_Powerconsumptionvi() and return results in a way compatible with JScript.