GunnsDraw Data Table - nasa/gunns GitHub Wiki

Background

This is a custom Draw.io table that sets up a general data table for use by other object in a GUNNS network. Common uses for this are for the SOC/Voc table needed by a GunnsElectBattery and the efficiency table option for a GunnsElectConverterInput.

You can give each table a unique name, column titles and set of data values.

How To Use In GunnsDraw

Rules

  • Place a Data Table into the Network container object.
  • Give the table a unique name in the network, by selecting the table and typing the name. The name appears in the gray title bar.
    • This must be a valid C variable name.
  • You can make as many tables in a network as you want, and they can be placed anywhere inside the Network container, but each must have a unique name among all objects in the network.

You can expand and collapse the table contents by toggling the ‘+’ shape in the title bar. The default table will appear like this when expanded:

To fill out the table:

  • You can change the X & Y column titles to your liking. However, these will be appended to the table name in the exported network code, so these follow C variable naming rules, like no hyphens, etc.
  • The first column (X) will typically be the independent variable in the table lookup, and the Y column the dependent variable, but this is up to the implementation of the model that uses the table.
  • Double-click a field to edit it.
  • To insert data rows, select a data row and click <Ctrl+Enter>.
  • To delete data rows, select the rows to delete and click <Delete> or <Backspace>.
  • Don’t have more than one column title row.
  • There is no upper limit to the number of data rows, but there must be at least 2 data rows or the network code will not export properly.

Here is an example of a filled-out table:

Common Problems

  • N/A.

References

  • N/A
⚠️ **GitHub.com Fallback** ⚠️