TmCodeGen Procedure
Writes a specified string to the code generation file.
Usage
TmCodeGen, string
Parameters
string—A string to write into the code generation file.
Keywords
None.
Discussion
The code generation functions allow a VDA Tool user to write the PV‑WAVE code used to create a plot, import data, or any other VDA Tool action.
This procedure is used in the TM_CODEGEN method to write strings containing PV‑WAVE code to a file. The TmStartCodeGen command opens the file, and the TmEndCodeGen closes the file when writing is completed. The TM_CODEGEN method is called by default from the File=>Code Generation menu item.
Example
For an example of how the code generation functions are used, look at the source file for the WzPlot VDA Tool. In that file, study the procedure WzPlotCodeGen to learn how TmCodeGen is used to write PV‑WAVE code to a file. The source file for WzPlot is in:
(UNIX) <wavedir>/lib/vdatools/wzplot.pro
(WIN) <wavedir>\lib\vdatools\wzplot.pro
Where <wavedir> is the main PV-WAVE directory.
See Also