Help needed on TCP/IP Multi-port Client-Server

Hi all, I am trying to develop a client-server application to stream some data over a few random port numbers (defined by myself) to stream data over to the TCP server (i.e another computer) in LabVIEW. So far, I have created my application using the NI examples for "Simple Data Client + Server" and it works fine. I also understand that the "TCP Listen" VI is only able to listen for 1 TCP connection only and a way around this is to use queueing idea to receive & process the incoming data.The downside to the idea is that the "base port" (i.e initial port) needs to be the same (on every TCP client) with the TCP Server and it is not fit for the purpose I intended.
Basically on the TCP server side, i need to chart/monitor the data on different port numbers that is being streamed real-time from the one TCP client computer. Is this possible in LabVIEW?
Can anyone (incl. NI gurus) advise and point me in the right direction?
*lost*
Solved!
Go to Solution.

Hi
    http://zone.ni.com/devzone/cda/epd/p/id/2739 Here you can download that component.But you can also use TCP icons which is available in Data Commmunications>Protocals>TCp for communication and to read and write data use variant to flattened string. I have attached a small example where i will transfer a constant string to the host PC to check the link between client and the server. Hope this helps you.
Attachments:
TCP Comm.zip ‏47 KB

Similar Messages

  • I Need Information about  Open Source Java Client/Server Instant Messaging

    I need your valuable help and collaboration with the following issue:
    I need to know where can find a robust Open Source Java Instant Messaging Client/Server Application.
    I thank in advance for their valuable time. And for the attention and the collaboration lent to me.

    I was going to mention that right off, but since the OP is clearly unaware of the search engines on the Web, I thought I'd give him a hand. Jabber works pretty good - I tried it a while back and some of the clients were ... quirky.

  • Help-Is 9ias a necessity even for client server deployment of forms6i

    Hi
    Is 9Ias a necessity even for client server deployment of forms6i using developerSuite. I have been told that Oracle no longer markets Forms Server?
    Ganesh.

    No for client server deployment you don't need iAS.
    On the second issue Forms server (the bit of forms used to web deploy) is no longer sold stand-alone - it is part of the iAS suite.

  • Highlight text not working in multi-thread client-server application plug-in

    I'm developing a plugin application for my dissertation research on multi-application environment. I have an application server that communicate with the PDF document via plugin.
    The plugin acts as both client and server, depending on the situation.
    - Plugin as Server
             I have a multi-threaded winsock2 IOCP running to catch client connections and when a client connected, get the data from the client (set of words), and highlight these words in the pdf document.
    - Plugin as client
               I use 2 procedures, one to collect all the text from PDF and send to the server using tcp win-socket connection and another to collect data from highlight tool and send these text. both these are not threaded.
    Here's my question, because I want to listen to multiple client connections, when the plugin is the server, I'm running this procedure in a thread and then wait for clients to connect and use IOCP to serve the client connections.  When the client is connected I use the data coming from client to highlight some text in the PDF document. All of these functionalities are already implemented, but when I receive data from client and try to highlight text in the PDF document my application freezes up and stop working. I think this is something to do with the thread. I'm using _beginthreadex to start the server and then another _beginthreadex inside the IOCP worker thread.
    I can post the code, but before that let me know if you can see any problem in this situation. What I see from other posts is that acrobat is not multi-threaded.

    Thanks a lot for the reply.
    I guess I probably need some sort of a notification when the data is received and do a callback to the main thread to run the acrobat API. Is there anyway I can create custom notifications? Something like this,
    AVAppRegisterNotification(AVDocDidOpenNSEL, gExtensionID, ASCallbackCreateNotification( AVDocDidOpen, (void *)DocIsOpenedCallback), NULL);
    or should I use a custom action listener?

  • Help needed for CORBA over Http through proxy server[Very Urgent]

    Hi Friendz,
    I am new to J2EE. Right now I am learning RMI, Corba now.
    In RMI, to pass through Http to bypass firewall or through proxy sever, we can use either Http to port or Http to CGI/Servlet i.e., Http tunneling.
    In the same, I am running a simple corba application, i want my corba application to pass through my proxy server using http which is configured to address 127.0.0.1 and port 8118.
    How to pass my corba application through proxy server. please help me and it is very urgent.
    Is it possible or not, please let me know some comments about this topic
    Thanks in advance Friends for your help

    This is so extremely urgent that it needs to be asked multiple times.
    http://forum.java.sun.com/thread.jspa?threadID=762950

  • Help needed on Genesys Cisco Integration Using SIP Server

    We want to integarte our existing Genesys SIP Server with the Cisco Switches
    Need help on how to go for the integration

    This question is too vague to answer.  Please be detailed in your intended topology (what you're tying to communicate between) and what you mean by 'Cisco switch.'

  • Some help needed regarding Files and URLs on a server

    I don't get it - my applet works in a local directory, but not on a server. This has to do with the loading of files (I load an array of images to use, but when I attempt to use that array, it comes up with the error ArrayIndexOutOfBounds), but I can't understand what the problem is...
    I have a code that loads files (using File objects) from the current directory (a .jar file) into the program. I do not simply type in the file names - I set it so that the program searches for them based on a prefix in the file name. This works fine on my computer, and I never navigate to files outside of the .jar file. Why might this have a problem on a server? Would URL objects be more appropriate?
    Note: I alter the file base String in this way before loading it (this stands for the current directory)
    fileBase = applet.codeBase.toString().replace('\\', '/');codeBase is simply the applet's codeBase() method put into a URL variable. The replace statement is there so that there are no backslashes. And this works perfectly on my computer. Any help? Would it work if I used a URL instead? If so, how do I perform a search function with a URL (so that all the filenames within a certain directory are returned as Strings)?

    Thanks for the info, it helps a lot. You say there is no "practical" way to search for a file under a URL path. What I am trying to do is load a file that begins with a particular prefix. (eg. I wish to load a file called "funnyImage0011204924." However, the numbers after the prefix "funnyImage" are variable, and might require change in the future. Is it possible to load any file with the prefix "funnyImage," using URL methods? Would I need to create a new class? Is this impossible?)
    Please remember that I do not plan to go outside the .jar file, so there is no point in trying to get around server permissions and all that if it is unnecessary.

  • Help Needed in establishing connection between Kepware OPC server and UDS 4

    Hi All,
    I am in the process of establishing connection between Kepware OPC server and UDS 4.0,
    Can anyone guide me through the process of configuring UDS 4.0 to establish conection with the Kepware.
    Any standard documentation on UDS 4.0 will be of great help.
    Thanks in advance,
    Shyam

    HI Rajesh,
    I am creating OPC DA instance and when i try to browse for the OPC servers available in the machine, the list is blank. i am not able to view any OPC servers.
    Actuallt the Kepware OPC server and UDS are installed in the same machine.
    Can you plz through some ligh on this
    Regards,
    SHyam

  • Need xp performance tool to monitor client-server apps

    My Xp/Oracle 61 forms are causing the application to "stall" when many images are displayed. I need a tool that tells me what threshold is hit- to at least point me in the right direction. Is it memory, cpu, graphics cards, what? The XP supplied performance tools are not satisifactory. I need something that is a little more telling. Tell me Oracle, or users who have been where I am going , what is a good tool to isolate the "real" problem?

    Check out Process Explorer:
    http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx

  • Help needed turning LC II into Mac network server

    Just picked up 4 LC IIs that I would like to turn into Mac network servers. I would like to adapt the 80 pin blade style SCSI HDs to work with a B&W Rev. A. Need to learn more about hot swappable SCSI arrays.
    Comments welcome.
    Jim

    Jim-
    You have asked seven questions at once.
    Any Mac running 7.1 or later can share files using Personal File Sharing, without the need for AppleShare server or Mac OS X Server software. This is all most folks need for casual home or light office use. 7.5.3 and later has the easier to use Open Transport networking software, and 9.0 or later can most easily connect with Macs running 10.4 and later.
    LC-II have only narrow SCSI-1, and unless they have sprouted a PCI slot, cannot participate in the rest of this discussion.
    There are several classes of Wide SCSI busses. The one first implemented in the beige G3 with Server card is a Fast & Wide Single-Ended bus. It used the readily available and really cheap Apple/ATTO PCI PSC card. It is limited to the 3 to 4 feet of 68-pin high-tech-plastic-jacket cable already installed inside the cabinet, and adding any external drives made the cable too long, and the whole thing became unreliable. Many Single-Ended Drives can provide termination with a strap setting.
    Historically, HVD (High Voltage Differential) came next, but it was a false start. It is incompatible with everything. Stay away.
    The next class of Controllers and Drives used LVD (Low-Voltage Differential) drivers and receivers. These "balanced" or "push-pull" drivers and receivers are much more noise-immune. Speeds increase dramatically and cable length restrictions are (practically speaking) eliminated. Some Internal cables still use the flat high-tech-plastic-jacket cable, but are generally implemented with twist-and-flat cables. To use adjacent drive positions in a Blue & White G3, your cable must have more than 8 inches between connectors, mainly due to the bizarre way the cable must be folded to reach the drive connectors.
    A discrete captive terminator at the end of the cable is the norm. Occasionally, a terminator that is plugged into the last connector socket is used instead. All these terminators are generally capable of applying termination for either LVD or Single-Ended cables, and do so automatically. But they are too big to fit on a drive, and therefore almost no LVD-capable drives contain termination circuitry.
    Caution: If any drive on the cable is a Single-Ended drive, the entire cable drops back into Single-Ended mode, and previous cable length restrictions and speed limits apply!

  • Distributed Systems Help needed

    Hey,
    My group at uni is currently trying to make a program that runs via a multi-threaded client/server, however its not going too well.
    It needs to authorize the users as they log on and store their details, as well as having a chat lobby and running a game (storing its highscores etc).
    anyone got any advice? got any example code? ;-)
    currently we are looking at putting the server and the chat lobby together, while making the client and game do the rest of the work (the game is going to be P2P)
    i have included the spec for the project as a guide to the kind of help we need:
    - Authorize and Register (if not alredy authorized)
    - Store current information on clients (name, IP etc)
    - provide a method of transferring player details between server/client
    - Store scores from game on server (i.e. high score table)
    - connection stats (i.e. no of connections, player stats (i.e. wins/losses/games played))
    - the client needs to mirror these actions as well as allow the play between two other players
    we hope this helps in choosing the advice to give and we thank you in advance for everyones help.

    Sounds like a reasonable distributed app. My advice on how to proceed
    would be to
    1. define the data structures you will be using, along with the verb
    forms and actions you will need.
    2. define the modules in the system.
    3. define a configuration showing where these modules will be running.
    5. figure out what messaging is the best match for distributed comms
    given what is getting sent where and what the constraints are
    4. any place you go across VMs, define authorization for what messages
    are allowed and what data within those messages needs to be filtered
    6. test each module with canned input, deploy, test the UI etc.
    We use a framework generator (http://sourceforge.net/projects/sandboss) to
    avoid building in dependencies on the messaging technology, and to handle
    most of the grunt coding work. It's open source, and there's an example
    app that shows authorization in action. You can find more details on how
    we build apps at http://sandservices.com
    Hope that helps.
    cheers,
    -ep

  • Networking help needed

    Hi,
    I have two types of clients, a and[b] b, that need to pass messages between each other.
    Type a are searching for a suitable client of type b to begin communicating with.
    A server keeps a record of who has joined, and allows type A to look up type b in a shared datastructure.
    - a >I want to talk to a[b] b with x characteristics.
    - sends request to server.
    - server looks up in a shared datastructure sellers with this characteristic, and returns to a any that have this
    - a selects which out of the results returned from the server it wishes to communicate with
    - a then begins to communicate with the selected b, ideally I'd also like the server to check that the communicated messages are reasonable and within certain constraints... but I could avoid this and have the clients talk directly with each other if its a lot easier.
    So I have a basic understanding of what I need to happen, but I really don't know how to go about doing it.
    Does anyone know of tutorials explaining the best way to do this?
    Thanks!

    I understand that you need to develop some sort of client server based application.
    Before you get into thick of the things, you need to know what are requirements and what Java can offer.
    Add to that already available frameworks mostly opensource in abundance.
    You can probably use JDK to code the entire application (client/server). But in that case you would have to take care of threading issues etc.
    Or you can use a webserver to host the business logic(rules of who finds what and finally interacts or not) of your application(eg:- tomcat could be the webserver/container- you can have servlet(s)/JSP to handle the clients) to make the business logic better you can also use struts framework to design the server part of your networking quandary.
    The message between the server and client could be HTTP(I could think of that or you might have to come up with your laws for interaction between the client and server).
    Using a webserver for this has its own stigma attached(like performance) but it would almost erradicate the issue to handle multiple clients etc.
    This could be one of the worst suggestions.
    Cheers
    $

  • Client Server Authentication

    Hello Coders,
    I've written a simple multi threaded client server application. I'm having a bit of a problem developing the application and continually run into a brick wall. The major problem/s I have
    1. Is to get the client to register its IP address as a valid user along with the name of the user in order to join the service. I guess am try to implement logon/logoff etc.
    2. The application is an online library service.......what "Do I need to check on to" be able to store a number of books and serve and implement requests from the clients?
    I tried using the power of the web with no luck and failed to gained worthwhile educative direction. I kindly ask for your assistance. Thanks
    By the way, I'm user ServerSocket and don't have any Graphical User Interface implemented

    >
    1. Is to get the client to register its IP address as a valid user along with the name of the user in order to join the service. I guess am try to implement logon/logoff etc.
    >
    I'd recommend username/password, because the user should be able to login from another client, shouldn't he?
    >
    2. The application is an online library service.......what "Do I need to check on to" be able to store a number of books and serve and implement requests from the clients?
    >
    You have to think about the communication between server and client. This could be everything,... This could be a standard like JMS or even HTTP. You also could, as I recommend for educational purpose, write your own 'protocol'. You could implement it with simple Readers in Writers, as you find in the java.io package. Back in my apprenticeship, our little chat system was using Object In- and OutputStreams.
    If you have your technology for your protocol, you have to define it. If you use readers and writers, client could send something like "login username password" and the answer would be "login granted" or "login denied". Or using Object Streams you could send an object like "LoginIn" which holds user/pass and send back a LoginOut which holds something like a loginAccepted:boolean flag.
    To store data in a backend, you should check the DAO pattern: http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html. You can store data in files as serialized objects, xml, etc. Or in a database, such as MySQL -> In this case, you should check sun's jdbc developer guide http://java.sun.com/javase/6/docs/technotes/guides/jdbc/ and hibernate (http://www.hibernate.org).
    hope this helped...
    regards
    slowfly

  • Client Server using Internet [ask]

    I have a client server project who connect between LAN connection and now I want to upgrade it into internet connection. I have search several programs who has similar architecture but none is suitable. Could anybody help me out how to build basic client server which connect using internet connection?
    I have attach my previous program below, I really appreciated if anyone may modify it so be able connect trough internet.
    Solved!
    Go to Solution.
    Attachments:
    Client.vi ‏262 KB
    Server.vi ‏164 KB

    Hi,
    with your program, you seem to have the full control over your house ;-). Why it shouldn't work over internet as it is? You have TCP open, TCP close...in Internet, you simply have to use other IP-adresses as the local ones. So can you specify your question? Or is it a problem with your LAN-infrastructure, that you have to configure your router to have access from outside?
    I don't see why it shouldn't work over Inet...
    christian
    THINK G!! ;-)
    Using LabView 2010 and 2011 on Mac and Win
    Programming in Microsoft Visual C++ (Win), XCode (Mac)

  • Design Pattern for multithreaded client server program

    I asked this question in another post, but with other stuff, so I'll distill this one.
    I am creating a multi-threaded client server program (just for learning - a chat program at this point). I built the server and client in swing, and I'm wondering what the best design pattern is for this setup. Right now all the swing stuff is in the MyServer class. In that class I have a loop accepting client connections to the serverSocket and creating a new MyServerThread (threaded client connection).
    The problem is that all the work of creating input streams, interacting with the server, all that stuff is done in the MyServerThread class, but I want that text to be written up to the Swing objects - which is in the MyServer class. So right now in the MyServerThread class I pass the MyServer object into it, but I'm not sure if that is really the most robust thing to do. Does anybody have any suggestions as to how this should be done. If somebody has an article they'd like to point to I'll check it out too. But if it's just the run-of-the-mill multithreaded client-server article, I've read alot and most don't specifically address my question.

    Thanks for the reply Kaj, and I think I'll keep my design for now, since it's just quick and dirty. I've read the MVC concept a while ago and I'll revisit it again when I get more serious. But I have a question, why should I be using a callback interface, why an interface at all? And then make MyServer implement that interface...why not just pass MyServer to the thread object? Or is there something down the line that I did not forsee?

Maybe you are looking for

  • My droid razr m in emergency mode

    I can't get my phone to do anything it is in emergency mode.  Help!!

  • Missing Flash more on iPad than iPhone

    I don't want to start up a big discussion, but I have to say that in the year I've had my iPhone, I didn't miss Flash once. It has never been an issue. Now, with my new iPad (which I absolutely love!), I have missed not having Flash loads of times, j

  • Manual Flash Player Download

    I have a Dell Dimension 8200 with windows XP Pro (SP3). i would like to update to the latest version of flash player. Question: I would like to manually download the latest flash player so that I can install it after disconnectiing from the internet

  • Strange fonts in kpdf and amarok..

    The fonts in kpdf looks very strange.. its not on a straight line but wavy.. Acroreader shows them correct. And the fonts in amarok, doesnt seem to find correct fonts.. [14:20 root ~]# pacman -Qs fonts local/fontsproto 2.0.2-1 X11 font extension wire

  • Navigate between FPM  OIF Tabs

    Hi All I want to navigate to a particular tab on clicking a link on first tab.Iam using the FPM OIF configuration. thanks in advance chythanya