Run Modes

LabVIEW SignalExpress

Run Modes

By default, LabVIEW SignalExpress runs projects continuously when you click the Run button. However, you can configure LabVIEW SignalExpress to run a project once, for a number of iterations you specify, or for an amount of time you specify. If you run a project once, the project is in Run Once mode. If you run a project continuously, the project is in Run Continuous mode. If you run a project for a number of iterations or an amount of time you specify, the project is in Run Continuous mode until the stop condition occurs.

Use Run Once mode if you want the steps in a project to execute only once. For example, if you use a Sweep step to control the execution of steps in a project, you might not want the Sweep step to continue running after it iterates through the values you specify when you configure the Sweep step.

Use Run Continuous mode if a project contains steps that operate on signals iteratively, such as steps that filter or average signals. For example, if you use the Power Spectrum step to average data in a project, the step averages the data over time with each iteration of the project. If you do not run the project continuously, you cannot average the data because LabVIEW SignalExpress resets the Power Spectrum step each time you run the project in Run Once mode.

If you configure a project to run for a specified number of iterations or a specified time in seconds, the project runs in Run Continuous mode until the stop condition occurs. For example, if you configure a project to run for 30 seconds, the project executes as if you set the project to run continuously, clicked the Run button, and then clicked the Stop button 30 seconds later.

Note Note  If you configure a project to run for a specific amount of time, LabVIEW SignalExpress uses software timing to determine how long the project runs. You cannot use hardware timing to control how long a project runs.

Configuring Run Modes

Click the down arrow on the Run button and select Run Continuously, Run Once, or Configure Run to specify the run mode you want to use. You also can access run mode configuration options from the Operate menu.

When you select Configure Run, the Configure Run dialog box appears. You can use this dialog box to specify a number of iterations or an amount of time in seconds for which you want the project to run. You also can create a snapshot of all the signals in the project when the project finishes running. After you configure the run mode, the icon on the Run button updates to reflect the configuration. You configure run modes on a per-project basis. When you save a project, LabVIEW SignalExpress also saves the configuration of the Run button.

Conversions to and from LabVIEW VIs

When you convert a LabVIEW SignalExpress project to a LabVIEW block diagram, the generated VI runs in the mode you configured for the project unless you edit the VI to change how the VI runs. If you import a LabVIEW SignalExpress project from LabVIEW, you can configure the run mode through the pull-down menu on the Run button or the Operate menu.

Note Note  If a project includes a Run LabVIEW VI step, the run mode you configure does not override the execution of elements of the LabVIEW VI, such as loops.