Where can one fine TCP socet server and client example VI's for Labview 6.0

We've inherited an older system containing two PXI systems and one PC.  The Labview -6.0 programs running on the three systems need to be rewritten from ground zero.
In hopes of saving a great amount of time, I am looking for a couple of TCP socket VI's that can be used to set up communications between the applications.  There doesn't appear to be a backwards compatibility from examples found in newer versions of Labview.
Thanks,
KGTang

kgtang wrote:
We've inherited an older system containing two PXI systems and one PC.  The Labview -6.0 programs running on the three systems need to be rewritten from ground zero.
In hopes of saving a great amount of time, I am looking for a couple of TCP socket VI's that can be used to set up communications between the applications.  There doesn't appear to be a backwards compatibility from examples found in newer versions of Labview. 
Why backwards compatibility?
Look in examples/comm/tcpex.llb. Those examples are still mostly unchanged in the newer LabVIEW versions too.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • How can a VI be both server and client?

    Hi, 
    I'm new in LabView and I'm trying to build a server and client VI using TCP/IP that runs in two computers. in my program I need both server and client VIs to communicate with each other which means I need both VIs to be server and client. I've tried using a case structure but it doesnt work. The only thing I achieved is a normal server/client system where the server sends a request and the client responses.But i need the client to send requests too.i have attached my VIs to this post.I would appriciate it if someone could help with this problem. 
    Thanks in advanced. 
    Rambaldi.
    Solved!
    Go to Solution.
    Attachments:
    Server-Client.zip ‏41 KB

    Do you really need a client and server on each PC? If you simply need that two to talk to each other they can once the client connects to the server. In most cases you only need one server.
    What Steve said about the not using the same port only applies to two servers on the same machine. A client must use the port the server is listening to and if the client and the server are on the same machine then they will both use the same port. However, only ONE of them is accepting waiting for connections on that port.
    In the code you posted you actually swapped the names. What you call the client is actually the server code and vise versa. In networking a server is an application that listens to an assigned port, accepts connections on that port and provides whatever services it has implemented. A client is an application that establishs a connection to a server. Once a connection is established the two applications can communicate in both directions. The applications themselves will define how the conversation should progress and whether it is a one way conversation or a two way conversation. You don't specify what you are trying to accomplish but I suspect you only need a single server.
    In TCP, every connection is defined by the source and destination IP addresses and the source and destination ports. The server uses a known port (FTP is port 21, HTTP is 80, telnet is 23, or some custom port in the user space beyonds the reserved ports) to listen for connections. The client will use the well known port of teh server and generally picks a random port for its port number. The LabVIEW VIs do this automatically. This is how a server and a client on the same computer can use the same port number. Two servers however cannot. The server application can spawn a child task allowing it to service multiple connections at one time though. Each connection will be unique though since the client's port number, address or both will change for each connection.
    OK, end of networking 101.
    Can you describe in a bit more detail what exactly you want to accomplish. Given that I could probably provide you with more information for your application.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Try to use one comupter as both server and client

    Hello, everyone, I am just trying to use my own computer as both server and client to test some codes about networking. For example, use the sample code in java tutorial which is used to test Echo server(code is listed below). Is there anything I have to do to set my computer, such as set my hostname or something like that?
    I am a pure newbie. And the purpose of this question is to test some code including socket on one PC without connect to internet.
    I have tried to change the name "taranis" in the following code to the computer name of my own PC, but it doesn't work, and said: Couldn't get I/O for the connection to: (my computer name).
    import java.io.*;
    import java.net.*;
    public class EchoClient {
    public static void main(String[] args) throws IOException {
    Socket echoSocket = null;
    PrintWriter out = null;
    BufferedReader in = null;
    try {
    echoSocket = new Socket("taranis", 7);
    out = new PrintWriter(echoSocket.getOutputStream(), true);
    in = new BufferedReader(new InputStreamReader(
    echoSocket.getInputStream()));
    } catch (UnknownHostException e) {
    System.err.println("Don't know about host: taranis.");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get I/O for "
    + "the connection to: taranis.");
    System.exit(1);
         BufferedReader stdIn = new BufferedReader(
    new InputStreamReader(System.in));
         String userInput;
         while ((userInput = stdIn.readLine()) != null) {
         out.println(userInput);
         System.out.println("echo: " + in.readLine());
         out.close();
         in.close();
         stdIn.close();
         echoSocket.close();

    Did you write the EchoServer and start it on your
    machine, listening on port 7?
    You can have the client and server running on the same
    machine or different machines, but they have to be
    separate pieces of software.
    Write a separate EchoServer class that starts up and
    listens on that port. Then start the EchoClient and
    make the connection.
    %yeah, I didn't wrote the EchoServer class. But I thought it is automaticly included and therefore has run once I start my computer.
    If I write a EchoServer class, then how should I set the host name of the EchoClient, just simply change "taranis" to my computer name (change "echoSocket = new Socket("taranis", 7);" to echoSocket = new Socket("(my comptuer name)", 7);"?

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • Where can one fine documentation on writing a HS driver?

    Hi,
    We'd like to write a Transparent Gateway driver for our product. From our initial research, it appears to be a reasonable task given the skills we have on-hand. Unfortunately, the HS configuration tables are only partially documented, and I have not found any specification on the TGxxx component(s) at all.
    We've considered writing an ODBC driver for the system, however, that add several layers of unnecessary complexity. Where can I find such documentation? Is there a developer license or agreement that is necessary?

    get in touch with your local Oracle office as you need to subscribe to the partner/developer program.

  • Where can I find FPGA replication tool (Set RIO Device Settings.vi) for LabVIEW 2013?

    I just upgraded to LV2013SP1 and came across a VI that now is broken in my project: Set RIO Device Settings.vi (which is a part of RIOSystemReplication2009.zip). Apparently this happened in 2009 as well for a different VI in the same collection of tools (see Where-can-I-find-FPGA-replication-tool-for-labview-2009. I tried the mentioned VIs in this article but both of them are broken). Note that the Replication and Deployment (RAD) Utility does not seem to support the functionality that Set RIO Device Settings does, so I still need to use the old one. 
    Since the VI is password protected I cannot attempt to fix it. Might be something as simple as a type that changed...
    Any help appreciated! 
    Rob
    LV2011,LV2012,LV2013

    Hey Rob,
    This problem has already been brought to NI R&D's attention, and they are working on a fix under Corrective Action Request (CAR) 454468. Unfortunately, until they fix the problem there may not be a way to correct the problem in the near future. The CAR is set for higher priority, so a fix could come shortly.
    Regards,
    Ryan

  • Where can i find the Weblogic Server 10.0 MP2 64-Bit for linux enviroment?

    Can anyone help me with finding the location of download for the Weblogic 10.0 MP2 64-bit for linux.

    Welcome to the forums !
    A simple search returns this link
    http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html
    HTH
    Srini

  • Time machine cannot find volume, error-1.  Where can I fine solution for this error? Have latest updates for Airport and TM, running Lion.

    Time machine cannot find volume, error-1.  Where can I fine solution for this error? Have latest updates for Airport Utility and TM, running Lion.

    See #C17 in Time Machine - Troubleshooting.

  • Hi, I have rented a movie from I tunes stores and downloaded it on my phone only. However when download completed , movie disappeared. Can anyone please tell me , where can I fine  my movie??

    Hi, I have rented a movie from I tunes stores and downloaded it on my phone only. However when download completed , movie disappeared. Can anyone please tell me , where can I fine  my movie??

    Did you tap the Videos app icon?  
    Swipe left of your Home screen then type in the name of the movie.

  • Hello.....after updating to Yosemite, i can't get my exchange mail to work.  It keeps saying can't connect to exchange server and asks for my password.  My mail is still working fine on android phone and ipad2.  Can someone help?

    Hello....after updating to Yosemite my mail isn't working .  Keeps saying can't connect to exchange server and asking for password

    I am having this exact same problem with my gmail account. Hopefully someone will have a remedy.

  • Where can I find the current time and date of Time Capsule?

    I have a home network consisint of 2 x Time Capsules and 1 x Airport Express.  All is working fine.  I would like to set up access control for one machine connecting to the network and I can see I can do this under Access Control on the Airport Utility.  My question is where can I find the current time and date setting for these devices? 
    I can set them to use the time.apple.com server to set the time automatically, but I can't find where to see the current time and date of the device.  The only place I can see reference to the time and date is on the logs and statistics under the Advanced tab of the AirPort Untility.

    I don't think you can change the time and date on the TC itself, it just connects to a time server (and you set your own time zone).

  • JAX-RPC: Web service where both server /and/ client are services?

    I'm considering a two-way Web service in an application that I'm designing and would appreciate any insight from prior experience.
    This will be a standard client-server application, where the server broadcasts messages and the client, in turn, can request further information about the messages that it receives (think RSS-style updates, but with more interaction). [strong]However[strong], instead of having the client poll the server for new messages, I'd like to have the client register itself with the server as a message listener. The server is currently implemented as a Web service on port X. I'd like the client to register itself with the server, and then receive messages on port Y.
    I'm considering a design like the following (note the directions of the inheritance arrows):
    ( Server class )  --<-- ( RemoteServerImpl class ) -->-- / RemoteServer interface /
           |
    ( Listener class ) --<-- ( RemoteListenerImpl class ) -->-- / RemoteListener interface /Some considerations:
    * In both cases, the client and server are broken out into an interface and two classes. The non-Remote classes implement all of the functionality. The RemoteX interfaces declare the methods that will be exposed via RPC, and the RemoteXImpl classes are empty subclasses of the non-Remote classes.
    * In order to register itself with the Server, the Listener must be passed in as a method parameter, and thus conform to the JAX-RPC specification for value types. However, value types can't implement java.rmi.Remote.
    * Only the Server and Listener know anything about each other.
    * This application can be run either remotely or locally, depending on how the Server and Listener are instantiated. For the latter, they're instantiated directly and the listener is registered with the Server. For the latter, the RemoteX interfaces will point to the service stubs.
    * I don't see an easy way to allow both the Server and the Listener to have references to each other (at least now without some casting magic), since one of them will have to conform to the value type specification, which requires that all of its fields must be valid JAX-RPC types.
    I've got the Server portions implemented and working, and am now going to turn to the Listener stuff. Can anybody see a fundamental problem with this design, or can suggest something better?

    Hi There,
    Because web services are fundamentally a Services-oriented architecture, and not an Object-oriented one, you are unable to pass objects by reference (only by value) hence the design decision to not allow rmi.Remote objects to be sent across the wire. The best way would be to abstract an object which does itself not represent a server, but a route to a server (lets call it ServerPointer). This must contain address, port, service info, etc.
    Now, in your Server class, create a factory method which takes a ServerPointer, and returns a reference to a
    remote server, e.g. protected Server createServer( ServerPointer p ) (using the necessary APIs to get such a reference)
    Hope this helps...

  • Windows Media Player no sound while playing a avi file in server and client connection using TCP/IP connection

    Hello there
    I have a problem with my windows media player while using server and client connection by using TCP/IP connection. So when I play a video using Windows Media Player in LabVIew there isn't any sound come out but when I'm playing a video by a Windows Media Player only the sound will come out. Can you help me solve this problem?
    I also upload the vi as the reference.
    The username for the client is ihsanhaikalz and the password is ganteng
    Thanks
    Attachments:
    Client Remote.vi ‏746 KB
    Server Remote.vi ‏1433 KB

    Hi ican,
    I was looking at your VI's but I cannot seem to pinpoint exactly where you are using Windows Media Player.  In order to more quickly assist you, could you please recreate this issue more concisely in a smaller set of VIs.  Also, were you able to get sound when you did not use the TCP/IP connection and simply played the files in LabVIEW?
    I noticed in a few places that you were using the Play Sound File.VI from the Graphics and Sounds palette.  Is that what you are refering to?  I noticed there that the file path that you have designated for the song is simply the song title.  Instead, this should be a path to where the song is located on your computer.
    Also, if you are planning on using Windows Media Player, have you considered using the ActiveX commands for Windows Media Player?  Here are a few examples if you are unfamiliar with this functionality.
    Example 1 and Example 2.
    I hope this helps!
    Kim W.
    Applications Engineer
    National Instruments

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Where can one go to change settings on what if any Email will result from user forum interaction?

    With in house iPad, iTunes in Mac Pro Mt. Lion and in Windows 8 Bootcamped, I have started getting email notifications for my questions in Bootcamp, iPad etc. forums and also for any answers I have contributed to.
    While I think this would be useful for a user's question, to cut back on forum access to check for answers, I do not want email for answers, suggestions I have provided.
    Where can one go to change settings on what if any Email will result from user forum interaction?

    https://discussions.apple.com/docs/DOC-3661

Maybe you are looking for

  • Why is Firefox crashing when I am playing You Tube favorites playlists and other You Tube videos?

    Lately within the last 2-3 weeks I have had a lot of crashes on my computer when I am running Firefox version 3.6.3 and trying to watch You Tube videos. It seems to only crash when I am on You Tube. It crashes even quicker when I am on Internet Explo

  • Using old Gateway monitor as second display for Late 2013 MBP?

    Hi all, I'm currently running OSX 10.9.4 on a late 2013 MacBook Pro with 15-inch Retina Display. I recently took an old Gateway LCD monitor (with DVI and HDMI ports) off of someone's hands and was wondering if I'd be able to use it as a second displa

  • Different colours shown in Lightroom.

    Hi everyone, Have been struggling with lightroom colours since i downloaded the trial version. Technical Info: All images used are Jpeg and nothing to do with RAW Monitor: DELL 2209WA Original profile: SRGB Calibrated profile named Spyder pro 3 Calib

  • Firewire to Thunderbolt

    I want to transfer footage from my digital camera to my new iMac, as there is no firewire port anymore what do I need? I transferred footage with no problem on my old Dual processor G5, what firewire connection do I need don't know how many pins that

  • Where is the batch description in the new Photo?

    Where is the batch editing description and title we used in iPhoto? I did find how to edit description in a single image, but where is the batch? I really need it in my workflow, having to expor lots of photo's on a daily basis to external corporate