Post Go back to editing

C++ exception error message "argument not found" during simulation

Thread Summary

The user encountered a 'C++ exception error message "argument not found"' during simulation of a switched circuit using generic components. The solution involved correcting a missing parenthesis in the .meas statement and removing extraneous text from the switches' SPICE lines. The user was advised to update to the current version 26.0.1 for better syntax error detection.
AI Generated Content
Category: Software
Product Number: LTSpic
Software Version: 24.0.12

My switched circuit.zip

I am trying to better understand piezo resonances. The 'circuit' uses generic components but when I run a simulation I get the error 'C++ exception error message "argument not found" during simulation', and a request to report this incident.

I've attached my circuit in Zip form.

Thanks in advance for any help!

Cheers, David

Parents
  • Hi  ,

    Found some errors:

    Error #1

    Missing ). Change this:

    .meas pwr_outp AVG ((I(R1)*V(WWW))
    to this:
    .meas pwr_outp AVG ((I(R1)*V(WWW)))

    In 26.0.1, you'll get a clear syntax error. 24.0.12 does not do a syntax check, and blindly sends the expression through to low level code, hence the scary C++ exception for a missing close paren. This error stops the sim, but you have another error…

    Error #2

    You've added extra text to your Switches' spicelines:

    This adds problematic text to the netlist, creating an error. Right-click on the body of one of your switches, and you'll see the following, which puts both the text "MySwitch" and "SW" on the spiceline. You don't need the "SW" as that text is in the model.

    Change to this:

    mike

  • Thanks, Mike - I updated my version and, as you pointed out, it flagged both my errors. Now all fixed

Reply Children