# 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 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. Place the vision system Online.
4. Open the Web HMI on your browser.
5. 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 needs to be a reference to any event with a timestamp, for example, one of the following: 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.