Link
report_link TPTReport.Link()
This function creates a link with a defined text to a certain signal.
The following cases can occur:
- Link text set and signal is valid: normal link appearance
- Link text set but no valid graphic with the signal: text appears but without a working link
- Link text set but no signal specified: text appears but without a working link
- No link text but a signal is specified: the signal name will appear as the link text.
A signal graphic must fulfill the following conditions to be a valid link target:
- The graphic has at least a width of 300 pixels.
- The linked signal is the only one added to the left vertical axis.
Returns:
the new Link that can be added to the report.
Examples:
# add a link to the graph of Signal "a" to the report
mylnk = TPTReport.Link();
mylnk.setText("This text links to the graphic of signal a");
mylnk.setSignal(a);
TPTReport.add(mylnk);