Skip to main content

No project description provided

Project description

This python package is used as a core engine for any pydevmgr high level package.

The documentation is on its way, but one may be interested to higher level package such as

Python package to by used as substitute of a real device manager running in a ELT-Software environment when the full ELT-Software environment cannot be used.

Sources are here

Install

> pip install pydevmgr_core 

Basic Usage

pydevmgr_core is not indented to be used directly but used by other pydevmgr related package as a core engine.

For usage here is an example using pydevmgr_ua to access an OPC-UA node :

from pydevmgr_ua import UaRpc, UaNode, UaCom
from pydevmgr_core.nodes import InsideInterval
import time 

com = UaCom(address="opc.tcp://192.168.1.11:4840", prefix="MAIN")

target = 7.0

move = UaRpc( com=com, suffix="Motor1.RPC_MoveAbs", args_parser=[float, float])
pos = UaNode( com=com,  suffix="Motor1.stat.lrPosActual" )
test = InsideInterval( node = pos, min=target-0.1, max=target+0.1 )


try:
    com.connect()
    move.call( 7.0, 1 )
    while not test.get():
        time.sleep(0.1)

    print( "posisiotn is", pos.get() )
finally:
    com.disconnect()

Or using the highest level dedicated for ELT devices:

from pydevmgr_elt import Motor, wait
m1 = Motor('motor1', address="opc.tcp://192.168.1.11:4840", prefix="MAIN.Motor1")
try:
    m1.connect()    
    wait(m1.move_abs(7.0,1.0), lag=0.1)
    print( "position is", m1.stat.pos_actual.get() )
finally:
    m1.disconnect()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydevmgr_core-0.5.2.tar.gz (74.5 kB view details)

Uploaded Source

File details

Details for the file pydevmgr_core-0.5.2.tar.gz.

File metadata

  • Download URL: pydevmgr_core-0.5.2.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for pydevmgr_core-0.5.2.tar.gz
Algorithm Hash digest
SHA256 3620d5b3c86cdecc98a65486203467dd44b0953e48e7257a93b162ff4a7ccda9
MD5 3bc07693cb3b4f0641d8ce3eac775894
BLAKE2b-256 9a4702692988525d966ee23376ebd36c362e72dfeb9e13309e99c9f44444415a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page