LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication RS-232

Bonjour,

 

J'ai créé une application qui communique avec un indicateur sur un port RS-232.

L'application fonctionne correctement sur le PC ou je l'ai créé mais ne fonctionne pas lorsque que je la déploie sur d'autre PC.

C'est uniquement la communication via le port RS232 qui ne fonctionne pas et je ne comprends pas pourquoi.

Via un terminal je peux communiquer facilement mais l'application n'y arrive pas, pourtant elle repère bien le port COM.

Aucune erreur ne s'affiche.

 

Si vous avez une idée je suis preneur merci

N'hésitez pas si vous avez plus de questions.

 

Maxime

0 Kudos
Message 1 of 4
(214 Views)

Make sure you have NI vIsa installed on the deploy computer. 

0 Kudos
Message 2 of 4
(196 Views)

Oui tous les drivers sont bien installés, j'ai mis des temporisation et des clean buffer dans les commandes RS232 et pour l'instant uniquement l'envoi de commande fonctionne. Mais le programme ne lit aucune réponse.

0 Kudos
Message 3 of 4
(86 Views)

Try using NI-Max to communicate with your instrument.  It may be that you are not providing a termination character to the instrument during your write which is causing the write command to hang in the instrument (Just because you do not get an error during a write does not mean the Write is working).

 

Complete your write with either the newline character (\n) or the semicolon (;).  This informs the instrument that a command has been completed and that it can now handle that command/query and act upon it.

 

If that works, then the settings on the new machine are not configured to automatically terminate the write command.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 4
(66 Views)