Can it be, that I need the sevStopEngine function. I think I can put this function in the programming to stop the simulation when the sim reachs a certain value.
Please help me.
You can use an "assert" to give an error, use Verilog-A $finish, or try Spectre-MDL where you can end the sim after you've collected all your values.
Thank you for this answere! I hope it works.