|Download Help (Windows Only)|
The FPGA Bitfile Manager process provides an example of using Conditional Disable structures and custom conditional disable symbols to execute specific code snippets based upon types and configurations of hardware. This implementation allows the process to be hardware-agnostic. For example, this process executes the following code to download the appropriate bitfile by checking first whether it acquires waveforms, and then checking the type of FPGA in the chassis.
If the FPGA type has a different model number, a separate subdiagram that corresponds to that number and calls the appropriate bitfile would run.
Define the device-specific values of the WfmAcq and FPGA_Type symbols in the LabVIEW project that contains Main.vi. Recall that each device type has a unique LabVIEW project, so conditional symbol values can differ per project, and this process executes the correct snippet instead of requiring a unique VI per project.