Module IOCards

An instance of the IOCards class.

It is not possible to create another instance of the IOCards class, as IOCards class is not accessible by the user.

Info:

  • Copyright: Debaru Kft. 2017
  • Release:
  • License: GNU
  • Author: Debaru Kft

Functions

start () Starts an IO Card.
start (card_index, type) Adds a new IO Card.
slot (card_index) Gets an IOCard instance based on card index.

IOCard

parameter (parameter_index, value) Sets a card's parameters.
parameter (parameter_index, value) Sets a card's parameters.
status (channel_index) Sets a card's parameters.
DI (channel_index) Gets the state of the digital input ports.
DO (channel_index) Gets the state of the digital output ports.
AI (channel_index) Gets the state of the analog input ports.
AO (channel_index) Gets the state of the analog output ports.
is_connected () Returns a CardPointLocator instance that the user can check for connection.
version () Returns the firmware version number of the selected IO Card.
aux_data (index) Returns the auxilary information of the selected IO Card.

CardPointLocator

assign (tag) Assigns an existing tag to a card point.
tag () Creates a new tag for a card point.


Functions

start ()
Starts an IO Card. After configuration this function must be called.
start (card_index, type)
Adds a new IO Card.

Parameters:

slot (card_index)
Gets an IOCard instance based on card index. First card index is 1.

Parameters:

  • card_index int

Returns:

    IOCard

IOCard

parameter (parameter_index, value)
Sets a card's parameters.

Parameters:

  • parameter_index int
  • value int
parameter (parameter_index, value)
Sets a card's parameters.

Parameters:

  • parameter_index int
  • value int
status (channel_index)
Sets a card's parameters.

Parameters:

  • channel_index int

Returns:

    CardPointLocator
DI (channel_index)
Gets the state of the digital input ports.

Parameters:

  • channel_index int

Returns:

    CardPointLocator
DO (channel_index)
Gets the state of the digital output ports.

Parameters:

  • channel_index int

Returns:

    CardPointLocator
AI (channel_index)
Gets the state of the analog input ports.

Parameters:

  • channel_index int

Returns:

    CardPointLocator
AO (channel_index)
Gets the state of the analog output ports.

Parameters:

  • channel_index int

Returns:

    CardPointLocator
is_connected ()
Returns a CardPointLocator instance that the user can check for connection.

Returns:

    CardPointLocator
version ()
Returns the firmware version number of the selected IO Card. Returns 0 if unknown.

Returns:

    int
aux_data (index)
Returns the auxilary information of the selected IO Card.

Parameters:

Returns:

    int

CardPointLocator

assign (tag)
Assigns an existing tag to a card point.

Parameters:

tag ()
Creates a new tag for a card point.

Returns:

    Tag
generated by LDoc 1.4.6 Last updated 2023-09-25 09:31:08