02-10-2012 07:26 AM
Bonjour,
Je dois communiquer avec un central téléphonique via Telnet sur port 1051 afin d'y changer des paramètres. Avec un logiciel tel que Putty, il n'y a aucun souci! J'ai télécharger la version demo d'internet tools kit afin de pouvoir réaliser ces changement depuis une interface Labview. Hors, ca ne fonctionne pas, je ne reçois aucun caractère en retour ! quelqu'un aurait une solution à mon problème ?
Merci pour votre aide
ci joint, 2 fichiers : Telnet 1 = interface LABVIEW et configuration Putty
Telnet 2 = résultat connexion Putty
02-10-2012 08:34 AM
Google Translate is a wonderful thing...
Try connecting the error clusters on the telnet VIs and see if you are getting any errors. You should always connect the error clusters.
Mike...
02-10-2012 08:41 AM
Thank you for your response.
Module on "Open Telnet Connection" I have no error.
On the module "telnet Read" I get the error 56 that appears after the Timeout!
but it does not help me much!
02-10-2012 08:56 AM
Error 56 is a timeout. According to the documentation on the Telnet read function, the VI should return what it has read even if it times out before all the bytes you requested have been acquired. A couple things to try:
Mike...
02-10-2012 10:08 AM
I've done these two tests but it does not change!
If I try to communicate with the module "TCP setup" and "TCP read", I receive something but this is the wrong characters!
02-15-2012 03:29 AM
Hi,
When you are gettint errors in VI's that are calling others VI (as telnet for example), I would recommend you to debug your code:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/debug_techniques/
Also, if you are new to LabVIEW, first you should assist to some courses: LabVIEW core 1&2 (in which you will learn why is important to connect the error clusters or LabVIEW connectivity (learning how to work with internet toolkit among others):
In France:
http://sine.ni.com/tacs/app/fp/p/ap/ov/fmid/497/urlsrc/rewrite/oc/fr/
In Switzerland (you have also courses in French)
02-15-2012 03:41 AM
I found also an interesting link that may help you also:
http://digital.ni.com/public.nsf/allkb/C49602A79827DDBE86256CE9005757D5?OpenDocument
02-15-2012 04:14 AM
thank you for your help.
I will try these solutions.