# GetTemperature

The GetTemperature function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. returns the temperature of the selected component of the vision system, in Celsius degrees, when a specified event occurs. This function can be used to ensure that the temperature of the vision system does not exceed the specified temperature.

Note: For more information about operating temperatures, see the Hardware Manual of your vision system.
Displaying the Case Temperature of the Vision System

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 temperature of the case of the 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. The following component options are available in the property sheet: Option 0: Case Option 1: CPU Option 2: Imager Option 3: Imager Board Option 4: IO Board Option 5: Lens Option 6: FPGA Option 7: Laser Note: The supported component options depend on the specific vision system you are using. If the function cannot get the temperature for a given component, it returns #ERR.

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 vision system in Celsius degrees.