22. Référence de l'API de haut niveau
YCurrentLoopOutput.FindCurrentLoopOutput()
YCurrentLoopOutput.FindCurrentLoopOutput()
Permet de retrouver une sortie 4-20mA d'après un identifiant donné.
function yFindCurrentLoopOutput( func)
js
YCurrentLoopOutput* yFindCurrentLoopOutput( string func)
cpp
+(YCurrentLoopOutput*) FindCurrentLoopOutput : (NSString*)
m
TYCurrentLoopOutput yFindCurrentLoopOutput( func: string): TYCurrentLoopOutput
pas
function yFindCurrentLoopOutput( ByVal
vb
static YCurrentLoopOutput FindCurrentLoopOutput( string func)
cs
static YCurrentLoopOutputProxy FindCurrentLoopOutput( string func)
dnp
static YCurrentLoopOutput FindCurrentLoopOutput( String func)
java
static YCurrentLoopOutput FindCurrentLoopOutput( string func)
uwp
FindCurrentLoopOutput( func)
py
function yFindCurrentLoopOutput( $func)
php
static FindCurrentLoopOutput( func)
es
L'identifiant peut être spécifié sous plusieurs formes:
NomLogiqueFonction
NoSerieModule.IdentifiantFonction
NoSerieModule.NomLogiqueFonction
NomLogiqueModule.IdentifiantMatériel
NomLogiqueModule.NomLogiqueFonction
Cette fonction n'exige pas que la sortie sortie 4-20mA soit en ligne au moment ou elle est appelée,
l'objet retourné sera néanmoins valide. Utiliser la méthode
pour tester si la sortie sortie 4-20mA est utilisable à un moment donné. En cas d'ambiguïté lorsqu'on
fait une recherche par nom logique, aucune erreur ne sera notifiée: la première instance trouvée sera
renvoyée. La recherche se fait d'abord par nom matériel, puis par nom logique.
Si un appel à la méthode is_online() de cet objet renvoie FAUX alors que vous êtes sûr que le module
correspondant est bien branché, vérifiez que vous n'avez pas oublié d'appeler registerHub() à
l'initialisation de de l'application.
Paramètres :
func
une chaîne de caractères qui référence la sortie sortie 4-20mA sans ambiguïté, par exemple
TX420MA1.currentLoopOutput
Retourne :
YCurrentLoopOutput
un objet de classe
278
func
func
As String) As YCurrentLoopOutput
YCurrentLoopOutput.isOnline()
.
qui permet ensuite de contrôler la sortie sortie 4-20mA.
YCurrentLoopOutput
www.yoctopuce.com