Ordinateur de bord pour voiture de collection 7.1
|
class based on CLVariable and threading.Thread to have periodic, but independant read of sensor. More...
Public Member Functions | |
def | __init__ (self, Name, FMasque=15, FNumber=None, CapteurIn=None, Value=0, Unit="%s", waittime=5) |
The constructor. More... | |
def | Read (self) |
fonction de lecture de la variable More... | |
def | run (self) |
def | stop (self) |
Public Member Functions inherited from ClVariable | |
def | __init__ (self, Name, FMasque=15, FNumber=None, CapteurIn=None, Value=0, NAquis=0, Unit="%s", CmpBin=None, SeuilMax=None, SeuilMin=None, CmpDelay=0, FuncCal=None, FuncCalParam=None, FuncAction=None, FuncEvent=None) |
The constructor. More... | |
def | Action (self) |
Defini l'action lors de l'appui sur le bouton ou à l'appel lors de l'ouverture en fonction de self.Value. More... | |
def | AdCapteur (self, Capteur) |
add a physical or virtual sensor More... | |
def | Addition (self, ValToAdd) |
add passed value to current value More... | |
def | BValue (self) |
return the binary value. More... | |
def | CValue (self) |
idem (créé pour les asservissements, voir plus bas) More... | |
def | Format (self) |
retourne le resultat de Read() formaté avec la chaine définie self.Unit More... | |
def | Moyenne (self, VLue) |
calculation of average value More... | |
def | Read (self) |
fonction de lecture de la variable More... | |
def | ReadPref (self, pref) |
lit et écrit la préférence (format string <—> format type(Value)) More... | |
def | ReturnBinForValue (self, val) |
def | RValue (self) |
retourne la valeur réelle (si la variable est une valeur réelle) More... | |
def | set (self, newVal) |
Set new Value. More... | |
def | stop (self) |
def | WritePref (self) |
utilisé par historic.PrefWrite() More... | |
Public Attributes | |
Value | |
Public Attributes inherited from ClVariable | |
Aquis | |
BinCmpTimer | |
CmpBin | |
CmpDelay | |
FMasque | |
FNumber | |
FuncAction | |
FuncCal | |
FuncEvent | |
FuncParam | |
MoyenneIter | |
MoyenneSomme | |
NAquis | |
SeuilMax | |
SeuilMin | |
Additional Inherited Members | |
Static Public Attributes inherited from ClVariable | |
int | BinCmpTimer = 0 |
Capteur = None | |
list | ListAff = [] |
ListeActions = None | |
list | ListVnt = [] |
int | MoyenneIter = 0 |
nombre d'itération pour un calcul complet (50) More... | |
int | MoyenneSomme = 0 |
somme destinée au calcule de la moyenne des acquisition, sur NAquis acquisitions. More... | |
Name = None | |
Unit = None | |
Value = None | |
class based on CLVariable and threading.Thread to have periodic, but independant read of sensor.
It's made for very slow sensor, the read is made in separate thread and don't slow down the main program
see | clvariables |
waittime | (default = 5) time beetwin 2 sensor read, in second |
def __init__ | ( | self, | |
Name, | |||
FMasque = 15 , |
|||
FNumber = None , |
|||
CapteurIn = None , |
|||
Value = 0 , |
|||
NAquis = "%s" , |
|||
Unit = 5 |
|||
) |
The constructor.
init de la classe, toutes les valeurs par défaut sont ici.
Reimplemented from ClVariable.
def Read | ( | self | ) |
fonction de lecture de la variable
Reimplemented from ClVariable.
def run | ( | self | ) |
def stop | ( | self | ) |
Reimplemented from ClVariable.
Value |