I am making a general dll block that need to get parameters of PID blocks in the project. But following code returns 0.0 and the status is -5.
tmp = GetPsimValue(nThreadIndex, AppPtr, "S2", "Proportional gain", status);
I also tried C Block, click the Insert GetPsimValue button pops up a Insert GetPsimValue dialog box but the name of the PID blocks doesn't list in the Available element name.