Editing Instrumentino Notes

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 166: Line 166:
  
  
what are actions?  seem to be tuple of things like the one SysActionSetPins()  look to see if it is based on abstract base.  Descends from SysAction
 
  
SysAction from instrumentino.action import SysAction, SysActionParamTime, SysActionParamFloat, SysActionParamInt
 
  
class SysAction(RunnableItem):  and RunnableItem  from executable_listctrl import RunnableItem  which is pretty much empty, this one seems to be an ABC but
 
not declared to be so.
 
  
  
An architecture document would be nice, major classes, use of threads,  mvc?  GUI vs other components
 
  
Add a log file ?? where to capture exceptions, just use the console, if so advise.
 
  
  
Well things looked good but got
 
  
Traceback (most recent call last):
 
  File "D:/Russ/0000/SpyderP\instrumentino\__init__.py", line 155, in OnUpdateControls
 
    self.UpdateControls(event.data)
 
  File "D:/Russ/0000/SpyderP\instrumentino\__init__.py", line 180, in UpdateControls
 
    comp.Enable(cfg.IsCompOnline(comp))
 
  File "D:/Russ/0000/SpyderP\instrumentino\comp.py", line 236, in Enable
 
    self.panel.Enable(isEnabled)
 
  File "D:\apps\Anaconda\lib\site-packages\wx-3.0-msw\wx\_core.py", line 9971, in Enable
 
    return _core_.Window_Enable(*args, **kwargs)
 
TypeError: in method 'Window_Enable', expected argument 2 of type 'bool'
 
 
in the console
 
 
 
The system description file (e.g. mySystem.py) should include the following parts:
 
imports  -- there is no such file do you mean something like ArduinoPins.py
 
  
 
[[category:SmartTerminal]] [[Category:Arduino/RaspberryPi]]
 
[[category:SmartTerminal]] [[Category:Arduino/RaspberryPi]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)