Changes

Jump to navigation Jump to search
752 bytes added ,  09:40, 2 December 2019
Line 129: Line 129:  
Return the node that is manage by the switch according the configuration file.
 
Return the node that is manage by the switch according the configuration file.
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 +
Python 3.4.2 (default, Sep 26 2018, 07:16:01)
 +
[GCC 4.9.2] on linux
 +
Type "help", "copyright", "credits" or "license" for more information.
 +
>>> from FGInterface import FGInterface as FGINT
 +
>>> FGINT1 = FGINT('radiopanel.cfg', 0)
 +
>>> FGINT1.createDevices()
 +
>>> FGINT1.createElements()
 +
>>> RMP0PSW = FGINT1.getElement('RMP0PSW')
 +
>>> RMP0PSW.getValueType()
 +
'None'
 +
>>>
 
</syntaxhighlight>
 
</syntaxhighlight>
   Line 134: Line 145:  
Return the typed value given as agument
 
Return the typed value given as agument
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 +
Python 3.4.2 (default, Sep 26 2018, 07:16:01)
 +
[GCC 4.9.2] on linux
 +
Type "help", "copyright", "credits" or "license" for more information.
 +
>>> from FGInterface import FGInterface as FGINT
 +
>>> FGINT1 = FGINT('radiopanel.cfg', 0)
 +
>>> FGINT1.createDevices()
 +
>>> FGINT1.createElements()
 +
>>> RMP0PSW = FGINT1.getElement('RMP0PSW')
 +
>>> RMP0PSW.getTypedData(0)
 +
0
 +
>>> RMP0PSW.getTypedData(1)
 +
1
 +
>>>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
501

edits

Navigation menu