ingeniamotion

Motion library for Novanta servo drives


Keywords
python
License
Other
Install
pip install ingeniamotion==0.10.1

Documentation

Ingeniamotion

GitHub branch status PyPi PyPI - Python Version

CC by-nc-sa

Ingeniamotion is a library that works over ingenialink and aims to simplify the interaction with Ingenia's drives.

Ingenia Servodrives

Requirements

  • Python 3.9 or higher
  • WinPcap 4.1.3

Installation

The recommended way to install is by using pip, i.e:

pip install ingeniamotion

Virtual environment management with Poetry

Install poetry:

pip install poetry

Use an environment with a certain Python version:

poetry env use 3.12

Install the required dependencies:

poetry install --all-groups

To install FSoE (optional):

poetry install --extras fsoe

Generate documentation

To produce the documentation, run the following command:

poetry run poe docs

Run PyTest

Create tests/setups/tests_setup.py file with configuration file.

This file is ignored by git and won't be uploaded to the repository. Example of a setup:

from pathlib import Path

from summit_testing_framework.setups import LocalDriveConfigSpecifier

DEN_NET_E_SETUP = LocalDriveConfigSpecifier.from_ethercat_configuration(
    identifier="den-net-e",
    dictionary=Path("C://Users//some.user//Downloads//den-net-e_eoe_2.7.3.xdf"),
    config_file=Path("C://Users//some.user//Downloads//den_net_e.xcf"),
    firmware=Path("C://Users//some.user//Downloads//den-net-e_2.7.3.lfu"),
    ifname="\\Device\\NPF_{675921D7-B64A-4997-9211-D18E2A6DC96A}",
    slave=1,
    boot_in_app=False,
)

TESTS_SETUP = DEN_NET_E_SETUP

For more information, check summit-testing-framework documentation.

Run tests selecting the markers that you want and are appropriate for your setup. Beware that some tests may not be appropriate for the setup that you have and may fail.

poetry run poe tests -m {markers}