Communication TCP

Bonjour,
Je souhaite réaliser un système autonome, composé d'un compact RIO (serveur) et d'un Touch Panel (client) et où le client envoi une valeur particulière au serveur pour que ce dernier éxecute une partie de son programme.
Plus précisement, je voudrai que lorsque mon VI client s'éxecute (au lancement du Touch Panel), celui ci allume 1 par une 4 Led sur le VI serveur, puis lorsque j'appuie sur un bouton "OK", je voudrais qu'un autre LED s'allume,
Cependant, la première étape fonctionne corresement, mais lorsque j'appuie sur le bouton, rien ne se passe sur le serveur.
Ais je oublier quelque chose? *
Merci d'avance pour toutes vos réponses 
Pièces jointes :
compact_RIO.vi ‏20 KB
page de garde.vi ‏372 KB

Alors j'ai avancé un peu mais c'est pas encore ça!
J'arrive bien à faire ce que je veux mai cependant lorsque je modifie le nom se trouvant dans la MegaData ou que j'en rajoute un dedans, ces derniers ne sont pas pris en compte, et donc quand j'execute mon VI, seul le premier nom est actif (le compact RIO réagi uniquement si je modifie la valeur du premier nom.
Je ne comprends pas d'où cela peut venir???
cordialement,

Similar Messages

  • Synchronous and asynchronous communication tcp/ip

    Hello all:
    it is common to make synchronous communication between client and server by socket tcp/ip. But I'm needing now to establish an asynchronous communication. I mean:
    0.- The server is a multithread process that has the property to establish one connection for each client that wants to send him messages.
    1.-The client process sends message permanently to server.
    2.- The server processes the request, but don't have to respond to the client.
    3.-Only when the user want it, he sends messages to client by web application reusing the same communications that are opened between client and server process.
    I hope to explain my problem.
    Regards.

    Hello all:
    it is common to make synchronous communication
    between client and server by socket tcp/ip.A socket tcp/ip can be synchronous or asynchronous or both.
    But I'm needing now to establish an asynchronous
    communication. I mean:Is this purely asynchronous or can it be either.
    0.- The server is a multithread process that has the
    property to establish one connection for each client
    that wants to send him messages. Fine, any mode would be okay.
    1.-The client process sends message permanently to server. By permanently do you mean;
    - it is deleted from the client,
    - it is store on the server is a write once read many media. i.e. it is permenetly on the server and cannot be deleted/altered.
    2.- The server processes the request, but don't have to respond to the client.The server should never have to respond to the client. e.g. the server can go down so the client nees to live with the possibility it won't get a reply.
    Synchronous or Asychronous describes how the reply is send. No reply means it is neither.
    3.-Only when the user want it, he sends messages to client by web application reusing the same communications that are opened between client and server process.Are you using socket or a web application server ie. HTTP.
    You wan to be able to reuse the connection. You can do this in any of the case mentioned so far.
    >
    I hope to explain my problem.I hope you will explain your problem too.

  • Aynchronous and Synchronous communication TCP socket

    Hi All,
    I have written a client/server test application to test the performance of the java socket library. I tested the application in two scenarios,
    1) Asynchronous communication between client and server, client sends data(packet size is 500bytes) without waiting for the server response. I tried to upload 1mb file. The time took was 1.5mb/sec which is reasonable.
    2) Synchronous communication between client and server, client sends data (again, packet size is 500bytes) and waits for the server response (all server responds is OK (1 byte data)). The amazing thing in this test was the performance went down drastically!!! it came down to 5-10kb/sec, which is unbelievably nonsense or I am doing something nonsense.
    code snippet (server side)
    //reading from the socket (tried both buffered and non-buffered )
    inputstream = new DataInputStream(new BufferedInputStream(socket.getInputStream()));
    //writing to the outputstream of the socket (server side)
    outstream = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream))
    //then flush the data, in case
    client side code is very simple,
    while(not EOF)
    outputstream.write(buffer); //buffer size is 500bytes, as I mentioned above
    if(synchronous)
    wait for server response, otherwise don't
    I don't know why in case of synchronous communication it should bring down the speed so much, may be I am using wrong java classes or java sucks!
    I would greatly appreciate any help on this.
    Platform used: JDK 1.3.1, WIN2K.

    I have to break it up because that's how it's done in the real application. The test application that I have written is just part of the product that I am working on.
    To give you the background, we have C++ product where we are porting server side of the whole product to java.
    The client(which is written in c++) sends data(which is basically attributes), of size 500bytes in every request. The no. of request depends on how big the model(3D Model) is. In case of very huge models (will have MBs of attributes) the client takes long time to send all the attributes, which is the case with java server (client still in c++). But the in case c++ server it doesn't make any difference, the data transfer rate is same no matter how big the model is.
    I know if I increase the size of the packet I will get higher performance, but unfortunately I can't do that. That's how the client is designed to do it.
    thanks,
    Ganesh

  • Pb communication TCP/IP avec un oscillo Lecroy 6100 et librairie Visa

    Hello,
    I am trying to communicate with a remote Lecroy 6100 scope through TCP/IP, using the visa library.
    I have configured my device with MAX but it can not
    open an INSTR session. I have check the IP address, my
    device respond to a ping. I have installed a VisaServer
    on my device but from my PC, no INSTR session can be
    opened.
    Does someone have any idea ?
    Thank you.

    Hello,
    First of all, I advice you to use the instrument driver for your device:
    * WR 6100 - WaveRunner 6000 series Oscilloscope
    http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/DF35A33EF5129A8586256E920052E226?OpenDocument#rank
    NI-VISA 2.5 (and higher), on Windows32 platforms only, allows you to connect to ethernet instruments via TCP/IP. This is done by specifying a TCP/IP Instrument (INSTR) Resource or TCP/IP Socket (SOCKET) Resource. The syntax for each is as follows:
    TCPIP[board]::host address[::hostname][::INSTR]
    To use the INSTR resource type, the device must support the TCP/IP Instrument Protocol, also known as VXI-11.
    TCPIP[board]::host address[::host name]:ort:OCKET
    The SOCKET Resource exposes the capability of a raw ne
    twork socket connection over TCP/IP (usually, but not restricted to, an ethernet interface). Without TCP/IP Instrument Protocol support, you must use the SOCKET resource type.
    If there is only one interface type present on the host machine, then the board type is optional. For example, "TCPIP0::..." is the same as "TCPIP::...", because 0 after TCPIP is optional. Also, host name has to be used only when there is more than one hostname (instrument) in the host address.
    Refer to the link below for more informations:
    * How Do I Configure an Instrument to Communicate via TCP/IP in MAX?
    http://digital.ni.com/public.nsf/websearch/D7D8E3E1B682022286256D4A00771A52?OpenDocument
    Hope this helps.
    Regards.
    Matthieu Gourssies
    National Instruments

  • ACS Communication TCP/UDP ports

    Hi,
    I have a WEBVPN (on Cisco 2811) which will authenticate its client using ACS, ACS in turn will be integrated with AD.
    the three components (WEBVPN, ACS and AD) have a firewall in between them, I need to configure to allow the communication between the three components, I need a list the ports required for such configuration.
    Also I have to ACS appliances working in HA mode, they will be installed in different locations with firewall in between,What are the ports the 2 appliances are communicating through to ensure full HA?

    Table 2 have this information,
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps5712/ps2086/ps7032/prod_qas0900aecd80108148_ps2086_Products_Q_and_A_Item.html
    Regards,
    ~JG
    Do rate helpful posts

  • End of communication file error ....for xmldom

    Hi,
    Below is a procedure that i am executing.
    I am using NOCOPY For the clob variable.
    While executing the procedure for an xml value for clstring i am getting an error like
    --end of communication channel.
    The xml data is very big but not more that the size for clob.
    procedure Prc_UpdateNodes(clString in out NOCOPY CLOB, nodename varchar2, nodeValue varchar2) is
            l_doc_node xmldom.DOMNode;
            l_xml_out varchar2(2000);
            begin
                      domDocument      := Fn_GetXmlDocument(clString);
                   nodeList           := xmldom.getElementsByTagName(domDocument, nodename);
                   intNoOfNode       := xmldom.getLength(nodeList);
                   l_doc_node := xmldom.item(nodeList, 0);
                   --xmldom.writetobuffer(l_doc_node, l_xml_out);
                   PKS_DEBUG.PRC_DEBUG('CLOB IN PRC_UPDATE' || clString);
                   for loopCount_int in 0.. intNoOfNode - 1  loop
                     node := XmlDom.item(nodeList, loopCount_int);
                        valueNode := XmlDom.getFirstChild(node);
                        --xmldom.writetobuffer(node, l_xml_out);
                        --This return value would be useful only in case of single record where in we could use the same after the insert operation is done
                        -- so that it could be used for the subsequent retrieval.
                        -- In case of multiple records update, this information remains of no use and doesnt have to be handled.
                        XmlDom.setNodeValue(valueNode,nodeValue);
                        --xmldom.writetobuffer(valueNode, l_xml_out);
                   end loop;
                   PKS_DEBUG.PRC_DEBUG('CLOB AFTER PRC_UPDATE' || clString);
                   XmlDom.writeToClob(domDocument,clString);
                   PKS_DEBUG.prc_debug('REMOVING BUFFER');
                  PRC_REMOVE_BUFFER(clString);
                   PKS_DEBUG.PRC_DEBUG('CLOB AFTER WRITITNG TO CLOB' || clString);
            end;The error occurs during the execution of the statement XmlDom.writeToClob(domDocument,clString);
    Do i need the above statement as i am using NOCOPY For the CLOB variable.
    Can anyone help me with this front..
    Thanks.

    checkout TNSPING <service name> from cmd prompt
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\NJi>tnsping issl
    TNS Ping Utility for 32-bit Windows: Version 2.3.2.1.0 - Production on 25-OCT-06
    14:36:06
    Copyright , 1996(c) Oracle Corporation 1995. All rights reserved.
    Attempting to contact (ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=198.1.2.
    15)(Port=1521))
    OK (100 msec)

  • SbRIO-9612 unable to close a TCP connection without causing TCP failure

    Hello,
    I'm working on a multi-server (sbRIO-9612's), multi-client (Windows PCs) application which uses the STM 2.0 libraries and LV2009 SP1.  The server listens on a UDP port for the client to send a message - once sent, the server opens the TCP connection to the client and all is well . . .
    . . . until I added a "hearbeat" message to monitor for down connections.  Once the TCP connection has been extablished, the client PC sends a TCP message (a request for the number of clients connected) to the server sbRIO-9612 every 5 seconds - both the client and server are coded to close the connection if a message is not received within 10 seconds.  The client-side app works fine - if the TCP message is not returned in 10 seconds, the connection is closed and a new UDP message is sent to re-establish it.
    The server-side is the problem - if no message is received in 10 seconds, the TCP connection is closed o.k. (no errors), but the server will no longer allow new TCP connections to be established unless it's rebooted.  It seems to work fine if I leave the non-communicating TCP connections open on the server-side, but I can see this leading to problems after several clients have disconnected without notifying the server properly.
    Interestingly, if the client closes the TCP connection properly (via TCP Close in LV), the server detects it fine and there is no problem.
    I'm allowing the operating system on both sides to select the TCP port to use.
    Any help is greatly appriciated - thank you!
    Al

    Hi Al,
    Thanks for the update -- I'm glad that you were able to find that the issue wasn't actually with the TCP VIs, and moreover that LabVIEW 2010 SP1 seems to have resolved the issue. I would still recommend combing through the code on the RT end to ensure that the LabVIEW 2010 SP1 upgrade really did 'fix' the underlying issue. It's somewhat strange that a version upgrade resolved TCP communication issues that you were having. I just want to be sure that the solution is a truly stable one.
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • Sending file through TCP/IP

    Hi all,
    I would like to know whether LabVIEW is able to send file through TCP/IP. Can anyone please enlighten me on this. Thank You
    Rgds 

    Hi taytay,
    Of course it is possible !
    Go to function palette >> Communication >> TCP ; I have never used them but here they are.
    Go to Help >> Find examples.. and search for TCP, you'll find example code
    You can also purchase the "internet toolkit" that provide ready to use FTP VIs to send or copy simple/multiple file(s).
    Hope this helps.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Communication série cRIO

    Bonjour,
    J'ai un cRIO 9074 qui doit communiquer avec un équipement qui a un pc via le port série.
    Mon cRIO va "poser des questions" au pc supervisant l'équipement et l'ordinateur lui enverra une réponse.
    Je voulais savoir s'il fallait que le pc distant possède visa aussi?
    Merci d'avance
    Bastien
    Résolu !
    Accéder à la solution.

    J'ai un pc de supervision qui communique avec mon cRIO via TCP/IP.
    Mais j'aimerai faire un contrôle/commande d'un équipement qui possède son propre ordinateur.
    Selon la version du logiciel de supervision propre installé sur cet équipement, j'ai le choix entre série ou TCP/IP.
    L'équipement étant un système fermé, je ne suis pas sûr de pouvoir installé de logiciel supplémentaire.
    J'aimerai donc savoir si la communication TCP/IP nécessite également l'installation de Visa sur l'équipement ou si juste la connaissance de l'adresse IP et du port de communication était nécessaire au cRIO pour communiquer avec l'ordinateur de l'équipement?

  • Connection tcp labview problem with command.

    Hello ,
    I Have one qustion.
    I have card relay with communication TCP . 
    my commands  is char .
    simple
    char(254)
    char(108)
    char (0)
    I have array  [254,108,0]
    my communication is good with out error. but I dont know problem .
    why this command  not work ???
    this command  on the relay in bank 0  
    ncd relay card.
    Attachments:
    Communication TCP.png ‏37 KB

    maklevit wrote:
    Hello ,
    I Have one qustion.
    I have card relay with communication TCP . 
    my commands  is char .
    simple
    char(254)
    char(108)
    char (0)
    I have array  [254,108,0]
    my communication is good with out error. but I dont know problem .
    why this command  not work ???
    this command  on the relay in bank 0  
    ncd relay card.
    this is from the NCD site: http://assets.controlanything.com/Software/labview/RelayDriver.vi maybe you can adapt this to what you need?  It looks very similar...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Communication entre appli PC et appli RT sur myRIO

    Bonjour à tous,
    J'ai développer une appli PC capable de communiquer avec une appli RT tournant en startup.exe sur une cible myRIO-1900.
    Mon probleme se situe au niveau de la vitesse de communication entre ces deux applis:
    J'avais d'abord fais le lien grace à des variable partagées sur le réseaux avec l'option FIFO RT activée, mais malheureusement le premier ordre envoyé du PC vers le RT fonctionne parfaitement mais pour la suite, un retard assez grand viens s'imposer...
    Quelle pourrait etre la meilleur maniere de faire communiquer ces deux applis pour avoir un déroulement fluide ?
    Cordialement
    Nathan
    Résolu !
    Accéder à la solution.

    Bonjour,
    En général, j'utilise une communication TCP entre l'appli RT et l'appli de supervision. Cela demande plus de travail que les variables partagées mais donne plus de flexibilité, et pour moi plus de stabilité. 
    Cordialement,
    Rodéric L
    Certified LabVIEW Architect

  • CRIO : Envoie de données via wifi ( protocole TCP)

    Bonjour,
    Je suis débutant   en Labview et je suis entrain de développer une application sur Lavbview pour envoyer des données récupérées par la modèle d'acquisition CRIO à mon pc via wifi  et j'ai utilisé la Protocole TCP comme il indique le programme ci-joint , et j'ai une application sur mon pc qui écoute le trafic d'envoie et de réception, malheureusement je n’arrive pas à reçue  les données  sur mon pc.
    Votre aide SVP et merci d'avance 
    Bien Cordialement,
    Rafayello
    Pièces jointes :
    Envoie TCP.vi ‏50 KB

    Bonsoir Eric,
    Comme vous voyez  l'image ci-jointe j'ai une modem wifi et je veux envoyer les donnés récupérées par le cible CRIO à mon pc à distance (sans câble Ethernet) ,j'ai lu la tuto pour la communication TCP/IP et j'ai compris que je dois utiliser la fonction «ouvrir connexion TCP » et j'ai donné comme entrée l'@ IP de destination client ( mon pc ) et le num de port , et le relier avec la fonction «écrire TCP » en donnant les données comme entrée et enfin j'ai fermé la connexion par la fonction  «TCP Close ». Mais je ne sais pas  sur quel port  exactement je dois envoyer les trames TCP personnalisés et est ce que la démarche que j’ai fais  sur le VI pour l’envoie des trames TCP est correcte ou non ??
    Bien Cordialement,
    Rafayello
    Pièces jointes :
    DSC_0002.JPG ‏798 KB

  • File d'attente Écriture TCP (Via STM) :

    Bonjour,
    Je viens vers vous pour une petite question à propos des deux fonctions ci-dessous entre les sous-vis de file d'attente et de communication TCP :
    (c'est pas très droit, je pensais que l'extrait de vi allait tout mettre en ordre tout seul comme un grand ^^)
    Dans l'exemple des files d'attente, le sous-vi foruni pour la récupération des données de la file d'attente est toujours suivit par la fonction "Variant en données" car les données sont stockés sous forme de variant dans ce genre de file d'attente.
    Dans l'exemple de communication TCP (palette STM), le sous-vi d'envoie de données est toujours précédé de la fonction "Aplatir en chaine".
    Sachant que les données du serveurs seront toujours des chaines, c'est utile d'utiliser les deux fonctions du milieu ?
    Ne peut-on pas tout simplement connecter le variant à "aplatir en chaine" ?
    Ou au contraire, connecter la chaine en sortie de "Variant en données" au sous-vi tcp ?
    A moins qu'une chaine applati en chaine change quelque chose... mhh
    Résolu !
    Accéder à la solution.

    C'est bon, j'ai trouvé la réponse moi-même...
    Les deux fonctions sont nécessaires pour le bon fonctionnement du sous-vi d'écriture TCP.

  • End-of-communication channel error from client

    In my server oracle(oracle9i enterprices edition) is working fine but from client side i'm getting the following error
    *end-of-communication channel error
    But my network is working fine
    anyone can you give me the solution for this problem....?
    Message was edited by:
    user497084

    checkout TNSPING <service name> from cmd prompt
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\NJi>tnsping issl
    TNS Ping Utility for 32-bit Windows: Version 2.3.2.1.0 - Production on 25-OCT-06
    14:36:06
    Copyright , 1996(c) Oracle Corporation 1995. All rights reserved.
    Attempting to contact (ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=198.1.2.
    15)(Port=1521))
    OK (100 msec)

  • HELP!!! Listener problem on AIX 4.1 with oracle 7.2.2.0

    When I try to do "lnsrctl start" (or stop) the server give to me the error below:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ora7))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    IBM/AIX RISC System/6000 Error: 2: No such file or directory
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1521))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1526))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    On metalink, solutions are client side, but I have this problem on server side.
    I try to change host name to ip add, but problem persist.
    I try to reboot server (because I think the problem was the oracle istance) but the db works correctly.
    What can I do?
    thank u so much!!!
    pedro

    Hello Pedro,
    Please can you tell me if you resolved this issue you were having and how did you resolve this. I am having the same issue now....
    We did a restore to a different box and now cannot connect to the database and having same issues you described.
    Your help will be appreciated,
    Regards
    Avishkar Bandu

Maybe you are looking for