03-28-2024 09:16 AM
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
03-28-2024 10:45 AM
Make sure you have NI vIsa installed on the deploy computer.
04-05-2024 03:21 AM
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.
04-05-2024 08:03 AM - edited 04-05-2024 08:09 AM
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.