> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SyscVariable Struct Reference

Part of [C Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI)

Provide a struct for a System Coupling variable.

`#include <syscVariable.h>`

## Data Fields

| Type | Name |
| - | - |
| char | [name](#a2eba6c9ae1b937d16229bb14abfd0b8c) \[[SYSC\_STRING\_LENGTH](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#gab4cd55b5b37dd76c5755020302086b15)] |
| enum [SyscQuantityType](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#gaa28a3de6c7c91003a8a15721a5301f12) | [quantityType](#ac986a066454132f9f70180349586ab8b) |
| enum [SyscLocation](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#gade42aba1a68acbbf5956edcd388cdcda) | [location](#a417605c130a691478393fbb05840a5ab) |
| char | [displayName](#a04451c3da4978114e5aba6bcf2713731) \[[SYSC\_STRING\_LENGTH](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#gab4cd55b5b37dd76c5755020302086b15)] |
| enum [SyscTensorType](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#ga007e2fd66e7263a63c114a6d12b3808d) | [tensorType](#a0293955653368e2f48d36587d4d90ca8) |
| int | [isExtensive](#aed5ddca8dd956e1b4935aa69c323e011) |
| enum SyscDataType | [dataType](#aedd58bab04a4c0036cd07cef9016a91c) |

## Detailed Description

Provide a struct for a System Coupling variable.

To create and/or initialize the [SyscVariable](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/structSyscVariable.md) struct, it is highly recommended to use one of the functions with names starting with `syscGetVariable`. These functions will initialize all members to the correct values and will help to avoid back-compatibility issues in the future. For example:

```c theme={null}
SyscVariable var = syscGetVariableTE(
 "Temperature", SyscScalar, 0, SyscNode);
```

Definition at line [37](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

## Field Documentation

### dataType

```c theme={null}
enum SyscDataType SyscVariable::dataType
```

Variable data type.

Definition at line [43](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### displayName

```c theme={null}
char SyscVariable::displayName[ SYSC_STRING_LENGTH ]
```

User-friendly name.

Definition at line [41](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### isExtensive

```c theme={null}
int SyscVariable::isExtensive
```

Flag indicating whether it's an extensive property.

Definition at line [43](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### location

```c theme={null}
enum SyscLocation SyscVariable::location
```

Location (e.g element or node).

Definition at line [38](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### name

```c theme={null}
char SyscVariable::name[ SYSC_STRING_LENGTH ]
```

Unique name for this variable.

Definition at line [38](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### quantityType

```c theme={null}
enum SyscQuantityType SyscVariable::quantityType
```

Quantity type (e.g. temperature).

Definition at line [38](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).

### tensorType

```c theme={null}
enum SyscTensorType SyscVariable::tensorType
```

Tensor type (e.g. scalar, vector).

Definition at line [41](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source) of file [syscVariable.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscVariable_8h_source).
