| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Programmatic HTML report generation for analysis pipelines.
Symbols in this namespace: 20
| Symbol | Kind | Category | Description |
|---|---|---|---|
REPORT.ADD_CODE | Function | Report functions | Adds escaped preformatted code or log text. |
REPORT.ADD_DIVIDER | Function | Report functions | Adds a horizontal divider. |
REPORT.ADD_HTML | Function | Report functions | Returns a report with a raw HTML block appended. Use only for trusted/generated HTML. |
REPORT.ADD_IMAGE | Function | Report functions | Returns a report with an image embedded as PNG/base64. For stacks, frame selects the frame to embed. |
REPORT.ADD_IMAGE_FILE | Function | Report functions | Embeds an existing PNG/JPEG/GIF/WEBP/SVG image file as base64 in the report. |
REPORT.ADD_KV | Function | Report functions | Adds one key/value row as a compact table. |
REPORT.ADD_LIST | Function | Report functions | Adds a bullet list from a newline separated string or an array. |
REPORT.ADD_METRIC | Function | Report functions | Adds a metric card suitable for summaries and dashboards. |
REPORT.ADD_NOTE | Function | Report functions | Adds an emphasized note block. Kind may be INFO, SUCCESS, WARNING or DANGER. |
REPORT.ADD_SECTION | Function | Report functions | Returns a report with a section heading appended. Level is clamped to H2..H4. |
REPORT.ADD_TABLE | Function | Report functions | Returns a report with a 1D/2D ARRAY/TABLE rendered as an HTML table. Optional headers may be a comma/pipe separated string or a 1D array. |
REPORT.ADD_TABLE_HEADERS | Function | Report functions | Adds a table with explicit column headers. Headers may be a comma/pipe/semicolon separated string or an array. |
REPORT.ADD_TEXT | Function | Report functions | Returns a report with an escaped text paragraph appended. |
REPORT.CREATE | Function | Report functions | Creates a closed HTML report object represented as text. Use REPORT.ADD_* to append items and REPORT.SAVE_HTML to write it. |
REPORT.FROM_TEXT | Function | Report functions | Reads a report back from text, wrapping plain fragments in a valid report document if needed. |
REPORT.ITEM_COUNT | Function | Report functions | Returns the number of appended report items. |
REPORT.SAVE | Function | Report functions | Alias of REPORT.SAVE_HTML(report,path). |
REPORT.SAVE_HTML | Function | Report functions | Writes the closed report to a UTF-8 HTML file and returns TRUE on success. REPORT.SAVE is an alias. |
REPORT.TITLE | Function | Report functions | Returns the report title extracted from the H1 heading. |
REPORT.TO_TEXT | Function | Report functions | Serializes a report to text. In the current implementation the report is already an HTML text object. |
REPORT.ADD_CODE(report, code [, language])
Adds escaped preformatted code or log text.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
language | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_CODE(rep, scriptText, "cvbasic")REPORT.ADD_DIVIDER(report)
Adds a horizontal divider.
rep = REPORT.ADD_DIVIDER(rep)REPORT.ADD_HTML(report, html)
Returns a report with a raw HTML block appended. Use only for trusted/generated HTML.
value = REPORT.ADD_HTML(report, html)REPORT.ADD_IMAGE(report, image [, caption [, frame]])
Returns a report with an image embedded as PNG/base64. For stacks, frame selects the frame to embed.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
rep = REPORT.ADD_IMAGE(rep, img, "Processed image")REPORT.ADD_IMAGE_FILE(report, path [, caption])
Embeds an existing PNG/JPEG/GIF/WEBP/SVG image file as base64 in the report.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_IMAGE_FILE(rep, "out/plot.png", "Metric plot")REPORT.ADD_KV(report, key, value [, unit])
Adds one key/value row as a compact table.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
unit | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_KV(rep, "FPS", STACK.FPS(st), "Hz")REPORT.ADD_LIST(report, items [, caption])
Adds a bullet list from a newline separated string or an array.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_LIST(rep, "load ok\nfilter ok\nsave ok", "Pipeline")REPORT.ADD_METRIC(report, name, value [, unit [, comment]])
Adds a metric card suitable for summaries and dashboards.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
unit | Optional parameter. If omitted, the command uses its internal default. |
comment | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_METRIC(rep, "SNR", 12.4, "dB", "clear event")REPORT.ADD_NOTE(report, text [, kind [, title]])
Adds an emphasized note block. Kind may be INFO, SUCCESS, WARNING or DANGER.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
kind | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
rep = REPORT.ADD_NOTE(rep, "Low S/N: repeat the measurement", "WARNING", "Diagnostics")REPORT.ADD_SECTION(report, title [, level])
Returns a report with a section heading appended. Level is clamped to H2..H4.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
level | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_SECTION(rep, "Summary")REPORT.ADD_TABLE(report, table [, caption [, headers]])
Returns a report with a 1D/2D ARRAY/TABLE rendered as an HTML table. Optional headers may be a comma/pipe separated string or a 1D array.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
headers | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_TABLE(rep, metrics, "Metrics", "Name,Value,Unit")REPORT.ADD_TABLE_HEADERS(report, table, headers [, caption])
Adds a table with explicit column headers. Headers may be a comma/pipe/semicolon separated string or an array.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_TABLE_HEADERS(rep, metrics, "Metric,Value", "Summary")REPORT.ADD_TEXT(report, text)
Returns a report with an escaped text paragraph appended.
rep = REPORT.ADD_TEXT(rep, "Result OK")REPORT.CREATE(title [, subtitle])
Creates a closed HTML report object represented as text. Use REPORT.ADD_* to append items and REPORT.SAVE_HTML to write it.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
subtitle | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.CREATE("ROI Analysis")REPORT.FROM_TEXT(text)
Reads a report back from text, wrapping plain fragments in a valid report document if needed.
value = REPORT.FROM_TEXT(text)REPORT.ITEM_COUNT(report)
Returns the number of appended report items.
value = REPORT.ITEM_COUNT(report)REPORT.SAVE(report, path)
Alias of REPORT.SAVE_HTML(report,path).
ok = REPORT.SAVE(rep, "report.html")REPORT.SAVE_HTML(report, path)
Writes the closed report to a UTF-8 HTML file and returns TRUE on success. REPORT.SAVE is an alias.
ok = REPORT.SAVE(rep, "report.html")REPORT.TITLE(report)
Returns the report title extracted from the H1 heading.
value = REPORT.TITLE(report)REPORT.TO_TEXT(report)
Serializes a report to text. In the current implementation the report is already an HTML text object.
value = REPORT.TO_TEXT(report)