0
\$\begingroup\$

I'm trying to automate LTSpice using the command line. I have tried the following command several times:

test.asc -run -b

However, it only opens my schematic in LTSpice and does not run it! I have no idea whats wrong with it. The schematic is a very simple circuit which should be run in less than a second. Does any one have idea? How should I resolve this issue?

Thanks

asked Oct 21, 2015 at 14:23
\$\endgroup\$
7
  • \$\begingroup\$ Did you have a look at the error log? \$\endgroup\$ Commented Oct 21, 2015 at 14:26
  • \$\begingroup\$ There is no error log when I use this command! The schematic opens but does not run. And the error log tab is off! \$\endgroup\$ Commented Oct 21, 2015 at 14:30
  • \$\begingroup\$ Then try opening it and have a look... \$\endgroup\$ Commented Oct 21, 2015 at 14:34
  • \$\begingroup\$ As I said there is no error log! The circuit should be run to have a error log I think. Mine doesn't even run when I use that command line. \$\endgroup\$ Commented Oct 21, 2015 at 14:39
  • \$\begingroup\$ There is no problem with the circuit itself. I can run it manually using the GUI. But when I use the command line, it doesn't work! \$\endgroup\$ Commented Oct 21, 2015 at 14:48

1 Answer 1

2
\$\begingroup\$

The command "test.asc -run -b" does not run LTSpice, it simply opens the file "test.asc". It only opens in LTSpice because the file association for ".asc" is assigned to LTSpice in the operating system (if it was assigned to eg. notepad then it would open in that program instead). The ".asc" filetype is set up to only pass the file name to LTSpice, not the whole command line.

Your command should start with the name of the executable you want to run ie. "scad3.exe", followed by any parameters you want to give it ie. "test.asc -run -b". LTSpice will then be able to read the full command line, run the simulation and produce the expected output files ("test.log", "test.net").

answered Oct 21, 2015 at 17:24
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.