# Function Block Start Tab

The settings for [Function Blocks](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks) are arranged into tabs that appear in the bottom half of the window. Each type of capture block has a different tab configuration, but they all include a **Start Tab**, which determines when the function block starts and contains related settings.

The typical appearance of this area is shown in Figure 1.

![Figure 1: Function Block Start Tab.](https://2280262322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3KyOmcYmM6ZVd3OQDa1%2Fuploads%2FV4FBqEj4BEKS1vIVc3Gr%2Ffunction_block_start_tab.gif?alt=media\&token=9c8b0daa-ff8e-4ad5-b8cd-5c06a98a85ff)

### Start Types

The main drop-down box in the Start Tab selects the **Start Type** for the block; there are four options. Whatever choice is made here will also be shown under the **Start Type** column in the [Function Block List](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-block-list).

### Start Immediately

The default option, this causes the block to begin running as soon as Vehicle Spy goes online. If the block is running in a compiled CoreMini, it starts when the device is powered up.

### Manual Start

The function block will not run until it is started, either by the user or under program control. Typical methods for starting a block include:

* Pressing the play button for the block in the [Function Block List](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-block-list).
* Using a [Function Block Button](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-function-block-button) on a [Graphical Panel](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-measurement/graphical-panels).
* Having a [Function Block Script start](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block) the block using a [Function Block Action](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-command-function-block-action).
* Pressing a defined hotkey (see below).

### Use Start Expression

The function block starts when the specified expression evaluates to **True**. When this option is selected, a **Start Expression** box will appear on the screen, as shown in Figure 1. Press the ![](https://cdn.intrepidcs.net/support/VehicleSpy/assets/Functionbutton.gif) button to launch the [Expression Editor](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/shared-features-in-vehicle-spy/shared-features-expression-builder) to build the expression.

The expression is evaluated every poll cycle, the rate of which is based on the Vehicle Spy [Core Loop time](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-tools/tools-options/options-performance-settings) setting.

### Start Immediately Embedded Only

If compiled into a CoreMini, the block runs as soon as its hardware powers up. If run within Vehicle Spy, this is equivalent to manual start mode.

### Start Options

Below the **Start Type** drop-down box are a number of other options that you can use to adjust the behavior of a function block script.

### Start/Stop Hotkey

Click the drop-down box to assign a [hotkey](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/function-blocks-hotkeys) to this function block, allowing it to be started or stopped with the keyboard.

Vehicle Spy also has a feature that automatically assigns hotkeys to start function blocks. Press the [predefined function key](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/shared-features-in-vehicle-spy/shared-features-predefined-function-keys) **F3** to bring up the **General Hotkeys** list, then press **B** followed by the number next to the function block you want to start.

### Event Sound

This option appears if you select the **Use Start Expression** start type. Click the **Browse...** button, select an audio (**.wav**) file, and Vehicle Spy will play it when the function block starts.

### Automatically Restart when Complete

When enabled, the function block will restart by itself when it has finished. Note that this is the default for [Script Type Function Blocks](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block).

### Timing Precision

Determines how quickly the function block is polled. The default setting, **Automatic**, is best for most uses, but you can also select **Milliseconds** or **Microseconds** for slower or faster polling, respectively.

### Enable Hardware Acceleration

Turning on [Hardware Acceleration](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-tools/tools-utilities/utilities-hardware-acceleration) can increase the efficiency of [CoreMini](https://docs.intrepidcs.com/vspy-3-documentation/3.9.12/vehicle-spy-main-menus/main-menu-tools/utilities-coremini-console) operation.

### Start on Logger Wake Up / Start on Logger Sleep

Check either or both boxes to control how the function block behaves when it is running in a logger.
