Opc server runtime timeout

Hi, so I can't use OPC server because the connection that it tries to do always fails and I get an timeout. What am I missing? In my own computer OPC server doesn't do that. I don't even know what that runtime thing does but I figured it needs to be working before I can get to launch the Quick Client... Do I need to install something or what, can someone help me?

If you mean NI OPC Server, it is a trial.
If you mean can Lookout act as an OPC server, it is full.
Forshock - Consult.Develop.Solve.

Similar Messages

  • What is the best way to disable tags in SVE when a OPC server is not available?

    I have a LV2009 DSC app with SVE that reads tags (1100 spread acrross them) from 4 PLC's through NI OPC server.  From time to time the PLC will lose power because that test machine will be powered down.  The NI OPC  loses the OPC link then to that particular machine/PLC and this error is transferred through to the SVE. 
    Is there an any/efficient way to stop the reading of tags if/when this happens?  The only way I can think of is to undeploy/re-deploy from the app when it is necessary. 
    In the same way is it possible to prevent the SVE acting on this error?
    I also have a longstanding problem with updates of tag values to the frontend of the LV VI.  The update rate into SVE seems OK, but the tag values are slow to update onto the page.  I have reduced the amount of tags on the pages as well as reducing the amount of code on a page.  It becomes better, but I would like to have an update of less than 2 seconds at least to properly display plant status.  I'm running a heartbeat timer from a PLC and in some cases this takes up to 15 seconds to update.
    Any assistance will be appreciated.
    Pierre

    PierreN,
    In order to set the timeout value of a Shared Variable, you may Right-Click, and select 'Show Timeout':
    Implementing Timeouts through your application variables will allow you to gage which variables are, and are not updating. This troubleshooting stepp will allow you to better characterize the source of the slowed update rate. You also may take a closer look at the OPC Server configuration, and the deadnband settings you have implemented on the I/O Clients. 
    Snowforest has offered good advice in terms of implementing a State-Machine architecture to handle the 'Power Down' system status. Also, if you know the specific error that is propagated, you may choose to implement implicit error handling using the data contained in the Error Cluster.
    Cheers,
    Pcorcs
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • LV8 OPC Server Installer

    I use Shared Variable Engine as an OPC Server with LV8.
    I build an executable (with library deployement), It works on my developpement station (with LV8 installed).
    I build an installer (with include Variable Engine and LV8 Runtime Engine).
    If I install my application on a PC (Win XP or Win 2000) without LV8, it doesn't work :
    Server explorer can see Variable Engine server but can't connect to it (Server not registered !!).
    I hope someone can help me.
    Than you,

    Hi,
    You also have to deploy the variables. See the link below for the deploy process for an exe.
    How Do I Deploy Network Shared Variables From a Compiled Executable?
    Regards,
    ClémentG

  • Problems connecting to a remote OPC server in write mode using CWDataSocket control

    Hi.
    I have been struggling with an odd feature when trying to connect to a remote OPC server using CWDataSocket control, though I'm not sure if it's a CWDataSocket related problem. But anyway, the following error occurs: "Active: Can't write data." Error number: "-2147467259". Now, when I connect to a local OPC server
    and write some data and then again connect to the remote server, no errors occure and reading and writing work fine. The same error occurs when I try the same in LabVIEW. What could be the problem?
    No errors occure when I connect to the server with some other OPC client application.
    Thanks in advance.
    - Asko -

    The ConnectTo operation (as are all DataSocket operations) is asynchronous. In order for it to complete, you must process Windows messages after calling it and before calling another operation. Is it possible that you are trying to write data before the connection operation is complete?
    One easy way to test this would be to put the ConnectTo and the Write in separate control callbacks, cause ConnectTo to be called, wait a while, then cause the Write to be called. Alternatively, you could do something like the following:
    dsWrite.ConnectTo txtUrl.Text, cwdsWrite
    While Not ((dsWrite.Status = cwdsConnectionActive) Or (dsWrite.Status = cwdsConnectionIdle))
    DoEvents
    Wend
    If this is the problem, then you'll probably want to go with the
    second option. In a production system, you should include a timeout in the While loop so that if the connection actually cannot be made, you are not stuck in an infinite loop.

  • OPC SERVER/CLIENT

    Dear Sir
    I try to connect the opc server.And I have connected the server successed.But there is question confused me as below:
    code as below that for additems after connected the OPC server
    If WriteItemIndex > 0 Then
                WtInputItemColl.AddItems(WriteItemIndex, WriteItem, ClientHandles1, ServerHandlesWtIn, ErrorsWtIn)
                WtInputGrp.IsSubscribed = True
    End If
    Running code, vb2013 show the message:"
    An unhandled exception of type 'System.Runtime.InteropServices.SafeArrayTypeMismatchException' occurred in OPC_CLIENT1.exe
    Additional information:The specified array was not of the expected type.
    I checked the AddItems.Syntax
    AddItems (Count As Long, ItemIDs() As String, ClientHandles() As Long, ByRef
    ServerHandles() As Long, ByRef Errors() As Long, Optional RequestedDataTypes As Variant,
    Optional AccessPaths As Variant)
    I can not find the error,I have defined all the variants as syntax
        Dim ServerHandlesWtIn(100) As VariantType
        Dim ServerHandlesRdOut(100) As VariantType
        Dim WithEvents WtInputGrp As OPCGroup
        Dim WithEvents RdOutputGrp As OPCGroup
        Dim WtInputItemColl As OPCItems
        Dim RdOutputItemColl As OPCItems
        Dim ClientHandles1(100) As Long
        Dim ReadItem(100) As String
        Dim ReadValue(100) As VariantType
        Dim WriteItem(100) As String
        Dim WriteValue(100) As VariantType
        Dim ErrorsWtIn(100) As VariantType
        Dim ErrorsRdOut(100) As VariantType
        Dim WriteItemIndex As Long
        Dim ReadItemIndex As Long
    Please help me find it,thank you!

    Hello Yu Du,
    This looks like VB6 code. This forum is only for VB.Net since 2002. VB6 is not supported anymore. Have a look at this page and post to the linked forum:
    Visual Basic 6.0 Resource Center
    Armin

  • Geting Error by using the opc.sinume​rik.maschi​neswitch OPC-Server

    Hello I want to connect my control with Labview over OPC. For this I'll use the OPC-Server from Siemens called OPC.sinumerik.maschineswitch. But when I want to open it. I get the Error with Errorcode# 0x80004002(see the attechment).
    What is the Problem? Perhaps somebody can help me if possible in german :-)
    The info in the Knowlead Base to register the opcproxy.dll wasn't the resolution
    Greets Felix
    Attachments:
    opcerror.jpg ‏14 KB

    Es dreht sich hier ja nicht um die Hardware sondern um die Software.
    der OPC.Sinumerik.Machineswitch, wird mit der Software HMI-Advanced von Siemens mit installiert.
    Der server wird mit folgender Ini geladen.
    ; SINUMERIK OPC Server Parameter File
    ; Juni 2003
    [Registry]
    ProgId  = OPC.SINUMERIK.Machineswitch
    ClassId  = {75d00afe-dda5-11d1-b944-9e614d000000}
    SymbolicName = OPC.SINUMERIK.Machineswitch
    RegKey  = SINUMERIK.Machineswitch
    ;needed to access configuration information at runtime
    [Configuration]
    VendorInfo = SINUMERIK OPC-Server DataAccess-V2.4.2.98  (C) Siemens AG (1998-2003)
    NoAccessPath = 1
    IVarServer = @MCVar.Var2
    ;INSInfoServer =
    Daher gehe ich davon aus das das opc.sinumerik.machinswitch nur eine Bezeichnung ist und es sich hierbei um einen Sinumerik OPC-Server handelt.
    Wenn es ihnen etwas bringt, kann ich ihnen die Exe zukommen lassen. Werde aber sicherheitshalber nachschauen ob man diesen Server nicht auch downloaden kann.

  • Datasocket write and close / remote OPC server / PC freeze when no connection

    [Labview 8.21, Windows XP SP2]
    Hello
    I am getting data from a remote OPC server using the Datasocket techniques. Depending on the DS family of routine that I use the behavior is different when the OPC server shuts down or Ethernet link is cut.
    In the NOK application attached, as soon as the link to the OPC server is cut the application and the whole Labview environment gets stalled, either in the DS Write or in the DS Close icon. Never in the DS Read icon.
    Also the Timeout to read or write does not work in neither application. Whatever the number I set it will never be taken into account.
    Is there some sort of 'miracle' setting in the Labview.ini file that can make the NOK application to work correctly and step out of the DS Write or Close vi when such link cut occur? More generally could someone explain why the behavior is different between the two applications, if there are new Datasocket routines that would handle these kind of communication in a clean way?
    Thanks
    Christophe
    Attachments:
    Datasocket - OK version.vi ‏19 KB
    Datasocket - NOK version.vi ‏19 KB

    I am desesperate. The Datasocket - OK version.vi 19 KB that seemed to work so well (no freeze at all) creates a huge memory leakage as you can see in the attached file. I am only reading a tag (local OPC tag, not even remote tag on another PC's OPC server) and the word document attached shows the issue:
    After 15-20min during which no increase of memory is noticed (first picture) the situation starts to worsen. In 12 hours (about 7200 read operations) it reaches a consumption of 65Mb ! (to read everytime the same OPC tag). Something that I never noticed with the Datasocket - NOK version.vi 19 KB that had the freezing issue...
    I really do not know what to do.
    Thanks for your prompt feedback
    Christophe
    Attachments:
    Benchmark Datasokets.vi ‏38 KB
    Benchmark Datasocket Memory Consumption.doc ‏392 KB

  • Application not reading data from opc server?

    Hello, 
    I have developed an application that reads and writes information from and to an OPC server (Phoenix Contact), and for this have used the DSC Module and labview 2014. When I run it from LabView, it works perfectly. I want to deploy it to another computer and for that I have created an Installer that includes the source files, the labview runtime, the DSC runtime, ni distributed manager 2014, and the variable engine.  
    When I install my application to the other computer, it doesn't "see" the data from opc, although the data reaches the computer (I've checked). Can you please help me with some suggestions regarding this problem? Am I missing something?
    Thank you.

    You don't have NI OPC Servers on either computer?  That's generally the software required to talk directly to an OPC Server.  On the computer where things are working, try going to your start menu and searching for NI License Manager.  See if there is a listing for NI OPC Servers.  I'd expect it to be activated to a single driver.
    On the deployment PC, make the same check.  I'd expect it to be missing.
    The distributed manager is just a way to view the shared variables you have on the system and interact with them.  DSC works with NI OPC Servers to display your tags.  The RTE is needed on the deployment PC.  But, I'd also expect you to need a way to convert the tag into the shared variable you're seeing in both the DSC RTE and distributed manager.
    Using the Phoenix utility shows the computer is connected to the same network.  But, it doesn't show the tags are reaching LabVIEW.  You're generally better off starting with the Quick OPC Client as this will use similar methods that LabVIEW will.

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • Problems using Modbus TCP accessed by NI OPC Server

    Hi there,
    i'm using NI OPC-Server to access a measurement module. The buildup is quite easy, my system with NI OPC, a modbus gate and there the module connected with RS485.
    There's a thermocouple to provide me some sample data.
    But there's the point. I know, my data is in the Holding Registers and I can access them, but every data type I'm trying doesn't bring my my data out, just any other (sometimes Huge with e34, sometimes very small like e-13...) sorts, i can't understand.
    The type provided by the module should be single precision.
    In Lookout the address used to be is 41000 in Labview it's just 999 and in the "target" OPC-Server I get some values at 401000 but not useful.
    I also get the same results accessing 301000 in different types.
    Read/Write or Read Only is equal.
    I've tried to tell my OPC that the values are Strings, Floats, Words, BCD and all other possible ways OPC offers me, but nothing results in a usable temperature.
    I hope I missed something and you could suggest it.
    Cateros
    Solved!
    Go to Solution.

    Thanks for your reply.
    in LabVIEW I'm using the provided Modbus Libraries. If I unbundle the Holding registers, my value appears at Holding Register [0], I'm type casting it to single and get the sample temperature. (Address 999->unbundle->typecast->value)
    In NI OPC, I'm reading ( [depends on zero based addressing]  300999/301000 equal to 400999/401000) an already typecasted Holding Register [1] compared to LabVIEW (and the value changes in the second or third digit behind the comma and they are changing at the same time). Data type in the tag is float.
     Another disturbing thing is even if I change in the options "using zero-based addressing in registers" my value does not change.
    If I'm reading two addresses close to each other (as you mentioned 401000-401001) I'm getting an unknown data type and no results. How do I read multiple addresses without such errors? And how do I specify a special register to read?
    Scaling should not be the problem, I am having three ways to get my value (FTP-Server on the gate (just a *.dat file with correct type), software the the module manufacturer (while measuring and configuring the module) and LabVIEW(as can be seen above)) .
    Sadly, I have not found any useable modbus documentation about the module (just it can use modbus, you have the registers, you could read/write and fine)
    When I'm adding a second couple to the module, in LabVIEW Values in Holding Register [2] and Holding Register [3] appear and are changing.
    Cateros

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

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

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

  • How can I write to an OPC Server?

    Hello!
    I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
    I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
    So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
    Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
    Best regards and Thanks in advance!

    So here it is - a little bit modified, but you should get the idea out of it.
    If you have questions, I'll try to answer them .
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    IOControl.llb ‏168 KB

  • How can I write to a Siemens S7-300 PLC tag from OPC Server.vbai page by using a Knob object ?

    I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
    Any help is welcomed. Thanks in advance.
    Attachments:
    manual_writing_to_plc.png ‏298 KB

    The tutorial at the following location explains how to use Vision Builder AI as a OPC server.
    https://decibel.ni.com/content/docs/DOC-18647
    http://www.ni.com/white-paper/13574/en
    To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.
    Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.
    Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.
    http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
    Hope this helps.
    -Christophe

  • How do I browse an OPC Server's Namespace with Teststand ActiveX Steps?

    Hello
    I use Teststand as the client of an OPC Connection. At the Moment I'm trying to realize an browse funktionality by using the "OPC Automation 2.0" automation server in the
    ActiveX adapter.
    What I can create is the OPCBrowse object by using the "CreateBrowser" method. But then there's no method to browse the OPC server's namespace for the ItemID's.
    Does someone have an idea how I can go on further?
    thx, Michael   

    For your information, there is a new TestStand Add-on "OPC DA Connect" which adds a StepType Palette dedicated to OPC Data Access.
    You can configure each step by browsing the OPC servers on your network and browsing variables within these servers.
    The browsing functionnality that you where looking for as been implemented in this toolkit.
    Hoping this helps.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • How to understand the Error message of the connection of OPC server

    hi guys, one issue need your help
    when I run the NI OPC servers, one error message will appear in the process information.
    Just like as followed:
    ==================================================​=========================
    2011-6-23   11:50:05   Default User   NI OPC Servers   Stopping Simulator device driver.
    2011-6-23   11:50:05   Default User   NI OPC Servers   Closing project D:\National Instruments\Shared\NI OPC Servers\projects\simdemo.opf
    2011-6-23   11:50:25   Default User   NI OPC Servers   NI OPC Servers
    2011-6-23   11:50:25   Default User   NI OPC Servers   Unable to load driver DLL 'D:\National Instruments\Shared\NI OPC Servers\drivers\dataforth_isolynx_u.dll'
    more messages
    ==================================================​===========================
    how to understand "2011-6-23   11:50:25   Default User   NI OPC Servers   Unable to load driver DLL 'D:\National Instruments\Shared\NI OPC Servers\drivers\dataforth_isolynx_u.dll'??????
    Thanks

    Hi!
    I have the same problem when opening the OPC Server.
    Unfortunately I have no solution, but I think it has something to do with incorrect Certificates and is more of a Windows Problem.
    If anybody can help, please let us know!
    Best Regards
    Martin

Maybe you are looking for