СИНТАКСИС
loadrt supply num_chan=num
ОПИС
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.
З моменту написання supply команда setp була модифікована, щоб дозволити їй встановлювати як непідключені контакти, так і параметри. Крім того, була додана команда sets, яка може безпосередньо встановлювати сигнали HAL, якщо до них не підключені вихідні контакти. Тому supply є застарілою.
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.
ФУНКЦІЇ
- supply.N.update (використовує числа з плаваючою комою)
-
Оновлює вихідні контакти для каналу N.
ПІНИ
- supply.N.q bit out
-
Вихідний біт, скопійований з параметра supply.N.d.
- supply.N._q bit out
-
Вихідний біт, інвертована копія параметра supply.N.d.
- supply.N.variable float out
-
Аналоговий вихід, скопійований з параметра supply.N.value.
- supply.N._variable float out
-
Аналоговий вихід, що дорівнює -1,0, помноженому на параметр supply.N.value.
- supply.N.d bit rw
-
Джерело даних для вихідних контактів q та _q.
- supply.N.value bit rw
-
Джерело даних для вихідних контактів variable та _variable.