TCP IP multi client connection is not working properly

My Program is a client server software communication where the server collector data from a cDaq and sends data to the client then the client sends command to the server to execute. The problem I encountered is when I sedn a command to the server, It shows that the server receives it but it doesnt execute it properly. Please take it a look, and see where I went wrong. I have been stuck on this for a while. I will add the more subvis after this post 
Solved!
Go to Solution.
Attachments:
multiconnection-server-with waveformGen.vi ‏102 KB
Daqmx channels config.vi ‏36 KB
Waveform command receiver.vi ‏27 KB

It's missing Untitled Library 1.
What does  "not execute properly" mean?  Waht is it doing or not doing and what are you expecting it to do?
I see a problem in the TCP-IP subVI client.  Why are you enqueueing an element then immediately dequeueing it?  Then you proceed to to enqueue it again after the subVI ends.  But you have a parallel loop where you dequeue the element.  You've got a race condition.  One of two things could happen.
1.  The data gets enqueued and dequeued inside the subVI.  When it ends, it gets enqueued again in the same queue.  Then the parallel loop could dequeue it and work with it.  I'm guessing if this order of execution happens, it probably behaves properly for you.
OR.
2.  The data gets enqueued inside the subVI.  The parallel loop with the dequeue is sitting there waiting for something, dequeues the element and works with.  Then the dequeue inside the subVI sits there forever waiting for an element in the queue that will never come because now you've locked up the code.  The loop can't iterate to ever get more data in the queue.
You have a lot of strange queue operations going on in that subVI and another subVI in the parallel loop.  Why are you obtaining another reference to the queue, flushing it, then releasing that queue reference.  I'm not even going to try to guess how that would complicate the 2 scenarios I already listed above.
I suggest looking at more queue examples to understand how they work.  Any given queue should only have 1 dequeue operation, otherwise the dequeues will race to steal the data from each other.

Similar Messages

  • Since the last update to iTunes 11.0.3 (42) the airplay connection is not working properly , keeping breaking up

    since the last update to iTunes 11.0.3 (42) the airplay connection is not working properly , keeping breaking up, while the airplay works fine with my iPad and iPhone. Anyone has experienced the same? any fix available?

    Hi Erdelestre,
    Thanks for visiting Apple Support Communities!
    See this article for some tips about troubleshooting AirPlay:
    Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    Troubleshooting performance issues with AirPlay or AirPlay Mirroring
    If you are experiencing intermittent playback or significant network lag with AirPlay or AirPlay Mirroring, it could be due to a weak Wi-Fi connection, interference, or the distance between the Wi-Fi router and your iOS device, Apple TV or AirPort Express. Try the following suggestions:
    Ensure that other devices are not trying to stream to the same Apple TV at the same time.
    Turn off Bluetooth on your iOS device by tapping Settings > General > Bluetooth.
    Ensure that your Wi-Fi router is set up with the recommended settings for the best performance.
    Certain external devices, such as microwave ovens and baby monitors, may interfere with a Wi-Fi network. Try moving or disabling these devices.
    If possible, try to locate your Wi-Fi router in the same room as your Apple TV and iPhone/iPad.
    If your wireless and wired networks are the same, try connecting your Apple TV to the router via Ethernet instead of Wi-Fi.
    If the Wi-Fi router has an external antenna, check to see that is it connected properly and in good condition.
    Use the Wi-Fi network troubleshooting guide to resolve interference and other issues.
    Best,
    Jeremy

  • My Tcp/ip multi-client server is not passing the data string into the flatten to string vi

    I am using labview Multi-connection cleint and server to build my own multi-client server connection.
      The problem i am having is that the data does not get through the flatten to string vi. Would anyone be kind enough to tell me why is that happening? and what I do to fix it.
      Attached code . My goal is to send data to the client via tcp/ip and use the data to perform certain task.
      Thanks a whole lot
    Attachments:
    multiconnection-server.vi ‏39 KB
    multiconnection-client.vi ‏21 KB

    Instead, I decided to upload the code and recent mods I have made to it .
    see attached
    Attachments:
    multiconnection-clienttest.vi ‏43 KB
    multiconnection-servertest.vi ‏21 KB

  • SCAN (Single Client Access Name) not working properly

    We are in the process of upgrading to 11.2.0.1.0 RAC (4 nodes) running Grid Infrastructure and SCAN via DNS. The setup went great as did the data pump. However when trying to connect to the SCAN address I am getting an ORA-12154 error. My TNS entry is as follows:
    FMRQ=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=ncc1701rac-scan.dsd-k12.net)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVER=shared)
    (SERVICE_NAME=fmrq)
    If I change my Service_Name to be fmrq1, fmrq2, fmrq3, or fmrq4 which just so happen to be the SID's for each of my nodes I am able connect. I'm sure that I have missed something simple, but due to the lack of detailed documentation about how SCAN works I am not able to troubleshoot this on my own. Help is most definitely needed.

    Thank you for the reply. I have been trough that document several times trying to see if I missed anything. This all seems very straight forward which is why I am so confused as to why it isn't working. I have noticed that when I run "lsnrctl status" I see
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.6.22.41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.6.22.51)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "fmrq" has 1 instance(s).
    Instance "fmrq1", status READY, has 2 handler(s) for this service...
    The command completed successfully
    but when I run "lsnrctl status fmrq" I see:
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN4)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.6.22.34)(PORT=1521)))
    Services Summary...
    Service "fmrq" has 4 instance(s).
    Instance "fmrq1", status READY, has 2 handler(s) for this service...
    Instance "fmrq2", status READY, has 2 handler(s) for this service...
    Instance "fmrq3", status READY, has 2 handler(s) for this service...
    Instance "fmrq4", status READY, has 2 handler(s) for this service...
    The command completed successfully
    So by this should my service_name "fmrq" work correctly?

  • Connect Devices not working properly

    I just reinstalled my OS 10.4.6 and FCP Studio and log/capture isn't working correctly, nothing comes through from Canopus. When I print to video on my DVX I get audio and no video.
    Based on what others have posted, I reverted to QT 7.0.1, but this didn't solve the problem.
    Ideas?

    Yes - deleting the receipts tells Quicktime to do a complete install - leave nothing out...
    New Discussions ResponsesThe new system for discussions asks that after you mark your question as Answered, you take the time to mark any posts that have aided you with the tag and the post that provided your answer with the tag. This not only gives points to the posters, but points anyone searching for answers to similar problems to the proper posts.
    If we use the forums properly they will work well...
    Patrick

  • I have just upgraded to Lion and I now find that my VPN network does not work properly.  It worked fine with Leopard.

    I have just upgraded to Lion and now my VPN connection does not work properly.  It was working fine when I was using Leopard.  The VPN is My Private Network and we use it to link to BBC iPlayer when abroad.  It will actually connect to the VPN site and shows a UK IP address, but then when we try to load an iPlayer programme we get the message from the BBC that we are not in the country and, therefore, cannot access the site.  Any suggestions?

    Have a look at System Preferences, Accessibility, VoiceOver.
    (Command - F5).
    charlie

  • Bug (?) with Corporate Connectivity is (not) Working check

    Noticed something odd.  In situations where:
    Direct Access client is offsite
    their Internet access is via WiFi
    they first have to enter their access credentials through a web-based captive portal before access is granted
    then the Corporate Connectivity Check process malfunctions.  Have seen cases where, after accessing the captive portal and being authenticated, Internet access works on the client.  Direct Access then connects successfully.  This is confirmed
    on the server console, showing the client connected and the user credentials used.  The client is able to access internal resources just fine (e.g. network drives on file servers).
    But on the client itself, it still says Corporate Connectivity is Not Working.  The WiFi icon is showing an exclamation mark.  My belief is that this is caused by the client's inability to access Microsoft NCSI servers in a timely fashion.
    So it looks like the corporate connectivity checks are dependent on Microsoft NCSI checks.
    Can someone at Microsoft please look into this, as it is confusing our users (not to mention us guys in IT who have only just discovered this odd behaviour!).

    Hi Steven !
    Thanks a lot for your guidance !
    After I followed the steps, I found that the time out occurs when trying to resolve the internal domain name.
    The Windows Firewall was enabled on all profiles ( active on the public )
    There were no IPsec sessions established in the Security associations tab, so I enabled the audit policy of the IPsec as per your instructions.
    There is reoccurring error in the Security log :
    Date:          10/8/2014 10:08:49 AM
    Event ID:      4653
    Task Category: IPsec Main Mode
    Level:         Information
    Keywords:      Audit Failure
    User:          N/A
    Computer:      MyW8Client
    Description:
    An IPsec main mode negotiation failed.
    Local Endpoint:
     Local Principal Name: -
     Network Address: MyW8Client_Ipv6 address
     Keying Module Port: 500
    Remote Endpoint:
     Principal Name:  -
     Network Address: MY_DA_Servert Ipv6 address
     Keying Module Port: 500
    Additional Information:
     Keying Module Name: AuthIP
     Authentication Method: Unknown authentication
     Role:   Initiator
     Impersonation State: Not enabled
     Main Mode Filter ID: 180987
    Failure Information:
     Failure Point:  Local computer
     Failure Reason:  Negotiation timed out
     State:   Sent first (SA) payload
     Initiator Cookie:  9e636863e513b367
     Responder Cookie: 0000000000000000
    As far as I understand - the connection can not be established due to certificate error, which in my case is strange since my DA configuration is set to not use computer certificates, only Kerberos.
    I will keep digging but any additional tip/advice will be appreciated!
    Thanks again, Steven!
    P.S. Just noticed that the Event ID 4653 produce two types of "Failure Reason" - apart from "Negotiation timed out" I also get "No policy configured"

  • For  MTO scenario,multi level bom is not working sap afs pp

    Hi Experts,
                  We are implementing MTO scenario for our client. I have maintained  strategy group for FERT is 40 and strategy group for HALB and ROH are 20.
                   For single level BOM , requirements is not getting generates properly.
                  I would like to know What are all the settings is required to create AFS BOM.(single and multi level)
                   Please suggest me.
    Thanks & Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Automatic update of RemoteApp and Desktop Connections does not work (while manual updates with "update now" is working)

    Hello,
    on several Windows 7 Clients the update/refresh of the RemoteApp and Desktop Connections stopped not working automatically. There is a Update failed error. When we do an "Update Now" manually, it gets synchronized without problems.
    I am asking me if there is an issue with a stored Password as we Need to Change the Passwords regularily. The error is occuring for Connections to all RDS Servers (we have severals).
    Does Windows store the user Password in the Task Scheduler? If yes, does the schedule Task Password Change automatically after the Domain Password Change?
    Or what else could be the issue? The RDS Server and the certificate (Name the same as the URL) seems to be fine as not all Clients have this issue.
    Thank you for your help

    Hi,
    Thank you for posting in Windows Server Forum.
    By default it will automatically update the RemoteApp and Desktop Connections but if in any particular case it’s not happening then for a try you can restart the server and check the result again.  In addition you can try running below command and check
    the result. 
    Start-Process rundll32 -ArgumentList "tsworkspace,TaskUpdateWorkspaces2
    More information:
    Powershell to update "RemoteApp and Desktop Connections"
    If a task is registered using the Administrators group for the security context of the task, then you must also make sure the Run with highest privileges check box is checked if you want to run the task. Please check “Task
    Security Context” for more details.
    Hope it helps!
    Thanks,
    Dharmesh

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • Satellite Pro U200: VGA output not working properly when AC adapter was connected

    Hi,
    I have a problem with vga output. When I'm working on battery and connect my notebook to external monitor it's ok, but when I connect AC adaptor then start waving also bluetooth and wlan does not work properly. In other case when I remove battery from notebook and connect AC adaptor it works properly.
    thanks in advance

    As long as you use a CRT you should set the refresh rate new, at least 85Hz. Standard is 60Hz as far as I know, and that hurts in your eyes.
    The wireless lan behaviour is quite normal as long as your not right next to the access point. On battery power the wireless lan card reduces its energy consumption thus the connection will be poor if you dont have a perfect signal. You can turn this off in the iNTEL Pro/SET wireless software, where you can configure the adaptor. Try to change the powersafe mode to manual and full power, this should solve your problem.

  • My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network, restarting the iPad

    My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network , restarting iPad , ...

    The same story. No 3G after updating to 6.1.  Told my daughter temporarily not to do an update on her iPad with 6.01. We've exchanged SIMs. I inserted her SIM in my iPad - 3G appeared immediately. And my SIM in her iPad with ios 6.01 also WORKS FINE. We use the same provider - Megafon Moscow. After attempting to revert SIMs to original configuration, 3G disappeared on my iPad again. Don't know what's going on with SIM during the update to 6.1

  • Why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • My iphone 3gs is not working properly, when switched on it says 'Update Completed' as though it has just been updated. On the next screen it says to 'Connect to iTunes'. It doesn't, however, connect to iTunes and more often than not just resets itself.

    My iPhone 3gs is not working properly and hasn't been since about September of last year. When switched on (Quite often it won't even turn on) it says 'Update Completed' as though it has just been updated. On the next screen it says to 'Connect to iTunes'. It doesn't, however, connect to iTunes and just resets itself over and over until power is gone. Occasionally after switching on and off a few times it functions normally for a few hours and some times even a couple of days but eventually always turns itself off and goes back to the 'Update Completed' screen. Does anyone know what might be causing this and/or a way of fixing it?

    Morning JordenR,
    Thanks for using Apple Support Communities.
    You can resolve many restore issues using the troubleshooting steps documented here.
    For more information on this, take a look at this article:
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/ts1275
    Best of luck,
    Mario

  • Connecting my iphone to wall charger makes my iphone touch not work properly

    I have a iphone 3g and a orignal apple wall charger when i connect my iphone to charger it makes my iphone touch not work properly, but it charges the phone properly.the data cable is also working properly. So can any one help me out here.thanks

    Holy smokes, I thought I was losing my mind, but that's the exact same thing that's started happening to me since this whole 4.3.1 "upgrade" disaster started - hooking it up to the wall charger overnight, wake up in the morning and it's a brick requiring multiple attempts to restart.
    It's also randomly and spontaneously crashing - it'll be on the table or couch beside me, I'll catch movement out of the corner of my eye and look over and see a silver apple.

Maybe you are looking for

  • Error while accessing an external application...

    Hi, I am trying to configure a portal application by using SSO to get access to a deployed J2ee application. I have created the iView and mapped the user to the J2EE application. The Iview is working fine and i got the main page of the application. B

  • JMS message compression: How do you verify that the message was compressed

    Is there any way to verify that a JMS message which exceeds the "Default Compression Threshold" setting for the connection factory has actually been compressed. Does WL add any JMS property or header to the message to indicate that it has been compre

  • SFTP and rsync crashing, and taking down the whole system with them

    Hi everyone, Never before I had to resort to the forums, but now I've got a problem I can't seem to solve, no matter how hard I try. Maybe someone on the forums can help me? Both rsync and sftp (fish:// in konqueror) freeze my server, when I transfer

  • Encrypted L3 Communications Between LAP and WLC?

    Hi All, I am working with a client that wants to put LAPs remote to their WLC (a 4402). The rub is that the communications between the LAP and WLC must be secure even across their private WAN! I have a couple of resulting questions if anyone is able

  • Adobe Air button glitch?

    I am making an adobe air app. I use the standard buttons to change between the servral states that I have in the app. I am using some transitions to bounce the buttons and other components around. For some reason I need a double click to navigate bet