YPowerOutput.FindPowerOutput()
YPowerOutput.FindPowerOutput()
Permet de retrouver une source d'alimentation d'après un identifiant donné.
function yFindPowerOutput( func)
js
YPowerOutput* FindPowerOutput( string func)
cpp
+(YPowerOutput*) FindPowerOutput : (NSString*)
m
TYPowerOutput yFindPowerOutput( func: string): TYPowerOutput
pas
function FindPowerOutput( ByVal
vb
static YPowerOutput FindPowerOutput( string func)
cs
static YPowerOutput FindPowerOutput( String func)
java
static YPowerOutput FindPowerOutput( string func)
uwp
FindPowerOutput( func)
py
function FindPowerOutput( $func)
php
static FindPowerOutput( func: string): YPowerOutput
ts
static FindPowerOutput( func)
es
static YPowerOutputProxy FindPowerOutput( string func)
dnp
static YPowerOutputProxy * FindPowerOutput( string func)
cp
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 source d'alimentation soit en ligne au moment ou elle est appelée,
l'objet retourné sera néanmoins valide. Utiliser la méthode
si la source d'alimentation 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 source d'alimentation sans ambiguïté, par exemple
YI2CMK01.powerOutput
Retourne :
YPowerOutput
un objet de classe
www.yoctopuce.com
func
func
As String) As YPowerOutput
YPowerOutput.isOnline()
.
qui permet ensuite de contrôler la source d'alimentation.
23. Référence de l'API de haut niveau
YPowerOutput
pour tester
675