1

I have these NgSpice rawfiles that are generated in ASCII format instead of binary format. I would like to know please what command to use to force their generation in binary instead or ASCII format when running the NgSpice simulation in batch mode? If no such thing exists it there a command that converts ASCII files to binary ones?

Thanks in advance

Wallflower
  • 449
  • 3
  • 10
  • 1
    For your last question, all I had to do was open up the manual and search for `batch`. The first match was the answer. It's the same in this case. Are you really going to wait hours, or days for a handed answer instead of trying it out yourself? – a concerned citizen Mar 05 '21 at 09:52
  • @BrianDrummond No – Wallflower Mar 08 '21 at 12:58

1 Answers1

1

The command to use in the control environment of your netlist is the following:

set filetype = binary (or ascii)

The NgSpice output rawfile is generated in binary format.

The command is to be inserted right before the write command if inserted. Here is a minimal working example of the .control environment:

.control
run
set filetype=binary
write path_to_where_you_want_your_rawfile_to_be_saved all
.endc
.end
Wallflower
  • 449
  • 3
  • 10