User Tools

Site Tools


eeros_architecture:hal:scaling

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
Last revisionBoth sides next revision
eeros_architecture:hal:scaling [2017/06/07 11:45] – [Configuring an Analog Output] grafeeros_architecture:hal:scaling [2021/05/20 07:32] – [Scale and Range of Analog Signals] ursgraf
Line 1: Line 1:
 ====== Scale and Range of Analog Signals ====== ====== Scale and Range of Analog Signals ======
-Within eeros we work with signals having physically meaningful units. However, when such signals are read from real-world hardware we use analog-to-digital converters or encoder which are basically counters. When outputting such signals we use digital-to-analog converters. These counters or converters all deliver or need an integer value. Its maximum and minimum value depend on the resolution of the underlying hardware. The ''scale'' and ''range'' key allows to convert between the necessary integer value and the physically meaningsful signals.+Within EEROS we work with signals having physically meaningful units. However, when such signals are read from real-world hardware we use analog-to-digital converters or encoder which are basically counters. When outputting such signals we use digital-to-analog converters. These counters or converters all deliver or need an integer value. Its maximum and minimum value depend on the resolution of the underlying hardware. The ''scale'' and ''range'' key allows to convert between the necessary integer value and the physically meaningful signals. You might have several stages in your hardware, see [[eeros_architecture:hal:scaling_multi|]].
  
 ===== Configuring an Analog Output ===== ===== Configuring an Analog Output =====
Line 32: Line 32:
   "channel0": {   "channel0": {
     "signalId": "dacOut0",     "signalId": "dacOut0",
-    "scale": 0.5, +    "scale": [ { "id" : "dac", 
-    "offset": -2.5,+                 "scale":  0.5, 
 +                 "offset": 2.5 } ], 
 +    "range": [ { "id" : "dac", 
 +                 "minIn":       0, "maxIn":  65536, 
 +                 "minOut":  -10.0, "maxOut":  10.0 } ],
     "unit": "V"     "unit": "V"
   }   }
eeros_architecture/hal/scaling.txt · Last modified: 2022/05/06 21:09 by jonasfrei