SM16uout


NameSM16uout JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://sequentmicrosystems.com
SummaryLibrary to control Sixteen 0-10V Analog Outputs Card
upload_time2024-10-13 13:10:01
maintainerNone
docs_urlNone
authorSequent Microsystems
requires_pythonNone
licenseMIT
keywords industrial raspberry power 4-20ma 0-10v optoisolated
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Welcome to SM16uout’s documentation!

# Install

```bash
sudo pip install SM16uout
```

or

```bash
sudo pip3 install SM16uout
```

# Update

```bash
sudo pip install SM16uout -U
```

or

```bash
sudo pip3 install SM16uout -U
```

# Initiate class

```console
$ python
Python 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import SM16uout.SM16uout as m
>>> SM16uout = m()
>>>
```

# Documentation

<a id="module-SM16uout"></a>

### *class* SM16uout.SM16uout(stack=0, i2c=1)

Bases: `object`

Python class to control the Sixteen 0-10V Analog Outputs

* **Parameters:**
  * **stack** (*int*) – Stack level/device number.
  * **i2c** (*int*) – i2c bus number

#### calib_status()

Get current calibration status of device.

* **Returns:**
  (int) Calib status

#### get_version()

Get firmware version.

Returns: (int) Firmware version number

#### get_u_out(channel)

Get 0-10V output channel value in volts.

* **Parameters:**
  **channel** (*int*) – Channel number
* **Returns:**
  (float) 0-10V output value

#### set_u_out(channel, value)

Set 0-10V output channel value in volts.

* **Parameters:**
  * **channel** (*int*) – Channel number
  * **value** (*float*) – Voltage value

#### cal_u_out(channel, value)

Calibrate 0-10V output channel.
Calibration must be done in 2 points at min 5V apart.

* **Parameters:**
  * **channel** (*int*) – Channel number
  * **value** (*float*) – Real(measured) voltage value

#### get_led(led)

Get led state.

* **Parameters:**
  **led** (*int*) – Led number
* **Returns:**
  0(OFF) or 1(ON)

#### get_all_leds()

Get all leds state as bitmask.

* **Returns:**
  (int) Leds state bitmask

#### set_led(led, val)

Set led state.

* **Parameters:**
  * **led** (*int*) – Led number
  * **val** – 0(OFF) or 1(ON)

#### set_all_leds(val)

Set all leds states as bitmask.

* **Parameters:**
  **val** (*int*) – Led bitmask

#### get_rs485()

NOT IMPLEMENTED

#### set_rs485(modbus, modbusId, baudrate=38400, stopbits=1, parity=0)

Set the RS485 port parameters

* **Parameters:**
  * **modbus** (*0/1*) – 1: turn ON, 2: turn OFF
  * **modbusId** (*1..254*) – 
  * **baudrate** (*1200..115200*) – baud rate (default: 38400)
  * **stopbits** (*1/2*) – stop bits (default: 1)
  * **parity** (*0/1/2*) – stop bits (default: 0 - None)

#### disable_rs485()

Disable modbus and free the RS485 for Raspberry usage

#### wdt_reload()

Reload watchdog.

#### wdt_get_period()

Get watchdog period in seconds.

* **Returns:**
  (int) Watchdog period in seconds

#### wdt_set_period(period)

Set watchdog period.

* **Parameters:**
  **period** (*int*) – Channel number

#### wdt_get_init_period()

Get watchdog initial period.

* **Returns:**
  (int) Initial watchdog period in seconds

#### wdt_set_init_period(period)

Set watchdog initial period.

* **Parameters:**
  **period** (*int*) – Initial period in second

#### wdt_get_off_period()

Get watchdog off period in seconds.

* **Returns:**
  (int) Watchfog off period in seconds.

#### wdt_set_off_period(period)

Set off period in seconds

* **Parameters:**
  **period** (*int*) – Off period in seconds

#### wdt_get_reset_count()

Get watchdog reset count.

* **Returns:**
  (int) Watchdog reset count

#### wdt_clear_reset_count()

Clear watchdog counter.

#### get_button()

Get button status.

* **Returns:**
  (bool) status
  : True(ON)/False(OFF)

#### get_button_latch()

Get button latch status.

* **Returns:**
  (bool) status
  : True(ON)/False(OFF)

<!-- vi:se ts=4 sw=4 et: -->



            

Raw data

            {
    "_id": null,
    "home_page": "https://sequentmicrosystems.com",
    "name": "SM16uout",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "industrial, raspberry, power, 4-20mA, 0-10V, optoisolated",
    "author": "Sequent Microsystems",
    "author_email": "olcitu@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/71/75/c8caaf460ac3fb4c5f36900e6be78acf7f2cd8959339d078000a93c5cf06/SM16uout-1.0.1.tar.gz",
    "platform": null,
    "description": "# Welcome to SM16uout\u2019s documentation!\n\n# Install\n\n```bash\nsudo pip install SM16uout\n```\n\nor\n\n```bash\nsudo pip3 install SM16uout\n```\n\n# Update\n\n```bash\nsudo pip install SM16uout -U\n```\n\nor\n\n```bash\nsudo pip3 install SM16uout -U\n```\n\n# Initiate class\n\n```console\n$ python\nPython 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import SM16uout.SM16uout as m\n>>> SM16uout = m()\n>>>\n```\n\n# Documentation\n\n<a id=\"module-SM16uout\"></a>\n\n### *class* SM16uout.SM16uout(stack=0, i2c=1)\n\nBases: `object`\n\nPython class to control the Sixteen 0-10V Analog Outputs\n\n* **Parameters:**\n  * **stack** (*int*) \u2013 Stack level/device number.\n  * **i2c** (*int*) \u2013 i2c bus number\n\n#### calib_status()\n\nGet current calibration status of device.\n\n* **Returns:**\n  (int) Calib status\n\n#### get_version()\n\nGet firmware version.\n\nReturns: (int) Firmware version number\n\n#### get_u_out(channel)\n\nGet 0-10V output channel value in volts.\n\n* **Parameters:**\n  **channel** (*int*) \u2013 Channel number\n* **Returns:**\n  (float) 0-10V output value\n\n#### set_u_out(channel, value)\n\nSet 0-10V output channel value in volts.\n\n* **Parameters:**\n  * **channel** (*int*) \u2013 Channel number\n  * **value** (*float*) \u2013 Voltage value\n\n#### cal_u_out(channel, value)\n\nCalibrate 0-10V output channel.\nCalibration must be done in 2 points at min 5V apart.\n\n* **Parameters:**\n  * **channel** (*int*) \u2013 Channel number\n  * **value** (*float*) \u2013 Real(measured) voltage value\n\n#### get_led(led)\n\nGet led state.\n\n* **Parameters:**\n  **led** (*int*) \u2013 Led number\n* **Returns:**\n  0(OFF) or 1(ON)\n\n#### get_all_leds()\n\nGet all leds state as bitmask.\n\n* **Returns:**\n  (int) Leds state bitmask\n\n#### set_led(led, val)\n\nSet led state.\n\n* **Parameters:**\n  * **led** (*int*) \u2013 Led number\n  * **val** \u2013 0(OFF) or 1(ON)\n\n#### set_all_leds(val)\n\nSet all leds states as bitmask.\n\n* **Parameters:**\n  **val** (*int*) \u2013 Led bitmask\n\n#### get_rs485()\n\nNOT IMPLEMENTED\n\n#### set_rs485(modbus, modbusId, baudrate=38400, stopbits=1, parity=0)\n\nSet the RS485 port parameters\n\n* **Parameters:**\n  * **modbus** (*0/1*) \u2013 1: turn ON, 2: turn OFF\n  * **modbusId** (*1..254*) \u2013 \n  * **baudrate** (*1200..115200*) \u2013 baud rate (default: 38400)\n  * **stopbits** (*1/2*) \u2013 stop bits (default: 1)\n  * **parity** (*0/1/2*) \u2013 stop bits (default: 0 - None)\n\n#### disable_rs485()\n\nDisable modbus and free the RS485 for Raspberry usage\n\n#### wdt_reload()\n\nReload watchdog.\n\n#### wdt_get_period()\n\nGet watchdog period in seconds.\n\n* **Returns:**\n  (int) Watchdog period in seconds\n\n#### wdt_set_period(period)\n\nSet watchdog period.\n\n* **Parameters:**\n  **period** (*int*) \u2013 Channel number\n\n#### wdt_get_init_period()\n\nGet watchdog initial period.\n\n* **Returns:**\n  (int) Initial watchdog period in seconds\n\n#### wdt_set_init_period(period)\n\nSet watchdog initial period.\n\n* **Parameters:**\n  **period** (*int*) \u2013 Initial period in second\n\n#### wdt_get_off_period()\n\nGet watchdog off period in seconds.\n\n* **Returns:**\n  (int) Watchfog off period in seconds.\n\n#### wdt_set_off_period(period)\n\nSet off period in seconds\n\n* **Parameters:**\n  **period** (*int*) \u2013 Off period in seconds\n\n#### wdt_get_reset_count()\n\nGet watchdog reset count.\n\n* **Returns:**\n  (int) Watchdog reset count\n\n#### wdt_clear_reset_count()\n\nClear watchdog counter.\n\n#### get_button()\n\nGet button status.\n\n* **Returns:**\n  (bool) status\n  : True(ON)/False(OFF)\n\n#### get_button_latch()\n\nGet button latch status.\n\n* **Returns:**\n  (bool) status\n  : True(ON)/False(OFF)\n\n<!-- vi:se ts=4 sw=4 et: -->\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library to control Sixteen 0-10V Analog Outputs Card",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://sequentmicrosystems.com"
    },
    "split_keywords": [
        "industrial",
        " raspberry",
        " power",
        " 4-20ma",
        " 0-10v",
        " optoisolated"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42f181acfa47ef6297aa714636938fe583bf72f139cdbf9ad3e1217e1d7b53c5",
                "md5": "a6b30ec18c0f7705e0f145a6502c58af",
                "sha256": "435fc7d3964f61783c9a5569a5d4d2bd25abc46cc18132fa9f745d5fbcd537da"
            },
            "downloads": -1,
            "filename": "SM16uout-1.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6b30ec18c0f7705e0f145a6502c58af",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 5692,
            "upload_time": "2024-10-13T13:09:59",
            "upload_time_iso_8601": "2024-10-13T13:09:59.925541Z",
            "url": "https://files.pythonhosted.org/packages/42/f1/81acfa47ef6297aa714636938fe583bf72f139cdbf9ad3e1217e1d7b53c5/SM16uout-1.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7175c8caaf460ac3fb4c5f36900e6be78acf7f2cd8959339d078000a93c5cf06",
                "md5": "502f8ac410d8422edb8920f5ab726008",
                "sha256": "a20acead14e1704ba55b54c16535a45c90bd06197d93030fb69c06e04007f778"
            },
            "downloads": -1,
            "filename": "SM16uout-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "502f8ac410d8422edb8920f5ab726008",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5752,
            "upload_time": "2024-10-13T13:10:01",
            "upload_time_iso_8601": "2024-10-13T13:10:01.077211Z",
            "url": "https://files.pythonhosted.org/packages/71/75/c8caaf460ac3fb4c5f36900e6be78acf7f2cd8959339d078000a93c5cf06/SM16uout-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-13 13:10:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "sm16uout"
}
        
Elapsed time: 1.74073s