Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

LEP_x_ScriptCompiler.vi (Microprocessor SDK)

LabVIEW 8.6 Microprocessor SDK Help
June 2008

NI Part Number:
372197B-01

»View Product Info

LEP_x_ScriptCompiler.vi, where x is a subtarget and/or an OS, scripts your toolchain compiler and passes the compiler directives to the compiler from the command line. LEP_x_ScriptCompiler.vi is located in the following directory:

labview\Targets\company_name\Embedded\os\os_LEP_TargetPlugin

where os is the target operating system. Some example targets include the target name in the subdirectory.

You must implement LEP_x_ScriptCompiler.vi if you require behavior that differs from the default implementation. Use the base target default implementation of LEP_x_ScriptCompiler.vi for your OS and override only the necessary features. To override the default implementation, wire an LEP_ x_ScriptCompiler.vi VI reference to the Compiler Script input of LEP_x_Build.vi. Your custom implementation of LEP_x_ScriptCompiler.vi must have the same connector pane as the default implementation.

LEP_x_ScriptCompiler.vi can execute the C compiler directly by calling the System Exec VI. You also can use a batch file to execute the compiler directly. Use a batch file if you need to set compiler-specific system variables before the compiler can execute. For example, the VxWorks example targets use a batch file because you must set the Tornado system variables before the C compiler executes.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit