Scripting is a recently released, powerful feature of LabVIEW. However, using raw scripting for many tasks can be daunting, due to the huge amount of code it requires. The code generation engine (CodeGen engine) is a partial solution to this problem. The CodeGen engine is a template based scripting application that can be used for the vast majority of large scripting tasks. It is used internally by the DAQ Assistant, Motion Assistant, SignalExpress and many other applications to create LabVIEW code.
Attached are documentation, a simple test example and API files. The engine itself is installed on most systems already. If you do not have it, install DAQmx to get it.
As of 2012, the engine is available on Linux platforms, as well.
Known Issues:
- If the VI you are creating is not broken during code generation, under certain circumstances, LabVIEW may crash. This only effects newer versions of LabVIEW and is relatively rare. FIXED for 2012 release.
- The 64-bit call from <vi.lib> does not work. Call the engine directly from <National Instruments>\MAX\Assistants\LVCGen\LVxxxx\mxwExternalDirectCallCodegen.vi. FIXED for 2012 release.