User Tools

Site Tools


eeros_architecture:hal:hardware_libraries_sim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:hal:hardware_libraries_sim [2019/03/02 16:31] – [Hardware Simulator] grafeeros_architecture:hal:hardware_libraries_sim [2019/03/02 16:39] (current) – [Configuration File] graf
Line 3: Line 3:
 Currently the simulator encompasses a ''reflect'' device: \\ Currently the simulator encompasses a ''reflect'' device: \\
 [{{ :eeros_architecture:hal:simdevicehierarchy.png?400 | //The available subdevices of the simulator//}}] [{{ :eeros_architecture:hal:simdevicehierarchy.png?400 | //The available subdevices of the simulator//}}]
-The input channels of //Subdevice Digital Input// are output on the channels of //Subdevice Digital Output// and similarly the same is true for the input channels of //Subdevices 2 and 3. Every signal on input channel 0 to 10 is "reflected" onto its corresponding output channel 0 to 10. +The input channels of //Subdevice Digital Input// are output on the channels of //Subdevice Digital Output// and similarly the same is true for the input channels of //Subdevice Analog Input// which are output on //Subdevice Analog Output//. Every signal on input channel 0 to 10 is "reflected" onto its corresponding output channel 0 to 10.  
 ==== Available Subdevices ==== ==== Available Subdevices ====
 ^ Function            ^ Description                                   ^ Subdevice     ^ available Channels  ^ ^ Function            ^ Description                                   ^ Subdevice     ^ available Channels  ^
 | Digital Output      | Outputs                                                          0-10         | | Digital Output      | Outputs                                                          0-10         |
 | Digital Input       | Inputs reflected from outputs of subdevice 0  |                    0-10         | | Digital Input       | Inputs reflected from outputs of subdevice 0  |                    0-10         |
-| Digital Input       | Inputs                                        |                    0-10         | +| Analog Output       | Outputs                                                   |        0-10         | 
-| Digital Output      | Outputs reflected from inputs of subdevice 2  |                    0-10         | +| Analog Input        | Inputs reflected from outputs of subdevice              |        0-10         |
-| Analog Output       | Outputs                                                   |        0-10         | +
-| Analog Input        | Inputs reflected from outputs of subdevice      5                0-10         | +
-| Analog Input        | Inputs                                        |                    0-10         | +
-| Analog Output       | Outputs reflected from inputs of subdevice 6  |             |        0-10         |+
  
 ==== Configuration File ==== ==== Configuration File ====
Line 21: Line 18:
   "device0": {   "device0": {
     "library": "libsimeeros.so",     "library": "libsimeeros.so",
-      "devHandle": "reflect", +    "devHandle": "reflect", 
-      "subdevice0":+    "subdevice0":
-        "type": "DigOut", +      "type": "DigOut", 
-        "channel4": { +      "channel1": { 
-          "signalId": "dout1+        "signalId": "dout0
-        +      
-      }, +    }, 
-      "subdevice1":+    "subdevice1":
-        "type": "DigIn", +      "type": "DigIn", 
-        "channel4": { +      "channel1": { 
-          "signalId": "din1+        "signalId": "din0
-        +      
-      }, +    }, 
-      "subdevice4": { +    "subdevice2": { 
-        "type": "AnalogOut", +      "type": "AnalogOut", 
-        "channel7":+      "channel7":
-          "signalId": "aout1", +        "signalId": "aout1" 
-        }+      } 
 +    }, 
 +    "subdevice3":
 +      "type": "AnalogIn", 
 +      "channel7": { 
 +        "signalId": "ain1"
       }       }
-      "subdevice5": { 
-        "type": "AnalogIn", 
-        "channel7": { 
-          "signalId": "ain1", 
-        } 
-      }, 
     }     }
   }   }
 } }
 </code> </code>
-Digital output on ''dout1'' can be read at input ''din1'', analog output on ''aout1'' can be read at input ''ain1''. The configuration could include scaling and range limiting for the analog channels as described in [[eeros_architecture:hal:configuration_file|]].+Digital output on ''dout0'' can be read at input ''din0'', analog output on ''aout1'' can be read at input ''ain1''. The configuration could include scaling and range limiting for the analog channels as described in [[eeros_architecture:hal:configuration_file|]].
  
eeros_architecture/hal/hardware_libraries_sim.1551540702.txt.gz · Last modified: 2019/03/02 16:31 by graf