Hi, How can I write into a rawfile? I'm getting th...
# analog-design
a
Hi, How can I write into a rawfile? I'm getting the followign error.
s
replace the .write, .save, .tran lines with:
Copy code
.control
  save all
  tran 1n 10u
  remzerovec
  write test.raw
.endc
🙌 1
a
May I ask what remzerovec does? Is it for deleting any garbage variables?
s
@Aswin yes, sometimes ngspice produces vectors for some internal device parameters with no values. The write command complains and refuses to write anything if this happens. The remzerovec deletes these empty vectors. I consider this a kind of ngspice bug. the write command should automatically ignore these vectors if any, in my humble opinion. So to make the story short, always use remzerovec before write.
a
Good to know!