LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mass Compile with Conditional Disable Symbols

Solved!
Go to solution

When compiling a .vi, the conditional disable structures need to be accounted for.  In addition to the standard ones (bitness, OS, etc), the conditional disable also can use custom created Conditional Disable Symbols that are located in the .lvproj (one set for the entire project, but also subsets under each target)

 

I'm under the impression when the Mass Compile is launched from the right click menu on the project in the Project Explorer, the mass compile occurs with the current project's Conditional Disable Symbols.

 

For mass compile via the command line, how do we indicate the correct Conditional Disable Symbols that would normally be in the .lvproj?

https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/cli_predefined_operations/

 

 

0 Kudos
Message 1 of 2
(1,876 Views)
Solution
Accepted by D*

Hello,

On the Mass Compiling VIs section of the LabVIEW 2018 Manual it specifies the operation order for the Mass Compile:

"

 When LabVIEW mass compiles a directory of VIs, it processes files in the following order at each level of the directory hierarchy:

  • LabVIEW project files—When LabVIEW encounters a project, LabVIEW processes the project file, then all files owned by the project in the order they appear in the project tree of the Project Explorer window. Project- and target-specific settings defined by the project such as conditional disable symbols  can affect how the files are compiled, such as by specifying the platforms or processor LabVIEW uses to execute the VI..."

So basically, as it says on the link you attached you just have to use the OperationName MassCompile and the argument -DirectoryToCompile where you specify thelocation of the VIs. Then that Mass Compile should include everything in the directory you specified (even the Conditional Disable Symbols).

 

Hope it helps!

0 Kudos
Message 2 of 2
(1,737 Views)