How to Fix No Plot Output in QSPICE

When I looked at your code, it appeared that the section defining the input and output pins had been deleted.

This is how you create a template. Unless you know exactly what you are doing, do not attempt to modify the code generated by the template.
buildtemplate1

If you add, remove, or modify pins—or if you change their Port or Data type—you must regenerate the template. OR, you can regenerate the port definitions and copy them to replace the existing port definitions in your C++ code.
buildtemplate2