---
title: "getEclipseAssociatedSubjects"
canonical: "https://help.vicon.com/space/Shogun112/31230380/getEclipseAssociatedSubjects"
format: markdown
---
# Description

Returns the array of subjects and names from the active trial from Eclipse database. If no selection is made, or the selection doesn't include a trial, the empty array is returned.

## Functional area

Data management

# Command syntax

## Syntax

|  |
| --- |
| `getEclipseAssociatedSubjects` |

### Arguments

None

### Flags

None

> Macro (scroll-pagebreak)

## Return value

string array

The array of string includes the subject; names of active trial from Eclipse database

## Examples

```plaintext
// Print all subjects for active trial from Eclipse database
string $subjects[] = `getEclipseAssociatedSubjects`;
int $l = `getCount $subjects`;
print ("Subjects count = " + string($l), $subjects);
```

# Additional information

## Related commands

- [getEclipseActiveTrial](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31234493)
- [getEclipseAssociatedCalibration](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31237048)
- [getEclipseMarkedTrials](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31232915)