SYNOPSIS
loadrt supply num_chan=num
BESCHREIBUNG
supply was used to allow the inputs of other HAL components to be manipulated for testing purposes. When it was written, the only way to set the value of an input pin was to connect it to a signal and connect that signal to an output pin of some other component, and then let that component write the pin value. supply was written to be that "other component". It reads values from parameters (set with the HAL command setp) and writes them to output pins.
Seit der Erstellung von B<supply> wurde der Befehl setp so modifiziert, dass er sowohl unverbundene Pins als auch Parameter setzen kann. Außerdem wurde der Befehl sets hinzugefügt, mit dem HAL-Signale direkt gesetzt werden können, solange keine Ausgangspins an sie angeschlossen sind. supply ist daher überflüssig.
supply supports a maximum of eight channels. The number of channels actually loaded is set by the num_chan argument when the module is loaded. If numchan is not specified, the default value is one.
FUNKTIONEN
- supply.N.update (nutzt Gleitkomma)
-
Aktualisiert Ausgangspins für Kanal N.
PINS
- supply.N.q bit out
-
Ausgabebit, kopiert aus Parameter supply.N.d.
- supply.N._q bit out
-
Ausgangsbit, invertierte Kopie des Parameters supply.N.d.
- supply.N.variable float out
-
Analogausgang, kopiert aus Parameter supply.N.value*.
- supply.N._variable float out
-
Analogausgang, entspricht dem -1,0-fachen Parameter supply.N.value.
- supply.N.d bit rw
-
Datenquelle für q- und _q Ausgangspins.
- supply.N.value bit rw
-
Datenquelle für die Ausgangspins variable und _variable.