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

{% block main_body_content %}

Read the instructions below for information on this page.

Or use the upload option to upload a control parameter spreadsheet.



{% csrf_token %}

Click on the export button below to export the control variables to a spreadsheet with _desc appended to the control file name.

{% if error_message %}

{{ error_message }}

{% endif %}

Control inputs

{% if control_component_list.0 %}

These are the list of control inputs in the control file. Click on the "Delete" buttons next to each element to delete them. To make changes, delete the existing inputs and add new ones.

{% for control_comp in control_component_list.0 %} {% if control_comp %}
Input source: {{ control_comp.input_source }}
Variable name in control code: {{ control_comp.input_variable_name }}
{% endif %} {% endfor %} {% else %}

There are no control inputs.

{% endif %} {% if form_type == 1 %}

{% for control_item in form %}
{{ control_item }}
{% endfor %}
{% csrf_token %}


{% endif %}

Click on the "Add control input" button below to add more control inputs.



Control outputs

{% if control_component_list.1 %}

These are the list of control outputs in the control file. Click on the "Delete" buttons next to each element to delete them. To make changes, delete the existing outputs and add new ones.

{% for control_comp in control_component_list.1 %} {% if control_comp %}
Output target: {{ control_comp.output_target }}
Variable name in control code: {{ control_comp.output_variable_name }}
Initial value of output: {{ control_comp.output_initial_value }}
{% endif %} {% endfor %} {% else %}

There are no control outputs.

{% endif %} {% if form_type == 2 %} {% if control_model_list %}

{% for control_item in form %}
{{ control_item }}
{% endfor %}
{% csrf_token %}
{% else %}

There are no controllable items in the circuit. Cannot add a control output.

{% endif %} {% endif %}

Click on the "Add control output" button below to add more control outputs.



Static variables

{% if control_component_list.2 %}

These are the list of static variables in the control file. Click on the "Delete" buttons next to each element to delete them. To make changes, delete the existing static variables and add new ones.

{% for control_comp in control_component_list.2 %} {% if control_comp %}
Variable name in control code: {{ control_comp.static_variable_name }}
Initial value of variable: {{ control_comp.static_initial_value }}
{% endif %} {% endfor %} {% else %}

There are no static variables.

{% endif %} {% if form_type == 3 %}

{% for control_item in form %}
{{ control_item }}
{% endfor %}
{% csrf_token %}
{% endif %}

Click on the "Add static variable" button below to add more static variable elements.



Time event variables

{% if control_component_list.3 %}

These are the list of time event variables in the control file. Click on the "Delete" buttons next to each element to delete them. To make changes, delete the existing time event variables and add new ones.

{% for control_comp in control_component_list.3 %} {% if control_comp %}
Variable name in control code: {{ control_comp.time_event_name }}
Initial time event: {{ control_comp.initial_time_value }}
{% endif %} {% endfor %} {% else %}

There are no time event variables.

{% endif %} {% if form_type == 4 %}

{% for control_item in form %}
{{ control_item }}
{% endfor %}
{% csrf_token %}
{% endif %}

Click on the "Add time event" button below to add more time event variables.



Variable storage elements

{% if control_component_list.4 %}

These are the list of variable storage elements in the control file. Click on the "Delete" buttons next to each element to delete them. To make changes, delete the existing time event variables and add new ones.

{% for control_comp in control_component_list.4 %} {% if control_comp %}
Variable name in control code: {{ control_comp.variable_storage_name }}
Initial value of variable: {{ control_comp.storage_initial_value }}
Write to output data file?: {{ control_comp.storage_status }}
{% endif %} {% endfor %} {% else %}

There are no variable storage elements.

{% endif %} {% if form_type == 5 %}

{% for control_item in form %}
{{ control_item }}
{% endfor %}
{% csrf_token %}
{% endif %}

Click on the "Add variable storage" button below to add more variable storage elements.




Click here to go back to previous page with list of control files.


Instructions

  1. The configuration of the control file is divided into "Control inputs", "Control outputs", "Static variables", "Time event variables", "Variable storage elements". To know more about these variables, check out the free chapter on control design on my webpage click here.
  2. When adding a control input, it provides you with a drop down list of all the meters detected in all the circuits. You can choose one and decide what variable to call it in the control code. That variable name will have the measured value of the meter automatically.
  3. When adding a control output, it provides you with a drop down list of all the controllable components.
  4. You must click on the "Add" button for a particular type to create a new form.
  5. You must click on the "Save" button to save it to the database.
  6. There is no cancel button, so if you don't want to save changes, do not click the "Save" button. Instead click on any other "Add" button to remove the form.
  7. There is no provision to edit an entry, delete it and add a new one.
  8. Once done editing the parameters, click on "Back to control main" button to continue with the other control files.


{% endblock %}