Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Generate Code Method

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Short Name: Generate Code

Requires: Statechart Module

Class: StatechartLibrary Methods

To Use: Create a method.

Generates code for the statechart and optionally saves the statechart. The statechart is saved only if code generation occurs and the Save Statechart parameter is TRUE.


Data typeNameRequiredDescription
Save StatechartYesSpecifies whether to save the statechart if code generation occurs.
Force GenerationYesSpecifies whether to force code generation.


The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineNo
Available in Real-Time Operating SystemNo
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo


 Was this document helpful?  submit
  Helpful Not Helpful