Some problems in TCP/IP communication between PC&DSP

I have programmed a VI for TCP/IP
communication between PC (Client) and DSP (Server), which could be downloaded
at below link. It just achieves some basic features, like send commands to DSP
to set some registers, and receive data or status from DSP. Additionally I programmed
a Sever vi in labview to test the client. You know the real Server is in the
DSP programmed using C language.
My problems are:
1.      
I don’t know how to add some “stop”
in the two VIs to get out of the loops, I tried but it didn’t work well.
2.      
I’m not clear to add some error
handles, you know when I stop the vi by pushing the round red button to stop the
vi, it turns out some error dialog about TCP/IP.
3.      
It is about the TCP/IP. when
the server writes data to connection ID, if the client doesn’t read them, then
where the data goes?
Attachments:
metaclient.vi ‏42 KB
metaserver.vi ‏30 KB

可以通过添加布尔控件来停止循环,同时可以通过变量的方式来同时跳出多个循环。
你的程序肯定存在什么问题,需要的是调试。

Similar Messages

  • TCP/IP communication between labview and microchip board

    Hi
    I have a microchip board which sends out data over the Ethernet. I have to read this data and use for further mathematical computations on it. So I decided to use some available examples on Labview. I find that all examples come as a pair, client-server. But in my case the board will be the server ( providing data continuously) and Computer with Labview will act as a client (Continuous receiving). Is there any readily available example on Labview for this purpose. If not, can you please suggest which example I need to modify for my purpose? Thanks
    Arvind

    arvind3tthiru wrote:
    Hi Greg, thanks for the reply. I am connecting to a PICDEM.NET2 board which is sending data through its ethernet port. I know the port number and the IP address of the board. I want labview to listen to this port and store the incoming packets. I am not sure how LABVIEW disintegrates the TCP packets and takes only the data out. Since I am not seeing anything on the LABVIEW client, so I am starting to think that TCP Client on LABVIEW may have some prescribed packet format which is not the format in which I am sending my data in. Please enlighten me if I am wrong. If you need more information, please tell me what you will need, I will provide you immediately.
    Thanks
    Arvind
    LabVIEW has no "predesribed" packet format, and it doesn't take packets apart. LabVIEW operates at the application level, so the OS is responsible for providing the data that's contained in the packet to LabVIEW. LabVIEW just sees the data in the packets.
    Have you verified that a connection is actually being made? You said that the LabVIEW should listen to this port. Did you create a listener on the LabVIEW side? Does the microchip code indicate a connection? You may want to use Wireshark to capture the packets to see exactly what is going on.

  • TCP/IP communication between two computers

    Hi,
    i wish to send data from computer A to computer B (one way only). I have set the IP address of computer A (sender) to be at 123.11.22.1 and the IP address of computer B (receiver) to be at 123.11.22.200. This is identical to the IP address that i have set (in computer A) for the TCP open connection.
    Attached are the two VIs that i am trying out with two PCs. I am not able to get it to work. Would appreciate if anyone can help to point out my mistakes? Thank you!
    Attachments:
    Untitled 1.vi ‏11 KB
    Untitled 2.vi ‏10 KB

    Hi Nathand,
                         I have built a program using  LabVIEW 2011 version .  I was trying to edit my front panel without running the VI. During editing the vi( move the control or indicator to other place on front panel) my labview program became very slow. It was taking 8-10 sec to change. 
    Also when I tried to save my vi it was showing the popup " LabVIEW:Cannot load Block diagram.  Cannot save VI test.vi" . Then I tried to close the VI and thereafter Labview become busy and not responding and shows the popup that "LabVIEW 11.0 Development System is not Responding" and finally my VI file get corrupted. Whenever I tried to open my VI, its shows the Popup "LabVIEW: Resource not found". File size of my VI was 1789 KB and became 912KB. I have attached my all error and popup.
    Why my VIs are getting corrupted? 
    Please help me to find the solution of this problem. 
    Thanks,
    Srikant Kumar
    Attachments:
    resource not found.jpg ‏23 KB
    System is not responding.jpg ‏39 KB
    CANNOT LOAD DIAGRAM.jpg ‏14 KB

  • Problems with MSA - IPC communication

    Hello.
    We experience some problems with MSA -> IPC communication on our Mobile Clients.
    The version of CRM is 7.0.
    The problem seems to be related to mobile clients switching status (online | offline | vpn connected | disconnected | etc).
    It is difficult to predict the behaviour of a general salesperson, but regardless when the mobile client is awaken and MSA is already running, the connection to the IPC should work, right ?
    I wonder if anyone else has experienced any problems related to this ?
    Our platform is Windows 7, we use Checkpoint vpn-client.
    From what i've seen during testing, the problem is not consistent, it arises at odd times but it seems to be related to Network/VPN connection.
    What we have done is edit the tomcat\conf\server.xml file to bind tomcat to localhost address: 127.0.0.1. I've not been able to reproduce the problem when binding tomcat to this address. However, i would really appreciate any feedback on this matter.
    BR Gerhard.

    Does the user has Admin rights for the laptop ?
    Rgds,
    Shobhit

  • Email links out of Practice Fusion are not active (as they are in IE), which they say is a problem with "something lost in the communication between the Flash engine and the browser". Does anyone have experience with this?

    This is a medical records system, cloud based. I use Firefox to get into the system, but any browser would work. Other than this problem, Firefox works fine (better than IE, in my opinion).
    Patient demographics include their email, which is hyperlinked and should go right to Outlook (my default email program). This works in IE, but nothing happens on the click when using Firefox as the browser.
    I queried Practice Fusion, which replied: In regards to your previous question about the email hyperlink in the patient information, it looks this is not something that can be fixed on our end right now. It is the web browsers' responsibility to handle these types of links, and there seems to be something lost in the communication between the Flash engine and the browser. I apologize for any inconvenience.
    Thanks for any help anyone can provide.

    See if this helps you:
    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • Tcp/ip communication problem

    hello,
    what i have is a tcp/ip communication problem.   the server needs to see the connection on the client side terminate before it can reply with data.  so i'm not sure the best way to
    solve this.  i tried to use a sequence structure to have the client open a connection  and then send data across the port and then terminate the connection.  the next part in the sequence would then open a connection and wait for the reply form the server.  i had this in a while loop. an example vi would be very appreciated

    Hi,
    You can search for TCP Communicator -Passive.vi and TCP Communicator -Active.vi examples in the example finder by selecting Help->Find Examples.
    Tunde A.

  • Problem communicating between Asynchronous BPMN processes

    Hello, I'm having problems communicating between two BPMN processes with an assynchronous interface.
    I have a main BPMN process (process A) and inside I have a Send Task to invoke a second BPMN process (process B). Both processes are inside the same JDev project.
    BPM Process B was created using the JDev wizard. I chose a asynchronous service and defined input and output variables. In the created process I verified the Start and End events (in the implementation tab) and both are defined corretcly. In the composite.xml Process B has 2 operations on the Exposed Services side (left side).
    In Process A, inside the Send Task implementation tab I have selected:
    Conversation Type: Initiates
    Properties
    - Implementation: Process Call
    - Process: I can browse and select Process B
    - Node: Nothing is shown on the LOV.
    If instead of the Send Task I use a Service Task I can select the Node (Start node of Process B).
    I am using versions 11.1.1.4 for both JDev and SOA/BPM.
    Can you help me? Am I doing something wrong?
    Thanks for your help.
    Edited by: 861727 on 26/Mai/2011 9:12

    Hi,
    The send and receive tasks perform similar functionality to the throw and catch message events. However, you cannot use the send task to invoke a process that is initiated with a message start event.
    http://download.oracle.com/docs/cd/E21764_01/doc.1111/e15176/model_bus_procs_bpmpd.htm#CJAHBHII, id 6.4.3
    Regards,
    Diovani
    Edited by: Diovani on 26/05/2011 14:50

  • I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication

    I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication.
    I use LabVIEW to read the data from serial communication then, i open the example (.vi) from Serial Communication - Advanced Serial Write and Read  from LabVIEW Example. BUT it have some error message that : Error - 1073807202 occured  at property node in visa configure serial port (instr).vi -> advance serial write and read .vi
    this error code is undefined. no one has provide a description for this code, or you might have wired a number that is not an error code to the error code input.
    I don't know why? please help me. thank you.

    When I copy that code into "Explain Error" I get: "VISA:  (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded."
    You may have a bad install of VISA or the wrong version of VISA loaded. Try re-installing VISA. You can get the latest version from the NI support site: http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument&node=1....
    Also ensure that you are not pointing the example towards a serial port that does not exist.
    Please let us know what you find and what gets this working for you.
         Rob

  • I have problems in communication between my notebook and Epson printer. It goes offline everytime I unplug it from the notebook and there is no way how to switch it on. Although the printer is recognized and scanning is not a problem. Any solution?

    I have problems in communication between my notebook and Epson printer. It goes offline everytime I unplug it from the notebook and there is no way how to switch it on. Although the printer is recognized and scanning is not a problem. Any solution?

    this is exactly the kind of response i expected, almost begged support to please not do this to me and yet there it is another meaningless, non helpful, standard template response to restart my apple tv.
    this does NOT work which is why i am contacting you. i have tried all suggestions about unplugging and restarting and nothing works.
    i live in an apartment and logon to the provided wifi wireless. so i do not have access to a router. however, management says they have talked with their provider and have been assured that the required ports are available.
    remember all the jokes about how bad windows was because the solution was always to re boot. funny huh? how is apple any different.
    i have been to the local apple care store and they are clueless, too.
    should we just end it here and you admit that i will not be getting any support from apple on this one? i got the ipad because my kids were such big fans. it is difficult for me to share their enthusiasm.
    at this point i am just curious about how you say you cannot support your own product so i can complete my file on this contact.
    thanks...sorry it was you who got this problem..

  • I´m having some problems with dates intervals. It´s not working well. I inserted the correct date between the right interval but the system refers to incorrect date? What shoul I do?

    Mensagem editada por: Mauricio Galletti
    It seens that there´s some problem with the specific date of 19/10/2014? Don´t know why? I just remove this date from the interval and the problem gone.
    What´s wrong with 19/10/2014?

    Hello Galdr,
    Welcome to the HP Forums.
    I see that after doing some updates, you've lost the use of switchable graphics in your Notebook. I will do my best to help you with this.
    You can try is to use the HP Recovery Manager. This will allow you to "recover" the Notebook and reinstall the original drivers. This document: Using Recovery Manager to Restore Software and Drivers (Windows 7), can assist you with that.
    Once the drivers are "reverted", then if you wish you can attempt updating.
    This first thing I will provide you in regards to updating is this document: Switchable Graphics on Notebooks Configured with Dual AMD GPUs. There is more general information than anything, but you may find it useful.
    When going to update you will want to use the website or the HP Support Assistant. These are the recommend ways to update. When using AMD's (or other OEM utilities) they will look for compatible drivers for the component, but not necessarily ones that work with your Notebook. What most likely happened, only one of the two drivers were actually updated.
    Here is a link to the newest driver provided by HP: AMD High-Definition (HD) Graphics Driver. Also, here's a link to using the HP Support Assistant: Using HP Support Assistant (Windows 7). (in case you wanted to learn more/use this method).
    I hope this is able to help you get back to "state 1", so that you may be able to update correctly and have full functionality of your switchable graphics again. Please let me know how this goes for you. Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Encrypting communication between an app that uses an ODBC/DSN (with ADODB) and SQL Server 2008 R2

    I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
    ODBC app to setup the DSN (on a Windows 7 PC):
    C:\Windows\SysWOW64\odbcad32.exe
    The  DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
    - WinNT authentication.
    - Client Config button: TCP/IP to <server-name>\<instance.-name>
    - Change to default db: <name-of-app-db>
    - Everything else is default setting.
    SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
    I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
    program then creates an ADODB.Recordset object and reads and displays a field from a table.
    Works fine.
    If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
    Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
    as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
    If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
    test program—why?
    What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
    to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
    No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
    Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
    I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
    -glenn-

    Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
    Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
    Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
    name mismatch, because I'm not using Trust Server Cert.
    So I load up my self-signed cert, and that works too.
    I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
    but apparently it does?
    I also ran into a problem with this:
    select c.session_id, c.encrypt_option, s.client_interface_name
    from sys.dm_exec_connections c
    join sys.sysprocesses s
      on c.session_id = s.session_id
    where s.dbid = db_id('MyDatabase')
    There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
    so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
    If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
    And I have to keep my fingers crossed that all the app I/O will still work properly after
    changing the driver. Probably a safe bet though.
    Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
    It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
    Thank for all the help!
    -glenn-

  • Is in PI7.1 possible asynchronous communication between SOAP and ABAPProxy?

    Hi,
    when method execute_asynchronous has disapeared since XI/PI 7.1, is
    there still way how to use ABAP proxy in asynchronous way?
    We need to build asynchronous connection SOAP->PI->ABAP_Proxy.
    In PI, both interfaces are defined as asynchronous (outbound for SOAP and
    inbound for ABAP Proxy).
    Despite of this fact, when message is sent, it is processed
    synchronous way.
    I have set breakpoint in my implementation of method for ABAP Proxy
    message processing. When message is sent and breakpoint is reached,
    whole connection stays open (between SOAP and PI and between PI and
    ABAP Proxy) and waits for processing method (the breakpointed one) to
    return. Only when processing method returns, is connection finelly
    closed.
    If i understand it correctly, this is synchronous behavior. In
    asynchronous behavior, as i understand it, should be connection
    between PI and ABAP Proxy of application server closed immediately
    after message has been delivered. This mean before my processing
    method is even called.
    The same could be said about SOAP and PI communication. Connection
    should be closed immediately after PI has received message. From
    definition of asynchronous communication of PI is obvious, that PI
    should receive message correctly and close connection to sender system
    even when receiver is unreachable. It should deliver message later
    when, receiver system is back on line. So why it keeps connection to
    sender system open while it waits for receiver?
    Why is this happening, when both interfaces are defined as
    asynchronous? Could be the reason for this, if APPLICATION
    ACKNOWLEDGEMENT is set on by default? If so, how can i change it
    to SYSTEM ACKNOWLEDGEMENT, or disable it at all?
    Or is this kind of asynchronous communication even possible since
    XI/PI 7.1 ?
    Processing of message we are sending can take some time, so we dont
    want connection pending open while waiting for finish of
    processing. Thats the reason why we have chose asynchronous model to
    use.

    Quote from How to Use the J2EE SOAP Adapter:
    "If you select Best Effort, the Web service client will receive a response
    message in the SOAP body. Otherwise, the Web service client will not receive a
    response message if no error occurs."
    "if no error occurs" - that is the problem. In either case he still
    waits if some error occure or not. I dont want it. Once PI has
    received message, I want the connection with sender to be closed. If
    there will be error in communication between PI and reciever, I want
    to see it only in PI log. That mean no notification to sender to be
    send about that error.
    Is that possible?

  • Communication between the computer and the disc drive failed

    The disc can’t be burned because because communication between the computer and the disc drive failed (error code 0x80020022). This computer has been out of the box for less than a month and this has been a growing problem.

    My problem was FIXED at the apple store..... there was something wrong in the system preferences and the genius deleted something that recreated it's self. Surely enough we we're able to burn a 600 mb dmg of nothing onto a few test disks. For anyone having this issue...it's NOT The media, it's some configuration issue within the computer's preferences. I'm telling you all to take your machine to the nearest apple store and have them fix it, if your machine is still under warranty the fix is free. There was no hardware issue, so the optical drive was not replaced.

  • Communication between BSP and Web Dynpro JAVA

    Hello All!
    I'm wondering whether the communication between a web dynpro application and a BSP application is possible.
    To ellaborate more, we have developped a web dynpro application acting as sender and we would like to develop a bsp application that displays a smart forms and which needs to listen to the web dynpro. We don't know exactly how to do that.
    Your help is really appreciated!
    Yours,
    Hajar

    HI
    GOOD
    I NEVER FACED SUCH ISSUES, HEREWITH I AM GIVING SOME LINKS, I HOPE THESE WILL HELP YOU TO SOLVE YOUR PROBLEM.
    http://sapfans.com/forums/viewtopic.php?t=168023&sid=1ed91bc0423642f19dc32b70ef3d37e3
    http://www.sap-press.com/downloads/sap_press_catalog_2006_summer.pdf
    http://help.sap.com/saphelp_nw04s/helpdata/en/a6/10b98ae47ef14799a918db66ee9477/content.htm
    THANKS
    MRUTYUN

  • Communication between classes ???

    Hi
    I am facing problems in establishing communication between java classes.
    My application consists of 4 java classes in following sequence.
    Sockets main() of java UI called JavaUI calls execute class;s func Execute()
    Client ---------------------� server---------------------------------------- -� java UI appln ------------------------------------------------------------------� execute button.
    When execute button is clicked ANT tools are called and executed. I want some mechanism by which my execute class notifies my java UI application about the successful completion of execution, which in turn tells my server and then server should acknowledge client about the same.
    How can I achieve this back ward communication in java.
    Message was edited by:
    javaUser10

    i have written a swing application in which does program does the following.
    1. Server Application (can be deploy on the server)
    a. checks an engine if it is still working by checking the database every minute
    b. if not working sends a string of message to a dedicated port
    2. Client Application()
    a. retrieves messages from the dedicated port
    b. engine has been stopped, client application can start the engine
    maybe you can do the same for your application

Maybe you are looking for

  • RESTRICTING AN IVIEW IN PORTAL

    Hi, I need to restrict an iview that it should not capture the changes and alsov not to save the data. it is an webynpro iview...... and it should throw a message while we trying to edit.... how it is possible....... help me in this........... waitin

  • Buttons in a window's titlebar

    How would you put buttons in a windows title bar using applescript in xcode? For example, the main window of the xcode project manager has buttons in the gray area that is connected to the close minimize and zoom buttons, and where the window's title

  • What did you think of iMovie '11?

    I am thinking about buying a new mac but I'm only really concerned about the movie making software. I have used iMovie a few years ago and I liked it for the most part but I want some personal feedback on it. What did you think of the new software? W

  • Hiding 'originals', showing 'events'

    It seems to me that I used to be able to look at photos divided up as events, not just as either events or photos. I also used to be able to hide the originals. I can't see to do either any more and it makes it harder to work with organizing my pictu

  • How to remove podcastinfo/lyrics from lyrics section on iPhone ? (see image)

    Hello, There are a few songs on my iTunes where there is a website written across the cover art where the lyrics should have been. Even after adding the lyrics this text will stay and the lyrics won't appear. Below I added an image to illustrate my p