VisionBox .NET Library  1.7.10.0 (2024-04-16)
VIB_NET::iDevice Class Reference
+ Inheritance diagram for VIB_NET::iDevice:

Detailed Description

The interface for all device implementations

Each physical hardware component like DigitalInput or RS422 ... implements this interface.

Public Member Functions

void Close ()
 Closes a device More...
 
bool isOpen ()
 Returns the open state of a device object More...
 
void Open ()
 Opens a device More...
 
void Open (unsigned int Index)
 Opens a device More...
 

Properties

virtual VIB_NET::eDEVICE_TYPE Type [get]
 Returns the device type for the current instance, see eDEVICE_TYPE More...
 

Member Function Documentation

◆ Close()

void VIB_NET::iDevice::Close ( )

Closes a device

The object must be in open state when calling this function.

After a device object is closed, the device can't be used until it's opened again.

◆ isOpen()

bool VIB_NET::iDevice::isOpen ( )

Returns the open state of a device object

Returns
true if the device is opened

◆ Open() [1/2]

void VIB_NET::iDevice::Open ( )

Opens a device

The object must be in a closed state when calling this function.

◆ Open() [2/2]

void VIB_NET::iDevice::Open ( unsigned int  Index)

Opens a device

The object must be in a closed state when calling this function.

See page Open devices using the Open() method for a detailed description.

Parameters
IndexDevice index across all hardware entities

Property Documentation

◆ Type

virtual VIB_NET:: eDEVICE_TYPE VIB_NET::iDevice::Type
get

Returns the device type for the current instance, see eDEVICE_TYPE