How to combine TCP communication VI to other Labview VI

Hi, 
I am doing a project that is a sport timing system. In my timing system, I am trying to communicate with another computer by using TCP/IP while the timing system is running.
I am trying to combine it into a VI, I have tried to solve it by convert one of the VI to sub VI, but it doesn't work or 1 computer cannot run TCP VI and my Timing System at the same time.
Can any one know how to solve this problem ?
Attachments:
3switch 3-2-2012.vi ‏14 KB
timing system A 24-2-2012.vi ‏48 KB
timing system b 1-3-2012.vi ‏29 KB

Hi, 
timing system b is a sport timing system that like a stopwatch with 24 three-input switch( 0s,2s or 50s will added to the total time if turn on 1 of them).
TCP communicator active and passive are the other 2 VI. I want to combine  TCP communicator actives VI and timing system b' VI into a VI (that run in computer A).
And the TCP communicator  passive is run in another computer( computer B). 
about the stop button in timing system b's VI, the Vi can't function when I add a stop button in it, but it run normally once I removed the stop button. The timing system b is based on the NI tutorial or examples. I based on the example to design the stop watch function. 
Please help me how to solve it.
Thanks 
Attachments:
timing system b 1-3-2012.vi ‏29 KB
a TCP Communicator - Passive.vi ‏33 KB
a TCP communicator Active 1-3-2012.vi ‏31 KB

Similar Messages

  • TCP Communication - How can I remove the priority of which VI will run first?

    Hi. I would appreciate for any advise.
    I want to communicate (send data) to another PC using wireless radio. I am presently testing the shipped examples;
    TCP Communicator Active.vi and  TCP Communicator Passive.vi. I will run first the Passive.vi in the other pc (as
    indicated in the instruction) and then Active.vi on this pc.
    I want to remove or neglect the priority of which VI will run at first (either of the VI can run first).
    If in the case either one of the PC is not transmitting data, it will just trigger a LED or any kind of indicator.
    Can anyone helped me to do this? or is there any other example vi that will do it?
    Thanks a lot.

    Hi Mr Christian,
    i decided to use TCP/IP for peer to peer communication. I made an example VI of what i am doing but i cant make it right especially on the "Time out error". I would appreciate for any advise.
    Kindly see the attached VI's. The Crane 1 will be the Master or Server and Crane 2 and 3 are Slaves or Clients. Slaves VI will pass their data to Master while Master will distribute the data to each VI.
    As a rule, i have to run the Master or Server first and Slaves will follow.
    But as soon as i do this i am getting this Time Out error hence data are not being passed. I tried changing the values of time out constant but not lucky so far. I know that if i can fix this time out error, all the VI can communicate properly. I should see three moving cranes on each VI.
    Additional question; If all of the VI are running, and I intentionally Stop for instance Crane 3 (Slave), then it will show an error (LED) that Crane 3 data is not available. So far i can do this.
    But for instance I will run again Crane 3 (Slave), is there a way to RESET the connection programatically so that Master VI will once again accept the Crane 3 VI?
    Any advise I would greatly appreciate.
    Thanks a lot.
    Attachments:
    Crane 1 (Master).vi ‏40 KB
    Crane 2(Slave).vi ‏35 KB
    Crane 3 (Slave).vi ‏35 KB

  • How to combine two datarows (business component data) in BI Publisher

    Hi ,
    We are using BI Publisher in Siebel Environment.
    We have data coming from two business components (like from 2 diff tables)
    a) <?for-each:ssTest1?>
    b) <?for-each:ssTest2?>
    ssTest1 and ssTest2 are the business components
    We need to combine these 2 datarows (a&b) and show the data into a single combined data row for ex like <?for-each:ssTest1ssTest2?> and show all the fields in that.
    I'm not sure how we can combine these two data rows into a single combined data row and show the data.
    Any help from any one would be apprecated.
    Thanks
    PV
    Edited by: user8633002 on Oct 21, 2010 4:05 PM

    Hi sajid
    There was nothing more description about your issue in this site and I found an issue below is mostly like yours
    http://www.codeproject.com/Questions/855487/how-to-combine-two-table-value-in-rdlc-report
    In the issue above, if you want to show the two other tables in the report, I think you could combine the tables into one datatable joining on key. The link below show an example of a DataSet Helper from Microsoft about combine DataSets. Take note of
    the related content for other DataSet Helper examples. And then you could use the datatable in your RDLC.
    # HOW TO: Implement a DataSet JOIN helper class in Visual C# .NET
    http://support.microsoft.com/kb/326080/en-us
    In an alternative way, I think you could create a view in the database which combine your tables and use it in your rdlc.
    In addition, your issue is about asp.net and you could get more support in the asp.net forum whose link as below.
    http://forums.asp.net
    Best Regards
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How to combine several files into one?

    How to combine several pdf files into one?

    Combine Files is a feature of Acrobat Pro.  Because Reader Touch does not support the feature (yet), this is not the right forum for the question.
    Here's the Acrobat forum for Creating, Editing & Exporting PDFs.
    http://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs
    You can ask questions and get help from Acrobat experts there.  Good luck!

  • How to create a community in Portal?

    Hi all
    Can anyone tell me how to create a community? Is it same as normal collaboration room?
    Regards
    Aparnna

    Hi Aparnna,
    SDN is a very good example for a great community platform. It's build on the SAP NetWeaver Portal but without the use of collaboration rooms. It combines different Web 2.0 collaboration tools like forums, WIKI, blogs into a portal platform. SAP wants to deliver this capabilities with an integrated platform for the SAP NetWeaver Portal supporting rapid deployment and a centralized and scalable governance known from collaboration rooms. The product is called Collaboration Portal and has been introduced at this TechEd in Las Vegas. Some features are already released (like Web Page Composer or the new discussion forum) others will be delivered with the product ramp-up in Q1/08. General availability of the Collaboration Portal is planned for Q3/08.
    For more infos, check out this slides:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e00ddbb1-1d2e-2a10-75b0-add05c50ef00
    Best regards,
    Robert

  • How to combine Row members in Create Composit Forms in Planning 9301

    Hi All,
    I'm working on Hyperion System9 Planning 9.3.01. I have created two data forms for Actuals and Budget data. Wherein in Actuals form the actual data is pulled from the Oracle GL and I'm entering the budget data in my Budget Form.
    Now the question here is I wanted to combine these tow forms into a single form using "CreateComposite" option and I'm able to create the composite form for both actual and Budget form. But the composite form displays two separate forms side-by-side. Whereas I wanted to combine the Row members of both forms as both have same row members.
    Any help will be highly appreciated.

    Hi sajid
    There was nothing more description about your issue in this site and I found an issue below is mostly like yours
    http://www.codeproject.com/Questions/855487/how-to-combine-two-table-value-in-rdlc-report
    In the issue above, if you want to show the two other tables in the report, I think you could combine the tables into one datatable joining on key. The link below show an example of a DataSet Helper from Microsoft about combine DataSets. Take note of
    the related content for other DataSet Helper examples. And then you could use the datatable in your RDLC.
    # HOW TO: Implement a DataSet JOIN helper class in Visual C# .NET
    http://support.microsoft.com/kb/326080/en-us
    In an alternative way, I think you could create a view in the database which combine your tables and use it in your rdlc.
    In addition, your issue is about asp.net and you could get more support in the asp.net forum whose link as below.
    http://forums.asp.net
    Best Regards
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Error 63 in executable TCP communication VI

    Hi guys,
    I'm having some trouble with 'simple' TCP communication between two LabVIEW executables.
    It works fine if both VIs are on the same machine (localhost or 127.0.0.1, the computer with the development system), but if I compile and then run them I get error 63 ('Network connection was refused...') for the VI that contains 'TCP open connection'.
    I have read the forums and a number of NI KB articles, but I'm still not sure what properties and options I have to set. There doesn't seem to be a good how to guide.
    To keep things simple, I have built two example VIs that ship with LabVIEW 8.6 into executables: 'TCP Communicator - Active.vi' and 'TCP Communicator - Passive.vi' (C:\Program Files\National Instruments\LabVIEW 8.6\examples\comm\TCP.llb). Only modification: I have increased the timeout for 'TCP listen' from 10 to 25 seconds, to make the executable easier to use on slower machines.
    The example programs should work like an instant messaging system:
    - Start the 'passive' VI, this VI starts a TCP listener service on the specified port and network address.
    - Start the 'active' VI next, this VI tries to connect to the 'passive' VI over TCP.
    - When the connection is established, you can send and receive text messages
    That's how it should work and, as long as both VIs run in the development system, it does.
    In executable form however, it does not.
    I have a suspicion I need to add a number of entries to the ini file to allow access from everyone, not just 127.0.0.1
    Other troubleshooting suggestions I have read:
    - setting the 'Svr.TCPAccess' property at run-time
    - modifying 'Tools > Options > VI Server: Configuration'
    Can anybody give me some pointers on where to start debugging? For your convenience I have attached the executables and their ini files.
    Thanks in advance for your help.
    Paul
    Attachments:
    NI-TCP-comms.zip ‏593 KB

    Hi Akiel,
    Thank you for your reply. I did some more experimenting, here's what I did:
    I started the 'active' VI and immediately got error 63, whether or not the 'passive' VI was running (on the local machine).
    I pressed 'continue' in the error dialog and execution of the program stopped.
    I copied the 'passive' VI to another computer, turned of the Windows (7) Firewall and then ran it.
    I then changed the machine field of the 'active' program from 'localhost' to 192.168.1.17 (the address of the remote computer).
    I restarted the 'passive' program (because of error 56, time out)
    I restarted the 'active' program
    This time both programs behave as expected.
    Repeated the above experiment with the firewall turned back on, with both programs on the same machine.
    This time it does work without modifications
    Looks like Windows Firewall is probably to blame here, it's behaviour is unpredictable when it comes to whether or not it blocks connections.
    Now for the big challenge: getting the Windows 2008 R2 firewall to cooperate with LabVIEW. 
    I'll update this post when I have more information.
    Paul

  • TCP communication

    Hi everyone
    I would like to use TCP communication to send temperature sensor data and data from my USB camera to another client pc. I have  tried using remote panels with limited success because of  the bandwidth requirements for the camera. Using the VI attached can someone help me on how I can use TCP communication in this application. An illustration (or reference) would be greatly appreciated .
    Solved!
    Go to Solution.
    Attachments:
    nstflux01-1.vi ‏113 KB

    sent wrote:
    Ok, so here is my shot at what you guys are talking about. The sever and client see each other just fine but I cannot read any of the data. I think that  my problem is that I don't know how to read the scan correctly. Can someone show how to do that ?
    Do you know that format of your messages? Are they terminated with a specific character or pattern? A common way for messages to be sent via TCP is to have some type of message header which identifies the message type and generally provides the message length. If you data follows such a protocol you will need to get the specifics of the header. You would then read the header which will let you know how much more data you will need to read. The most basic header is simply the number of data bytes that follow. So the message would consist of a number (generally 4 bytes) followed by the number of bytes for the value of number.
    If you don't have a message header of any type another way that you can read variable length data (but it is not fool proof) is to read a single character. This is where you would have your overall timeout for receiving a message. If you don't receive a message in the designated amount of time you can perform what ever error handling you need. Once you a read a single character you then begin reading chunks of data (perhaps 1024 bytes at a time) and use a very short timeout. When a timeout occurs on this read that would be an indication that there is no more data. This type of approach only works when you have some time between your messages.
    The last alternative is if you have some type of message termination character or pattern. In this case you would read data until you see the termination character or pattern.
    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

  • Technology blocks TCP communication?

    My doubt is: How is the transmission of packets? For Socket?
    Someone there knows answer me?
    Ps: I am Brazilian I'm using google translator
    Tanks

    Hi Camilo,
    Your question is How LAbVIEW Transfer TCP packets? Is by socket?
    In the following link you can see what socket service LabVIEW uses to TCP Communications
    http://digital.ni.com/public.nsf/allkb/07E11647E145A62A86256B19006DCD1D?OpenDocument
    Regards,
    Abel Souza
    Engenheiro de Aplicações
    National Instruments Brasil

  • TCP communication and Remote Panel programming

    Hi all:
    I am developing a LabVIEW program which is to used remotely. I am planning on using Remote Panel Access or TCP Communication for my application. I would like to know why is a better choice and what are the factors I should consider in choosing one of these. Jsut for information, I am also using serial communication in this program using RS232 cable.
    Thanks in advance,

    I am not sure what the legal aspects are for the Run Time Engine.  You will have to dig deeper or contact NI if it will not let you load it.  From what I read is:
    Additionally, the Run-Time Engine allows your browser to display VIs that are embedded in Web pages.  There are two downloads that are available. You only need to install one of them. LVRunTimeEng.exe is a smaller download intended when viewing Remote Front Panels in Web pages. It does not contain the full run-time engine, but will allow some executables to run..............
    http://digital.ni.com/softlib.nsf/websearch/1F1EBEA6D03A67E6862570A400531F97?opendocument&node=13205...
    Yes, you can have an executable and that would be the preferred method.  Start small and work up to the final version.  Start by using your developer version and have it generate the WEB page.  Using the same computer you can view the page and take control using Microsoft Internet Express.  From there build it into an application, try it again.  When all looks good then put it on the server.  You are limited by licenses on how many WEB pages you can have running.
    Hope this helps,
    Matt
    Message Edited by mfitzsimons on 11-01-2005 10:17 AM
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • How to sync TCP/IP command with data

    Hello. I am trying to catch a TCP/PI data and write it to the file. I am using the TCP Communicator example as the base. My goal is to send a command and write to the file the response from the host. Few challenges. I can send multiple commands, but I only want to write to file after specific one and only once. It is the reason I have some logic in the send loop to enable write block. My problem is, by the time data comes, my enable changes value, so I only write the data that was on the bus from previous command. Or, I keep witing to file ove r and over.
    What is the best way to sync send a command and wait for the result for this command? Should I just use case structure since I do not need to listen host all the time, only after I sent  commands.
    Labview 8.2
    Win7
    Thank you
    Attachments:
    TCPIP.PNG ‏71 KB

    Do you have control over the data on both ends of the connection? If so, create a simple messaging protocol that will help you keep things in sync and give you the ability to recognize the commands. The simplest protocol would be to define your data packets to contain a message header and data. The message header would contain a message identifier identifier and the message data length. The header should be fixed length. This allows you to easily read the header and the data. The data will be whatever you need for each message type. The header message length will let you know how much data to read. Using this simple protocol the message reading would be very simple. Since each message will contain an identifier you can easily chose how to process the message and what actions you take. If you need to match responses with specific commands you could put a command sequence number in the message header. This would allow you to match the response with the specific command. You would need to include the command sequence number in the response.
    If you don't have control over the other side of the connection you will need to get the message format the device uses. That will dictate how to process the messages.
    Also, if your system is always a command/response system you do not have to have the read and write in separate tasks. You can send the command and wait for the response immediately afterward. You would not send the next command until you get a reposes. If you know you won't get a response for a specific command you would skip the read.
    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

  • How to use TCP Checksum Off-load in my network driver

    I am seeking infomation on how to use TCP Checksum Off-load to tell the Solaris 8 stack not to handle it for both receives and transmits (and let our NIC handle this compute-intensive task instead).
    There is mention that Sun GigabitEthernet Adapter cards, Release 1.1 supports Sol-2.6 use of NIC features: TCP checksum offload & byte swapping
    There are limited bits of info in include files. For example
    sys/strick.h indicates use of:
    inetcksum_t's ick_xmit
    stream.h has:
    struct datab's unsigned u16:16; /* used to store hw-calculated cksum
    #define STRUIO_IP 0x04 /* IP checksum stored in db_struioun */
    #define STRUIO_ZC 0x08 /* mblk eligible for zero-copy */
    strsub.h has:
    struct zero_copy_kstat
    Also /include/inet/tcp.h has tcp_sum for outbound.
    Thank you. -Weimin Tchen

    VenK7337,
    Could you show your python code. so we know what your are "writing" to the ethernet port?
    That way we can see what you are receiving.
    Parsing the incoming data (from the TCP-read) depends heavily on the device that sends it, and can not generically be described. LabVIEW has many byte (and even bit) manipulation functions to convert many different data formats to its own build in formats.
    So after the TCP listener is connected, you are constantly reading from the established connection (until it gets broken of course). More advanced example would be the internet toolkit if oyu have it.
    From the read characters (and I hope you designed a protocol with a clear starting character, ending character and maybe even a build in checksum) you parse the data and perform you action, and of course generate a reply. Again the internet toolkit is a good example. It parsed the input as it comes it, based on the HTTP format. Then generates the reply based on the request received.
    These days I would suggest not to use binairy encoded numerics. Try and use XML formatted data. Yes, it causes a lot of overhead. But typically this is not an issue and makes the code a lot more portable and maintainable. Also makes it easier to interface with other languages/platforms.
    Umless of course you are looking at Khz data rates, then XML is not th preferred choice.
    Hope this helps...

  • Does anyone know how to combine two apple ID's together?

    I have found out that I have two Apple ID's! One is for my apps on my iphone and the other is for iTunes.  Somehow they are set to different email addresses but are being sent to the same email address.  Does anyone know how to combine them, so I use just one Apple ID?

    This is my solution too.
      You see, what I also downloaded all the free apps I have on iPhone to this account I choose to use, so this way I didn't need to change accounts (of course it was on the iOS 5 times)

  • How to make a communication of two VIs from difference computers throught VI server?

    how to make a communication of two VIs from difference computers throught VI server?
    I have built the program which is attached at below. But it doesn't work. Can any one help me?
    Attachments:
    panel5.vi ‏82 KB

    Hi Barry,
    What do you mean "it doesn't work"? What kind of errors are you seeing? Also, you only specified the file name (data.vi) when opening a VI reference. Try specifying the whole path to the VI. Also, you might want to make sure you are able to ping your other computer from the start (to see if this is a LabVIEW issue or a network issue).
    Hope this helps,
    Travis H.
    LabVIEW R&D
    National Instruments

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

Maybe you are looking for

  • To project onto a large screen

    Hi, I would like to be able to project my photo slideshow on a large screen in an art gallery. What is the best way to save my file to do this. My photos are large at around 6000x4000, however they are all horizontal. The show itself is only around 8

  • Need to fix a Windows 7 Ethernet IP Configuration?

    Background There is a need to see, my MacBook Pro external or internal hard-drives while using Windows 7 Home Premium running from BOOTCAMP, from my MacBook using an Ethernet cable. While using the Mac OS X on both computers there is no problem with

  • My ipod wheel won't work

    I have an ipod nano 4th generation and it suddenly stopped working.  I tried restoring it using itunes and while the computer did the restore it hasn't fixed the problem.  the scroll wheel won't work, the screen keeps going dark (but not completely).

  • How to deploy the Wikis, Blogs and Discussions Sample Portlets ?

    Hi all, I'm trying to deploy Wikis, Blogs and Discussions Sample Portlets located at http://www.oracle.com/technology/products/webcenter/release11_demos.html (the demo at the bottom). I've successfully, deployed the portlet to WebCenter Portlet servi

  • Can't Upgrade to itunes 7.0.2

    When i go to the download screen and push download it just goes to the "thank you for downloading itunes" screen. I can't seem to get the save file screen up. Turned off pop up blocker, and all my window updates are good, same with the internet.