Hi,
How can I write into a rawfile? I'm getting the followign error.
s
Stefan Schippers
08/17/2024, 4:10 PM
replace the .write, .save, .tran lines with:
Copy code
.control
save all
tran 1n 10u
remzerovec
write test.raw
.endc
🙌 1
a
Aswin
08/19/2024, 6:36 AM
May I ask what remzerovec does?
Is it for deleting any garbage variables?
s
Stefan Schippers
08/19/2024, 7:30 AM
@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.