LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tcp/ip

Slt à tous,

 

J'ai un logiciel de mesure (qui n'est pas Labview) d'édier à un instrument de mesure, celui-ci communique grâce à un protocole TCP/IP, et moi avec Labview j'aimerai pouvoir lire les informations qui transitent sur cette connection pour ensuite en récuper une partie. Comment pourrai-je m'y prendre?

 

Merci à tous d'avance

Cordialement

Vincent.

0 Kudos
Message 1 of 5
(2,964 Views)

Hi Vincent,

works your measuring instrument as tcp server or as client? If it is a client, then you can create a server to which the device can connect to. You'll find a lot of examples about tcp/ip in the example finder.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 5
(2,962 Views)

Deuxième question si je créer donc un serveur où viendra se connecter l'appareil de mesure, est qu'il pourra se connecter via le même port que celui utiliser par le deuxième logiciel et pourrai-je faire tourner les deux logiciel en même temps pour réaliser l'acquisition,

 

Troisièmes question et si l'appereil de mesure n'est pas client mais serveur est ce toujours possible?

 

merci d'avance

Cordialement

Vincent

 

 

0 Kudos
Message 3 of 5
(2,949 Views)

Je m'excuse de repondre en anglais, si il y a quelquechose qui n'est pas clair n'hesite pas demander:

 

If your instrument acts as a server (it accepts connections from other programs) then you may be able to connect to it from both the measurement software and LabVIEW at the same time; you'll need to look at the instrument documentation and try it out.  You'll also need to know the protocol that the instrument uses to send data.

 

If the measurement software (not the instrument) acts as the server then it's more difficult.  You cannot have both the measurement software and your LabVIEW program listening on the same TCP port at the same time; whichever program opens the port first will have access.  In this case you should see if there's some way to integrate the measurement software into your LabVIEW program, perhaps through ActiveX or by reading the data files it generates.

0 Kudos
Message 4 of 5
(2,922 Views)
Merci pour ta réponse,J'y vois un peut  plus claire maintenant.

nathand a écrit:

Je m'excuse de repondre en anglais, si il y a quelquechose qui n'est pas clair n'hesite pas demander:

 

If your instrument acts as a server (it accepts connections from other programs) then you may be able to connect to it from both the measurement software and LabVIEW at the same time; you'll need to look at the instrument documentation and try it out.  You'll also need to know the protocol that the instrument uses to send data.

 

If the measurement software (not the instrument) acts as the server then it's more difficult.  You cannot have both the measurement software and your LabVIEW program listening on the same TCP port at the same time; whichever program opens the port first will have access.  In this case you should see if there's some way to integrate the measurement software into your LabVIEW program, perhaps through ActiveX or by reading the data files it generates.


 

0 Kudos
Message 5 of 5
(2,902 Views)