{% extends "base_framework.html" %} {% load staticfiles %}

{% block main_body_content %}
{% if ckt_schematic_form %}

Browse your computer and upload the circuit schematic spreadsheets (.csv) files. Read the instructions below. NOTE: There is no edit circuit option. Delete the circuit and add a new one. If you change any circuits, click on "Process circuit schematics" button so that the simulator checks for errors.

{% for sim_item in ckt_schematic_form %}
{{ forloop.counter }}.
File name:
{{ sim_item.0.ckt_file_name }}
File description:
{{ sim_item.0.ckt_file_descrip }}
{% if sim_item.1 %}
{{ sim_item.1 }}
{% endif %}

{% endfor %} {% endif %}
{% for sim_field in form %}
{{ sim_field }}
{% if sim_field.errors %}
{% for all_sim_errors in sim_field.errors %}

{{ all_sim_errors }}

{% endfor %}
{% endif %} {% endfor %}
{% if form %}
{% endif %}

{% if ckt_errors == 1 %} {% else %} {% if ckt_schematic_form %}
If you are seeing this "Process circuit schematics" button, it means the circuits have been uploaded successfully. If you do not have any more circuits to upload, you need to click on this button to check for errors in the circuits.
{% endif %}

{% endif %} Click on this button to open a form to add another circuit schematic.


{% if ckt_error_list %}

There are the following errors in the circuits above. You must resolve these errors and click on the "Process circuit schematics" button above to check for errors again:

    {% for ckt_error_item in ckt_error_list %}
  1. {{ ckt_error_item }}
  2. {% endfor %}
{% else %} {% if ckt_errors == 0 %}

The circuits do not have any detectable errors. You can continue to enter the parameters by clicking on the "Back to main page" button.

{% endif %} {% endif %} {% csrf_token %}

Instructions

  1. All the circuit spreadsheet files have to be in the same directory which is the "Directory with simulation files" specified in the "Edit Simulation Parameters" page. It is an error to add a circuit which is not in the directory.
  2. Use the browse button to add circuit spreadsheet files. After adding the file, do not forget to click on the "Save circuit file" button. On clicking the save button, the file should be listed out. If there is a problem, an error will be displayed along with the form.
  3. Click on "Add circuit file" button to add another file in which case it will display another circuit form with a browse button. There can be and it is recommended to have multiple files in a simulation for clarity.
  4. The circuit spreadsheets have to be .csv files.
  5. Once a circuit appears in the list, it has been added to the database. Unless you choose to delete it, it will be associated with the simulation.
  6. If there is an empty form and you wish to proceed, don't worry about the empty file form. Until the same button is clicked, nothing gets added to the database.
  7. There is no provision to edit a circuit file. If you make a mistake, delete the file by clicking the "Remove circuit" button and click on "Add circuit" button to add another file.
  8. Last but most important. After uploading circuit files, click on the "Process circuit schematics" button. The simulator checks for errors and will display the errors. At the same time the simulator populates the database if no errors are found with details of circuit components. This helps in the later stages of the simulation. So if any changes are made to the circuits, do not forget to click on this button.
  9. After it has been checked that no errors result from clicking the "Process circuit schematics" button, click on "Back to main page" button to continue.


{% endblock %}