Using a CSV file for PWL voltage source

I’m following the examples from
https://forum.qorvo.com/t/any-plans-to-include-a-csv-file-format-as-an-input-to-a-voltage-current-or-resistance-behavior-component/17320

I get errors for both relevant styles:

Internal Error(please report): mkbnode: no such op num 23
The problem occured while parsing the line:
V1 N01 0 PWL FILE ‘C:\USERS\JOHN\ONEDRIVE\DOCUMENTS\QSPICE\STAIRSTEP2.TXT’

and

Internal Error(please report): mkbnode: no such op num 23
The problem occured while parsing the line:
V1 N01 0 PWL REPEAT FOREVER FILE ‘C:\USERS\JOHN\ONEDRIVE\DOCUMENTS\QSPICE\STAIRSTEP2.TXT’ ENDREPEAT

I’ve tried a few times hoping to avoid typos, but I can’t get it to work.

Any suggestions?

John
Stairstep.qsch (925 Bytes)

StairStep2.txt (281 Bytes)

Please review if this is what you need. (Put everything in same folder)
I added an extra line in your .txt file (line#11), I expect this is the signal you need. Please pay attention to last value if forever loop is required.

Stairstep.qsch (1.0 KB)
StairStep2.txt (294 Bytes)

1 Like

Thank you, that does work.

The files were actually in the same folder, but it seems QSPICE does not like full filespecs.

I expected the program to take care of making the data go to zero at the last point, which it does. But it is not the way intended, so it is better to take care of it in the text file as you showed.

John