# GetTemperature

The GetTemperature function returns the temperature of the selected component of the In-Sight L38 series vision systems, in Celsius degrees, when a specified event occurs. This function can be used to ensure that the case temperature of the vision system does not exceed the specified temperature of 55°C, as the lasers in L38 vision systems can shut down above 55°C.

The following example shows how to configure the spreadsheet to display the case temperature of the vision system 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 case temperature of the In-Sight vision system is returned.

Inputs

Parameter | Description
--- | ---
Event | Specifies the event that returns the temperature of the vision system. 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 case temperature of the vision system.

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

Returns | Returns the temperature of the selected component of the In-Sight L38 series vision system in Celsius degrees.