Hi Mike and everyone,
I am experiencing a strange scaling issue with a C++ DLL block in QSPICE.
I have a specific output variable named PWMBUCK. To test the interface, I simplified my code to force this output to exactly 1.0.
Code Snippet:
C++// Forcing output to 1.0 for testing *PWMBUCK = 1.0f;
The Issue: Even though the code explicitly assigns 1.0f, when I probe the PWMBUCK node in the simulation waveform, it settles at approximately 0.90909… (which corresponds exactly to 1/1.1). It never reaches 1.0.
- I have checked that the variable is defined correctly in the port list.
- Is there an implicit output impedance or a default scaling factor of 1.1 applied to DLL analog outputs?
- Could this be related to how the DLL drives the node (Voltage Source vs Current Source behavior)?
Any advice on why this specific attenuation occurs would be helpful.
Thanks,
Yaşar
