# DeviceIsReady()

#### C\#

```csharp
[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte DeviceIsReady();

```

#### Returns:

&#x20;\> 0 if the device is connected.

#### C# Example:

```csharp
public static bool Connected
{
get
{
  bool ok = DeviceIsReady() > 0 ? true : DeviceIsReady() > 0;

  return ok;
}
}
```
