# GetOnline

Returns the Online state of the In-Sight vision system

Inputs

Syntax: GetOnline(Event)

Parameter | Description
--- | ---
Event | An external event that forces an update. The parameter must reference the AcquireImage function, an Event structure, or a Button function.

Outputs

Returns | A value of 0.000 if the vision system is Offline. A value of 1.000 if the vision system is Online.

Note: You need to reference an Online/Offline Event object if you want the value to change immediately when going Online or Offline. If you are referencing AcquireImage , the value only updates when an acquisition is triggered.

## GetOnline Example

1. Drag and drop the GetOnline tool into your Spreadsheet.

2. The GetOnline property sheet opens.

3. Click OK to accept the default property sheet settings. The cell returns 0.000 indicating that the vision system is Offline.

4. Place an Event function, and reference it on the GetOnline property sheet.

5. Place the vision system Online. The cell now returns 1.000, indicating that the vision system is Online.

   Note: You need to reference an Online/Offline Event object if you want the value to change immediately when going Online or Offline.