Write_var() works fine with circuits variable, but when I tried to use it to save an equation variable (calculated by an equation expression), it returns the following error.
write_var_f=write_var(file_name2,"W","! Gain"," ","f", 14, Gain)
While evaluating "write_var_f":
operand: invalid field access
How to export equation variable into file .txt or .csv ?