TCP/IP error 63

Hello everyone,
I have attached two vi's that communicate between my HMI and FP module using TCP/IP. Is there any reason why my connection would not re-establish after being broken e.g loss of power to the PC or even pulling the the network cable out.
The error Code is usually 63 -
LabVIEW: Serial port receive buffer overflow.
LabVIEW: The network connection was refused by the server.
I have VERY little experience in TCP/IP and am not sure on how to overcome this problem. Any hints and tips would be greatly appreciated.
Thanks
Attachments:
HMI_TCP_Comms.vi ‏57 KB
RT_TCP_Messages_Manager.vi ‏77 KB

I have been testing your code (after having done some modifications to your code as I do not have a FP module available) on two PCs that both are connected to the same network switch. I notice that you use very short delays in the VIs especially if the network connection cannot establish after e.g. the network cable was unplugged. After unplugging the network cable from one PC and putting it in again (disconnection time was about 30 seconds) the TCP/IP connection was not re-established and I had to power off the switch and power it up again (The switch was dead.). Then the network connection was reestablished.
To make the HMI..VI smarter, I inserted a delay of 1000 ms that only executes in case of a TCP error. (The delay might be even too few depending on your net
work and the associated hardware.)
Your RT..VI is configured to create a listener for an incoming connection for 1000ms. I had to create a similar scenario than yours at the end of 2003 with a cFP-2020 and - to my experience - it typically will not reliably catch a listener in a that short timeout. If I remember correctly, none of the networking timeouts I specified on the cFP-2020 were less than 10000 ms and all of the networking VIs and functions that I used were placed in "background priority" VIs.
As you see: I do not have a solution for your scenario, but I hope that this was helpful.

Similar Messages

  • TCP/IP error 111 (connection refused)

    I encountered TCP/IP error 111 (connection refused) in my source DB. I ran view ggsevt.
    Source
    2013-09-06 17:47:41  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI c
    ommand (oracle): edit params mgr.
    2013-09-06 17:48:00  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI c
    ommand (oracle): stop extract ext1.
    2013-09-06 17:48:05  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, ext1.prm:  TCP/IP er
    ror 111 (Connection refused).
    Target
    2013-09-06 17:49:38  INFO    OGG-01677  Oracle GoldenGate Collector for Oracle:  Waiting fo
    r connection (started dynamically).
    2013-09-06 17:49:54  ERROR   OGG-01224  Oracle GoldenGate Collector for Oracle:  opening po
    rt to MGR from SERVER failed with 2:Could not establish host TCP/IP address.
    2013-09-06 17:49:54  ERROR   OGG-01668  Oracle GoldenGate Collector for Oracle:  PROCESS AB
    ENDING.
    Firewall is cleared, I can telnet from source to target with port 7809. Not an issue. Checked in another post where a user encountered error in /etc/hosts. My settings are perfect right.
    [oracle@db1 dirdat]$ telnet db4 7809
    Trying 192.168.56.101...
    Connected to db4.localdomain (192.168.56.101).
    Escape character is '^]'.
    Connection closed by foreign host.
    Source:
    > edit params mgr
    DYNAMICPORTLIST 7000-9000
    PORT 7809
    Any help is much appreciated.

    HI I have the same problem
    PLZ tell me the solution!
    $ telnet 10.80.16.214 7809
    Trying 10.80.16.214...
    Connected to 10.80.16.214.
    Escape character is '^]'.
    Connection to 192.168.0.178 closed by foreign host.
    2013-09-13 10:21:42  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:21:54  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:22:05  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:22:16  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:22:27  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:22:38  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:22:49  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:23:00  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:23:11  WARNING OGG-01223  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused).
    2013-09-13 10:23:22  ERROR   OGG-01224  Oracle GoldenGate Capture for Oracle, pum_2.prm:  TCP/IP error 111 (Connection refused); retries exceeded.
    2013-09-13 10:23:22  ERROR   OGG-01668  Oracle GoldenGate Capture for Oracle, pum_2.prm:  PROCESS ABENDING.

  • MAIL USING PL/SQL PROCEDURE TCP CONNECTION ERROR

    I was trying to send an e-mail using the demo-mail helper package which uses UTL_SMTP package and on execution, it gives the following TCP Connection error. Is it some something to do with mail configuration?
    This is the sample code I was trying to run.
    demo_mail.mail( sender => 'Me <[email protected]>',
    recipients => 'Someone <[email protected]>, ' ||
    '"Another one" <[email protected]>',
    subject => 'Test', message => 'Hi! This is a test.');
    And this is the error I am getting.
    class oracle/plsql/net/TCPConnection does not exist
    at "SYS.UTL_TCP", line 537
    at "SYS.UTL_TCP", line 199
    at "SYS.UTL_SMTP", line 102
    at "SYS.UTL_SMTP", line 121
    at "VNARAYA.DEMO_MAIL", line 159
    at "VNARAYA.DEMO_MAIL", line 119
    at "VNARAYA.DEMO_MAIL", line 105
    at "VNARAYA.SEND_MAIL", line 2
    at line 1

    The Java library needed by UTL_TCP is not created properly. You may just run $ORACLE_HOME/rdbms/admin/initplsj.sql as SYS to install it:
    cd $ORACLE_HOME/rdbms/admin
    sqlplus sys/<sys-password> @initplsj.sql

  • A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)

    Hi guys
    i have problem when i run my windows application exe in windows server 2003
    it give me this exception error :
    I using sql server 2005
    visual studio 2008
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
       at Sales.SalesClass.ShowSalesData(String ConnectionString)
       at Sales.Form1.timer1_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Sales
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Documents%20and%20Settings/administrator.ALTAWIREADYMIX.000/Desktop/Sales.exe
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    System.Transactions
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    System.EnterpriseServices
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    Why this error show and how to solve it
    if possible help me
    Why this exception show and how to solve it.
    Notes this exception not close my application and not affect in result show but i don't know why it show

    The problem can be caused by certain issues of long-running queries, which are reported improperly. Try increasing the timeout:
    http://support.microsoft.com/en-us/kb/555938

  • DP Process in abended state with WARNING OGG-01223  TCP/IP error 111 (Connection refused).

    Hi,
    I've configured ogg between primary & DR server. I'm continuously getting the following error in my primary server for DP process & sometimes for EXTRACT process after which process goes in abended state.
    WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    After starting the process manually, it comes in Running state. But this is frequent issue I'm facing for OGG configuration at my end.
    Please find the parameter details & report log details as follows:
    Primary Server Parameters:
    GGSCI (sevadm) 40> view params dpatm
    extract dpatm
    userid ggs_owner,password ggs_owner
    discardfile /home/oracle/ogg/dirdat/discard/dpatm_discard.txt,append,megabytes 1
    0
    rmthost 10.10.250.198 ,mgrport 7809,tcpbufsize 100000
    rmttrail /home/oracle/ogg/dirdat/rt
    passthru
    sequence atmswitch.*;
    table atmswitch.*;
    GGSCI (sevadm) 51> view params mgr
    port 7809
    dynamicportlist 7810-7830,7833,7835
    DYNAMICPORTREASSIGNDELAY 5
    --autorestart extract extatm,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract extcbs,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract dpatm,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract dpcbs,retries 500,waitminutes 1,resetminutes 600
    --autorestart replicat drrepatm,retries 500,waitminutes 1,resetminutes 600
    --autorestart replicat drrepcbs,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract extaml,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract extrm,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract extinb,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract dpaml,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract dprm,retries 500,waitminutes 1,resetminutes 600
    --autorestart extract dpinb,retries 500,waitminutes 1,resetminutes 600
    --autorestart replicat drrepaml,retries 500,waitminutes 1,resetminutes 600
    --autorestart replicat drreprm,retries 500,waitminutes 1,resetminutes 600
    --autorestart replicat drrepinb,retries 500,waitminutes 1,resetminutes 600
    userid ggs_owner,password ggs_owner
    purgeoldextracts /home/oracle/ogg/dirdat/*,usecheckpoints,minkeepdays 5
    GGSCI (sevadm) 52> view params extatm
    extract extatm
    userid ggs_owner,password ggs_owner
    reportcount every 2 hours,rate
    report at 01:00
    reportrollover at 01:15
    tranlogoptions asmuser sys@asm,asmpassword asmdba
    grouptransops 2000
    discardfile /home/oracle/ogg/dirdat/discard/extatm_discard.txt,append,megabytes
    10
    discardrollover at 02:00 on sunday
    exttrail /home/oracle/ogg/dirdat/lt
    ddl include all
    ddloptions addtrandata retryop retrydelay 20 maxretries 20,report
    sequence atmswitch.*;
    table atmswitch.*;
    Report log file for DP Process:
    GGSCI (sevadm) 39> view report dpatm
                     Oracle GoldenGate Capture for Oracle
        Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
       Linux, x64, 64bit (optimized), Oracle 10g on Apr 23 2012 07:44:10
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2015-03-19 16:54:56
    Operating System Version:
    Linux
    Version #1 SMP Tue Mar 16 21:52:39 EDT 2010, Release 2.6.18-194.el5
    Node: sevadm
    Machine: x86_64
                             soft limit   hard limit
    Address Space Size   :    unlimited    unlimited
    Heap Size            :    unlimited    unlimited
    File Size            :    unlimited    unlimited
    CPU Time             :    unlimited    unlimited
    Process id: 13260
    Description:
    **            Running with the following parameters                  **
    2015-03-19 16:54:56  INFO    OGG-03035  Operating system character set identifie
    d as UTF-8. Locale: en_US, LC_ALL:.
    extract dpatm
    userid ggs_owner,password *********
    2015-03-19 16:54:56  INFO    OGG-03500  WARNING: NLS_LANG environment variable d
    oes not match database character set, or not set. Using database character set v
    alue of WE8ISO8859P1.
    discardfile /home/oracle/ogg/dirdat/discard/dpatm_discard.txt,append,megabytes 1
    0
    rmthost 10.10.250.198 ,mgrport 7809,tcpbufsize 100000
    rmttrail /home/oracle/ogg/dirdat/rt
    passthru
    sequence atmswitch.*;
    table atmswitch.*;
    2015-03-19 16:54:56  INFO    OGG-01815  Virtual Memory Facilities for: COM
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /home/oracle/ogg/dirtmp.
    CACHEMGR virtual memory values (may have been adjusted)
    CACHESIZE:                               64G
    CACHEPAGEOUTSIZE (normal):                8M
    PROCESS VM AVAIL FROM OS (min):         128G
    CACHESIZEMAX (strict force to disk):     96G
    Database Version:
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Database Language and Character Set:
    NLS_LANG         = ".WE8ISO8859P1"
    NLS_LANGUAGE     = "AMERICAN"
    NLS_TERRITORY    = "AMERICA"
    NLS_CHARACTERSET = "WE8ISO8859P1"
    2015-03-19 16:55:26  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:56:08  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:56:49  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:57:30  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:58:11  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:58:52  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 16:59:33  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 17:00:14  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 17:00:55  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 17:01:36  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    2015-03-19 17:02:17  WARNING OGG-01223  TCP/IP error 111 (Connection refused).
    Source Context :
      SourceModule            : [er.extrout]
      SourceID                : [/scratch/aime1/adestore/views/aime1_adc4150256/oggc
    ore/OpenSys/src/app/er/extrout.c]
      SourceFunction          : [tcp_send_data]
      SourceLine              : [1352]
      ThreadBacktrace         : [9] elements
                              : [/home/oracle/ogg/libgglog.so(CMessageContext::AddTh
    readContext()+0x1e) [0x2ba1dd1587de]]
                              : [/home/oracle/ogg/libgglog.so(CMessageFactory::Creat
    eMessage(CSourceContext*, unsigned int, ...)+0x2cc) [0x2ba1dd154c7c]]
                              : [/home/oracle/ogg/libgglog.so(_MSG_ERR_TCP_GENERIC(C
    SourceContext*, char const*, CMessageFactory::MessageDisposition)+0x31) [0x2ba1d
    d139daf]]
                              : [/home/oracle/ogg/extract(tcp_send_data(extract_def*
    )+0x2b3) [0x5116e1]]
                              : [/home/oracle/ogg/extract(flush_tcp(extract_def*, in
    t)+0x15c) [0x512350]]
                              : [/home/oracle/ogg/extract(RECOVERY_initialize()+0x37
    1) [0x5239a1]]
                              : [/home/oracle/ogg/extract(main+0x4a5) [0x56b335]]
                              : [/lib64/libc.so.6(__libc_start_main+0xf4) [0x333621d
    994]]
                              : [/home/oracle/ogg/extract(__gxx_personality_v0+0x382
    ) [0x4e754a]]
    2015-03-19 17:02:58  ERROR   OGG-01224  TCP/IP error 111 (Connection refused); r
    etries exceeded.
    2015-03-19 17:02:58  ERROR   OGG-01668  PROCESS ABENDING.
    Please guide me on this.
    Regards,
    Simon P

    - check your remote host server is up and running.
    - check mgr process is up and running on target site.
    - try this and see if network connection is OK..
    telnet 10.10.250.198 7809
    - try to copy a file (scp) from source to target (take a dummy file; size bigger than tcpbufsize)
    - check ggserr.log file on target; you might see if there are any issues with server/collector port allocation/timeout.
    hope this helps...
    Thanks.

  • Error in Calculation Script TCP IP Error

    <p>Hi all,</p><p> </p><p>I am getting a strange error while running a calculation scriptthrough esscmd.</p><p> </p><p>When i run a calculation script from ESSCMD i get"Network Error: The client or server timed out waiting toreceive data using TCP/IP. Check network connections. Increase theNetRetryCOunt and/or NetDelay values in the ESSBASE.CFG file.Update tis file on both client and server. Restart the client andtry again"<br><br>Actually the script was running fine last week but since 3 daysit's throwing an error.<br><br>The scripts are running from ESSCMD and there are 5 calc scriptsruns. First and Second goes through fine and execute with sts id =0. Starting 3rd calc script it is throwing this error.<br><br>All calc scripts starts with<br>//ESS_LOCALE English_UnitedStates.Latin1@Binary<br>SET CACHE HIGH;<br>SET MSG SUMMARY;<br>SET NOTICE DEFAULT;<br>SET UPDATECALC OFF;<br>SET CALCPARALLEL 7;<br>SET CREATEBLOCKONEQ ON;<br><br>1. Calc Script 1 is about 1988 lines. - Executed successfully<br>2. Calc Script 2 is about 1988 lines. - Executed successfully<br>3. Calc Script 3 is about 600 lines - Throwing TCP/ IP Error<br>4. Calc Script 4 is about 600 lines - Throwing TCP/ IP Error<br>5. Aggregation script - Throwing TCP / IP Error.</p><p> </p><p>Any idea... ??</p><p> </p><p>Thanks in advance..    <br><br><br></p>

    While there is a possibility that you are seeing a real network error, you might want to run a couple of checks if you are running the script that runs the calc on a different unit than the server. If it is the network, changes to the NETDELAY and NETRETRYCOUNT will help.<BR><BR>But more likely, it is a problem with the essbase server and the specific app process. I'd suspect that the calc and other things happening are swamping the memory and/or overloading IO.<BR><BR>Take good look at your cube, it's block sizes, and the nature of the calcs you are running. How many blocks are needed to do a particular calc, and will those all fit in memory at the same time?<BR><BR>You may need to modify your SET MSG and SET NOTICE parameters so that you can identify the specific step where your calc is having problems. Those are long calc scripts, you may find it useful to break them into smaller modules for testing to determine what the problem is. Also, you need to look at the server and app logs to see if there are any hints there.<BR><BR>The "Network Error" message is quite non-specific; it only says that the communication has failed, not why. In my experience, it more often happens when a an app or the main server process freezes up, and it may actually take a shutdown and restart of at least Essbase if not the whole server.<BR><BR>As an additional note: Is the database fragmented? All apps benefit from a periodic export, reset, reload routine to defrag the database.

  • TCP read error 57

    Hi, everyone:
    In my graduation design,  I need to acquire the data of biscuits from a video and then send it to a VC program. I've achieved the sending process correctly and the program can receive the data. But when I wanted to send a message from the VC program to LabVIEW, the TCP  read error 57 occurred.
    The TCP write VI and the TCP read VI are in different loops, and they use the same refnum. In the picture, the case structure in top while loop is the data acquiring program so I don't show them.
    Can anybody teach me how to correct this program so it can receive data from the VC program? Thanks and forgive my poor English!

    Hi,
    Today i haven't any problem on the connection. The file is not changed. I think the system held some processes those use the tcp connection. I didn't think to watch in the task manager. It is the only explanation that I can pop out. Anyway I put above the program that gave me that problem. Please, check if the application is bad-built and suggest to me an alternative. Thanks
    The block linked over is send-receive packet, opened above. In the first frame the block above send a message on the tcp connection, then it waits 1 second, finally it waits for the answer on the same connection (8 seconds).
    The tcp reading block returns error 57. No other request on the same connection is active. I let the timeout of the block to end every 50 ms, I ignore error 56 (timeout) end I terminate the loop execution if:
    - a message of a least 5 character is received (application protocol specification).
    - the timeout of the receiving block ends (8 seconds)
    - a tcp error different from 56 turns out.

  • Archiving to SAP Content Server/MaxDB: TCP/IP errors when deleting in paral

    Dear experts.
    We are struggling to get the optimal setup for archiving to SAP Content Server using MaxDB. After running one or more archiving jobs for a few hours we suddenly loose connection to the Content Server, and we need to restart the content server before continueing. We long thought it was the logspace which was running full, but this was eliminated. Now it seems as the error occurs when 4 or more deletions jobs is running in parallel. (Write->Store->Delete).
    The run-times on a typical archiving job for about 3 GB data would be W: 3000sec S:40sec D: 12000sec. In general the delete job takes about 3 times the write-job.
    Everything seems fine until one suddenly get the TCP/IP error after some heavy archiving jobs.
    Have anyone experienced anything like this, and are there any good ideas on how to avoid this?
    Thank you very much for your inputs on this.

    We were running 3 parallell delete jobs yesterday, and it all went fine until I started the 4th job, then all jobs stopped immediately. The KNLDIAG file at the exact time of the problem looks like this:
    2008-10-08 22:57:48      0x918     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0025', UKT:8
    2008-10-08 22:57:48      0x918     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0003', UKT:8
    2008-10-08 23:31:14      0x918     19637 CONNECT  'vreceive', COMMAND TIMEOUT, T74
    2008-10-08 23:31:14      0x914     19637 CONNECT  'vreceive', COMMAND TIMEOUT, T72
    2008-10-08 23:31:14      0x918     19651 CONNECT  Connection released, T74
    2008-10-08 23:31:14      0x914     19651 CONNECT  Connection released, T72
    This morning I just ran another test with 2 jobs which also failed, and the two job logs contains:
    09.10.2008 07:06:41 Archive file 000851-001EC_PCA_ITM is being verified                           
    09.10.2008 07:16:54 Archive file 000851-001EC_PCA_ITM is being processed                          
    09.10.2008 07:16:55 Starting deleting data                                                   
    09.10.2008 07:36:28 Connection to http://192.1.4.5:1090/ContentServer/ContentServer.: TCP/IP error
    and
    09.10.2008 07:13:30 Archive file 000851-010EC_PCA_ITM is being verified                                 
    09.10.2008 07:20:55 Archive file 000851-010EC_PCA_ITM is being processed                                
    09.10.2008 07:20:56 Sletting av data begynner .                                                         
    09.10.2008 07:39:28 Connection to http://192.1.4.5:1090/ContentServer/ContentServer.: Time limit exceeded
    and the KNLDIAG file looked like this:
    2008-10-09 07:11:34      0x914     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0016', UKT:7
    2008-10-09 07:11:34      0x914     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0023', UKT:7
    2008-10-09 07:11:35      0x90C     53040 SAVPOINT (3) Stop Conv I/O Pages 2119 IO 265
    2008-10-09 07:11:35      0x90C     53071 SAVPOINT B20SVP_COMPLETED: 689
    2008-10-09 07:12:26      0x918     19633 CONNECT  Connect req. (T74, Node:'', PID:4272)
    2008-10-09 07:12:26      0x918     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0001', UKT:8
    2008-10-09 07:12:26      0x918     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0015', UKT:8
    2008-10-09 07:12:26      0x918     19617 DEVIO    Single I/O attach, 'D:\sapdb\SDB\sapdata\DISKD0004', UKT:8
    2008-10-09 07:12:26      0x918     19651 CONNECT  Connection released, T74
    2008-10-09 07:12:35      0x918     19633 CONNECT  Connect req. (T74, Node:'', PID:4272)
    2008-10-09 07:12:35      0x918     19651 CONNECT  Connection released, T74
    2008-10-09 07:12:46      0x918     19633 CONNECT  Connect req. (T74, Node:'', PID:4272)
    2008-10-09 07:12:47      0x918     19651 CONNECT  Connection released, T74
    2008-10-09 07:31:47      0x914     19637 CONNECT  'vreceive', COMMAND TIMEOUT, T72
    2008-10-09 07:31:47      0x914     19651 CONNECT  Connection released, T72
    2008-10-09 07:47:20      0x914     19633 CONNECT  Connect req. (T72, Node:'', PID:4272)
    2008-10-09 07:47:20      0x914     19651 CONNECT  Connection released, T72
    2008-10-09 07:49:01      0x914     19633 CONNECT  Connect req. (T72, Node:'', PID:4272)
    2008-10-09 07:49:01      0x914     19651 CONNECT  Connection released, T72
    2008-10-09 07:49:27      0x910     19637 CONNECT  'vreceive', COMMAND TIMEOUT, T70
    2008-10-09 07:49:27      0x910     19651 CONNECT  Connection released, T70
    We have not yet looked at the tips regarding the windows errors, but will do that when we get the possibilty. In the mean time; do you read anything from this above? It looks like when several jobs are crashing at the same time there is one which has the "Time limit exceeded" and the rest TCP/IP error.
    Could it possibly be the MAXUSERSESSIONS parameter, or are you still leaning towards something outside the database?

  • TCP DENIED Error

    I am getting TCP Denied error even after bypassing the URL d4bacpiwuo4wu.cloudfront.net & cloudfront.net under Web Security Manager -- > Bypass Settings à Sources/Destinations to Bypass Proxy. This is from one of the mobile application through which we are getting below issue.
    Please find the logs below.
    1413779230.845 0 10.238.162.108 TCP_DENIED/307 0 GET http://d4bacpiwuo4wu.cloudfront.net/json/categories/20141018175221?Expires=1413779616&Signature=AM2Q79AjvFARlSBbwWhCP6Y~2RB1L-GDYKPbMGs2u-9Oo9wtSoFRewGv~6FLI2dcZ5YaEwJygJQf3MhSZLdljlBxoXPrLrLyG0OKidmBCGrpMhtIaK-zKxLPbgIRqYNAB37ns6z1CPk~IUcPGjolzyL5gLjoZETxo54jkieH5kbr57ufXmtiRiacc2sOx~6ioYbiwZ6Fdld7TxayiyW5vLgUDsfTMAgNH3g8s5ci4VAtS2g4fey6yLy3RQ4rv0AMqBhCbHoURTpWyd-XH6FVqyvWcLR1SgSKPCS~fQiWT-TFYTeILqWYEQdAJLg6H8MP8GM9-p-GowCqpojyE6d3og__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-Test-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.848 0 10.238.162.108 TCP_DENIED/307 0 GET http://d4bacpiwuo4wu.cloudfront.net/json/rewardoffers/20141018175221?Expires=1413779617&Signature=BSj2JRPGeyhmtglYHZ2YZW6nX8UZ1SlBh3k~Qei6IdXzh2-oq1eYwqqO3LXRRbSdGAnF2R9zGO5zD9t8AdoEBhpUkQC5tTJKpB10QE~Sgjx0GnS4biAMLhRGoni-ib8XFsDQ5QVrTmP9yKCn4GGdaJApNN07p1F7iZK57xvdgcU73Bh67g~Taj8lYdhRhRLNQzAiPDqg-RwbSg2CnFtrj3DSWvWzhTK1BEdXk5FlP5x1W5B33q0XpmaPGSHmYbN~kXfCbJyuXaIRoamtWsWhySw9ghsA57oCaQLpDXX-BW~k2SPYUcyLJ~6TJ-F5aeJodKi06VoAIfQl4FKq1lWBcQ__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-Test-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.850 0 10.238.162.108 TCP_DENIED/307 0 GET http://d4bacpiwuo4wu.cloudfront.net/json/rewardads/20141018175221?Expires=1413779618&Signature=M58~4c3CI~gOJM8-OE7AZw0wkyi10cjpyqXq8WeX6iW6ox81vFn6vmaMxU5BQJrM-vsyl3C7kX4zcprfNztCdUtb5jzyF9LBG8J0iXIkvKQYPFeI5tdRYsE6tce95cL8ALvXJYxSd~8uVqEjTMOdVHUikvUGmUDpzCysaVsVkev3gKmi~rx4EpMdpXOlU1J5D5eAQ-6M9XIr-kxc3NJDjDJSRkvbk4iwWCo2-LB32TPWBB~vEjHtSfRWMEKyJUBL2NHOpkKhCpLIVrcFrrGOSTVPwTF8fC~1PWPnqImudQTZ~e-80i2xCwdJVJNCe0S4DTgI0JxBTCdXhAdIUUtlow__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-Test-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.868 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/categories/20141018175221?Expires=1413779616&Signature=AM2Q79AjvFARlSBbwWhCP6Y~2RB1L-GDYKPbMGs2u-9Oo9wtSoFRewGv~6FLI2dcZ5YaEwJygJQf3MhSZLdljlBxoXPrLrLyG0OKidmBCGrpMhtIaK-zKxLPbgIRqYNAB37ns6z1CPk~IUcPGjolzyL5gLjoZETxo54jkieH5kbr57ufXmtiRiacc2sOx~6ioYbiwZ6Fdld7TxayiyW5vLgUDsfTMAgNH3g8s5ci4VAtS2g4fey6yLy3RQ4rv0AMqBhCbHoURTpWyd-XH6FVqyvWcLR1SgSKPCS~fQiWT-TFYTeILqWYEQdAJLg6H8MP8GM9-p-GowCqpojyE6d3og__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.885 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/categories/20141018175221?Expires=1413779616&Signature=AM2Q79AjvFARlSBbwWhCP6Y~2RB1L-GDYKPbMGs2u-9Oo9wtSoFRewGv~6FLI2dcZ5YaEwJygJQf3MhSZLdljlBxoXPrLrLyG0OKidmBCGrpMhtIaK-zKxLPbgIRqYNAB37ns6z1CPk~IUcPGjolzyL5gLjoZETxo54jkieH5kbr57ufXmtiRiacc2sOx~6ioYbiwZ6Fdld7TxayiyW5vLgUDsfTMAgNH3g8s5ci4VAtS2g4fey6yLy3RQ4rv0AMqBhCbHoURTpWyd-XH6FVqyvWcLR1SgSKPCS~fQiWT-TFYTeILqWYEQdAJLg6H8MP8GM9-p-GowCqpojyE6d3og__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.915 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/rewardads/20141018175221?Expires=1413779618&Signature=M58~4c3CI~gOJM8-OE7AZw0wkyi10cjpyqXq8WeX6iW6ox81vFn6vmaMxU5BQJrM-vsyl3C7kX4zcprfNztCdUtb5jzyF9LBG8J0iXIkvKQYPFeI5tdRYsE6tce95cL8ALvXJYxSd~8uVqEjTMOdVHUikvUGmUDpzCysaVsVkev3gKmi~rx4EpMdpXOlU1J5D5eAQ-6M9XIr-kxc3NJDjDJSRkvbk4iwWCo2-LB32TPWBB~vEjHtSfRWMEKyJUBL2NHOpkKhCpLIVrcFrrGOSTVPwTF8fC~1PWPnqImudQTZ~e-80i2xCwdJVJNCe0S4DTgI0JxBTCdXhAdIUUtlow__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779230.920 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/rewardoffers/20141018175221?Expires=1413779617&Signature=BSj2JRPGeyhmtglYHZ2YZW6nX8UZ1SlBh3k~Qei6IdXzh2-oq1eYwqqO3LXRRbSdGAnF2R9zGO5zD9t8AdoEBhpUkQC5tTJKpB10QE~Sgjx0GnS4biAMLhRGoni-ib8XFsDQ5QVrTmP9yKCn4GGdaJApNN07p1F7iZK57xvdgcU73Bh67g~Taj8lYdhRhRLNQzAiPDqg-RwbSg2CnFtrj3DSWvWzhTK1BEdXk5FlP5x1W5B33q0XpmaPGSHmYbN~kXfCbJyuXaIRoamtWsWhySw9ghsA57oCaQLpDXX-BW~k2SPYUcyLJ~6TJ-F5aeJodKi06VoAIfQl4FKq1lWBcQ__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779231.012 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/rewardads/20141018175221?Expires=1413779618&Signature=M58~4c3CI~gOJM8-OE7AZw0wkyi10cjpyqXq8WeX6iW6ox81vFn6vmaMxU5BQJrM-vsyl3C7kX4zcprfNztCdUtb5jzyF9LBG8J0iXIkvKQYPFeI5tdRYsE6tce95cL8ALvXJYxSd~8uVqEjTMOdVHUikvUGmUDpzCysaVsVkev3gKmi~rx4EpMdpXOlU1J5D5eAQ-6M9XIr-kxc3NJDjDJSRkvbk4iwWCo2-LB32TPWBB~vEjHtSfRWMEKyJUBL2NHOpkKhCpLIVrcFrrGOSTVPwTF8fC~1PWPnqImudQTZ~e-80i2xCwdJVJNCe0S4DTgI0JxBTCdXhAdIUUtlow__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -
    1413779231.013 0 10.238.162.108 TCP_DENIED/401 0 GET http://ironcache.men.maxis.com.my/B0000D0000N0001F0000S0000R0004/http://d4bacpiwuo4wu.cloudfront.net/json/rewardoffers/20141018175221?Expires=1413779617&Signature=BSj2JRPGeyhmtglYHZ2YZW6nX8UZ1SlBh3k~Qei6IdXzh2-oq1eYwqqO3LXRRbSdGAnF2R9zGO5zD9t8AdoEBhpUkQC5tTJKpB10QE~Sgjx0GnS4biAMLhRGoni-ib8XFsDQ5QVrTmP9yKCn4GGdaJApNN07p1F7iZK57xvdgcU73Bh67g~Taj8lYdhRhRLNQzAiPDqg-RwbSg2CnFtrj3DSWvWzhTK1BEdXk5FlP5x1W5B33q0XpmaPGSHmYbN~kXfCbJyuXaIRoamtWsWhySw9ghsA57oCaQLpDXX-BW~k2SPYUcyLJ~6TJ-F5aeJodKi06VoAIfQl4FKq1lWBcQ__&Key-Pair-Id=APKAI3RTHSIRCRLBNBUQ - NONE/- - OTHER-NONE-NONE-NONE-NONE-NONE-NONE <-,-,-,"-",-,-,-,-,"-",-,-,-,"-",-,-,"-","-",-,-,-,-,"-","-","-","-","-","-",0.00,0,-,"-","-"> - "MyMaxis/0 CFNetwork/711.0.6 Darwin/14.0.0" - - Range: - Content-Range: -

    Ensure that all participants in the cluster must have an identical cluster configuration, except for the device priority within the cluster.
    The following URL may help you:
    http://www.cisco.com/en/US/docs/security/asa/asa72/configuration/guide/vpnsysop.html#wp1048834

  • Provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.

    hi all,
    i want to connect to server side from client , i am using sql server 2008 sp1 and os winn 7 64 bit, but it give me an error as above.
    also i tried this link:
    http://social.msdn.microsoft.com/Forums/sqlserver/es-ES/c0481462-fedf-4f3b-b984-ae3fef64a3b1/provider-tcp-provider-error-0-no-connection-could-be-made-because-the-target-machine-actively?forum=sqldatabaseengine
    and i configured two things as follow:
    windows firewall --> port --> spacial local  (1433) --> allow the connection -->public (checked) and sql server network configuration manager -->protocols for mssqlserver TCP/IP(enabled).
    note: my client and server windows firewalls is disabled.
    but i can not solve this issue.
    pls help me.
    thanks & best regards.
    pls help me

    hi Sathish,
    thank you,
    this is my connection string>>
    "Data Source=192.168.1.106.1433;Network Library=DBMSSOCN;" +
    "Initial Catalog=rasol;Integrated Security=sspi;"
    And I tried into command prompt, it replied for 192.168.1.106.
    best regards.

  • GoldenGate extract issue -  TCP/IP error 113 (No route to host)

    Hi All,
    I have created a new replicat process on a new server. The old server is to be de-commissioned. after I created the replicat process on the new server (I copied the replicat prm file from the existing server - which is to be de-commissioned to new server and changed old encrypted password with new one and DISCARDFILE location), I modified the extract parameter file on source server. I changed RMTHOST and RMTTRAIL from older server name to new server name and old location to new location. once done , I stopped the extract and ran below command:
    ADD RMTTRAIL /u01/app/ggs/dirdat/db, EXTRACT Ext1
    and then started the extract process after which I am getting this error:
    *2012-03-16 02:24:39 GGS ERROR 150 TCP/IP error 113 (No route to host).*
    *2012-03-16 02:24:39 GGS ERROR 190 PROCESS ABENDING.*
    I can very well ping both servers from both source and target. Any thoughts?
    -Onkar

    got the answer. It was firewall issue. When i turned the firewall down "service iptables stop", everything was smooth. I have raised request with the proper team to add the source ip in the target system firewall.
    -Onkar

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • TCP Read Error Code 1

    I met a problem in using "TCP Read" in LabView;
    First I use "TCP Open Connection" building connection successful with a instrument; and seem the connection ID as the global,equal to a "TCP Network Connection Refnum";
    Then I use the global as the connection ID,and use "TCP Write" send a command to a instrument;and use "TCP Read" Receive the instrument return message;this time a 56 error occurs,it is normal.
    But after I use this method Send/Receive two times successfully,when i use "TCP Read" receive message, the error 1 occurs,and nothing received.
    In each TCP operation,use the global "TCP Network Connection Refnum" as the "Connection ID" input.
    someone can tell me,why does it occur?

    JiangYu wrote:
    > I met a problem in using "TCP Read" in LabView;<br>First I use
    > "TCP Open Connection" building connection successful with a instrument;
    > and seem the connection ID as the global,equal to a "TCP Network
    > Connection Refnum";<br><br>Then I use the global as the connection ID,
    > and use "TCP Write" send a command to a instrument;and use "TCP Read"
    > Receive the instrument return message;this time a 56 error occurs,it is
    > normal.<br><br>But after I use this method Send/Receive two times successfully,
    > when i use "TCP Read" receive message, the error 1 occurs,and nothing received.
    > In each TCP operation,use the global "TCP Network Connection Refnum"
    > as the "Connection ID" input.<br><br>someone can tell me,why does it occur?
    Ouch, globals! That is usually the first sign of a bad application design.
    For the rest just watch out. LabVIEW refnums are garbage collected
    whenever the VI hierarchy which opened them goes idle (stops executing).
    So Executing a VI which Opens the TCP refnum and writes it into a global
    and then quits and then executing another VI which tries to use that
    refnum from the global will simply fail with error 1 as the refnum has
    been already automagically closed and is therefore invalid.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • TCP Read Error 1

    Hello!
    I would like to create a server - multi clients program. When i want to run that, the second iteration (top while loop, when listen a client) give the Error 1 error in the TCP Read.vi.
    Somebody could help me? 
    (Sorry about my english, it isn't the best)
    Thanks
    Attachments:
    MCP.zip ‏54 KB

    Dear tibtobi!
    Welcome on NI Discussion Forums! 
    In my opinion for such kind of projects it is better to use an already working solution.
    Please allow me to recommend You a woking  Multiple TCP Clients to One Server implementation:
    Managing Multiple Clients from One Server Using TCP/IP in LabVIEW
    There are also some articles about this topic like this:
    Connecting Multiple TCP Clients to One Server in LabVIEW
    There is also a reference library made by NI:
    LabVIEW Simple Messaging Reference Library (STM)
    In my opinion You could save a lot of time by using these already existing resources an implementations.
    Please let me know, if my suggestion helped, or if You have any other questions.
    Best Regards,
    Balazs Nagy

  • Modbus TCP comm error with fixed IP address

    I am trying to communicate to a slave modbus device over ethernet using the LabVIEW Modbus library.
    In the Modbus library, there is an example via "MB Ethernet Example Master.vi" that uses a fixed IP address to communicate to a slave device. When running the VI, I get error 56 indicating a timeout from the read input registers block.
    I have enabled VI Server TCP/IP communication via port 502, which is consistent with modbus protocol on the slave.
    Any thoughts?

    Hi,
    TCP/IP communication errors most often are caused by timeout conditions in either the LabVIEW TCP/IP VIs or at the operating system level. If you are sure that the network cable is properly connected to the slave device, a timeout condition of some type is likely the cause of the errors. The particular error code and symptoms associated with the error depend on whether a LabVIEW operation timed-out first or if an error is generated first by the operating system.
    There are two typical error codes in cases where TCP/IP communication fails as a result of a timeout condition: 
    -Error 56 is generated when an operation exceeds the user-specified time limit. This error is caused by the LabVIEW code not receiving a network response in the defined time limit. 
    -Error 66 occurs if the TCP/IP connection is closed by the peer. In this case, Windows notices that no data is returned within a reasonable time, and it closes the TCP/IP connection. When LabVIEW attempts to communicate after Windows closes the connection, error 66 is the result. 
    Try to increase the length of the timeout value wired to the timeout terminal of the event structure in the Ethernet Master VI. Also, make sure your command that you are trying to write is formatted according to the manual for the slave device you have. Sometimes if the data is formatted wrong the slave cannot recognize it.
    Regards,
    Message Edited by Ryan_F on 10-23-2009 11:00 AM
    National Instruments
    Applications Engineer

Maybe you are looking for