VectorVn1600#
Controls a Vector VN1600 network interface (CAN / LIN) from Python and gives access to its channels. This class inherits from MeasmaticDevice.
property channels#
All configured channels (CAN and LIN) of the interface.
Returns#
| Type | Description |
|---|---|
| Any | The channels (.NET type IEnumerable<Atv.Framework.Devices.Contracts.IDeviceChannel> ). |
Example#
vector = measmatic.get_device('device-vn1600')
for channel in vector.channels:
print(channel)
property configuration#
The configuration of the interface.
Returns#
| Type | Description |
|---|---|
| Any | The device configuration (.NET type Atv.Framework.Devices.NetworkInterface.VectorVn1600Configuration ). |
Example#
vector = measmatic.get_device('device-vn1600')
config = vector.configuration
property network_interface_channels#
All channels of the interface as network interface channels.
Returns#
| Type | Description |
|---|---|
| Any | The channels (.NET type IEnumerable<Atv.Framework.Devices.Contracts.INetworkInterface> ). |
Example#
vector = measmatic.get_device('device-vn1600')
for channel in vector.network_interface_channels:
print(channel)
property number_of_channels#
The number of configured channels of the interface.
Returns#
| Type | Description |
|---|---|
| int | The number of channels. |
Example#
vector = measmatic.get_device('device-vn1600')
count = vector.number_of_channels
property serial_number#
The serial number of the interface from the device configuration.
Returns#
| Type | Description |
|---|---|
| int | The serial number (an unsigned 32-bit integer in .NET). |
Example#
vector = measmatic.get_device('device-vn1600')
serial = vector.serial_number