# GetTemperature

The GetTemperature function returns the temperature of the In-Sight D900 series vision system's selected component, in degrees Celsius, when a specified event occurs. This function can be used to ensure that the vision system's case temperature does not exceed the specified temperature of 0°C to 65°C (32°F to 149°F).

The following example shows how to configure the spreadsheet and WebPage to display the vision system's case temperature on the Web HMI.

1. Configure the spreadsheet as follows:
   - Button
     - Name: Temperature
   - GetTemperature
     - Event: References the cell that contains the Button function.
     - Component: Case
2. Publish the Button and GetTemperature cells.

3. Got to your WebPage, find the tags in Tags Window, and drag-and-drop them to your WebPage.

4. Place the vision system Online.
5. Open the Web HMI on your browser.
6. Click the Temperature button. The In-Sight vision system's case temperature is returned.

## GetTemperature Inputs

Parameter | Description
--- | ---
Event | Specifies the event that returns the vision system's temperature. This parameter must be a reference to one of the following: The Image data structure in cell A0, containing the AcquireImage function. A cell containing an Event function. A cell containing a Button function.
Component | Specifies the component to return the temperature. Currently, the Case option is only supported.
0 | Case | Returns the vision system's case temperature.

## GetTemperature Outputs

Note: When the GetTemperature function is initially added to the spreadsheet, it returns 0. It will update the value once the event specified in the Event parameter occurs.

Returns | Returns the temperature of the In-Sight D900 series vision system's selected component, in degrees Celsius.