Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Main category
Main forum
getLed() for IndustrialAutomation python
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mikemick" data-source="post: 22" data-attributes="member: 22"><p>I have been using python3 to program the SM Industrial Automation card. I've tried to use the getLet() function but it doesn't seem to be in the megaind python library. Here is a trace of what happens at REPL level:</p><p></p><p>Python 3.7.3 (default, Oct 31 2022, 14:04:00) </p><p>[GCC 8.3.0] on linux</p><p>Type "help", "copyright", "credits" or "license" for more information.</p><p>>>> import megaind</p><p>>>> megaind.get0_10In(0, 1)</p><p>0.0</p><p>>>> megaind.getLed(0, 1)</p><p>Traceback (most recent call last):</p><p> File "<stdin>", line 1, in <module></p><p>AttributeError: module 'megaind' has no attribute 'getLed'</p><p>>>> </p><p></p><p>I have looked at the __init__.py in ~/megaind-rpi/python/megaind and the getLet() function is included. Not sure if I'm using the library incorrectly.</p><p>Can you shed some light on this?</p></blockquote><p></p>
[QUOTE="mikemick, post: 22, member: 22"] I have been using python3 to program the SM Industrial Automation card. I've tried to use the getLet() function but it doesn't seem to be in the megaind python library. Here is a trace of what happens at REPL level: Python 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import megaind >>> megaind.get0_10In(0, 1) 0.0 >>> megaind.getLed(0, 1) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'megaind' has no attribute 'getLed' >>> I have looked at the __init__.py in ~/megaind-rpi/python/megaind and the getLet() function is included. Not sure if I'm using the library incorrectly. Can you shed some light on this? [/QUOTE]
Verification
Post reply
Home
Forums
Main category
Main forum
getLed() for IndustrialAutomation python
Top