Connection with OPC client

Hi,
I would like to access to my shared variables using an OPC client. (a free software called powerOPC or any other one)
When I use it locally, everything goes well, I can access my shared variables, but when I try to access from a distantr PC, I cannot connect and get some errors. I've tried to open port 135 on the firewall, I've read the following post: http://forums.ni.com/t5/LabVIEW/opc-dcom-access-denied/m-p/822246/highlight/true#M373884
But I still can't access my variables.
The NI Distributed System Manager can access to the distant shared variables, so I don't know what's wrong with other clients.
Does anyone knows how to do?
Both PC are running win 7, one is 32 the other 64bit.
LV2011
Regards

Hi toto26,
thank you for using National Instruments discussion forum.
Could you detail the way you use to communicate with your OPC server thanks share variable? Are you using datasocket like in this document or are you using DSC ?
Could you tell us more about the errors you get? Have you already seen this KB document and its first related link?
Thank you in advance
Regards,
Audrey_P
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

Similar Messages

  • Trusted connectivity with different Clients

    Hi all
    I have the following problem: The Trusting System SRR (Server) has client 100 and 010 the
    Trusted System CLL has client 010.
    I tried to make a trusted connectivity with the SRR 100 Client, but I’m only able to connect to the SRR 010 Client.
    Where can declare to which Client of the Trusting System (Server) the Trusted System (client) Points?
    Tnx for your help
    Murat

    Hi
    I solved the problem.
    if the Client is not the same you see in the trusted system in RFC menu trusting system an error.  "authorization failed". (this was confusing)
    You have to create in the Trusting system the authorization object S_RFCACL with the client information for the calling System. You verify the settings with the function module AUTHORITY_CHECK_TRUSTED_SYSTEM.
    Once you created the trusted system in the Trusting system. You have to create a NEW RFC connection in the Trusted System for example <SID>_TRUST mark the trusted system and current user with the Client# information. Once saved, try to logon by the "Remote Logon" button. If this works, then you created successfully the trust relationship.
    Thanks<u> <i>Wolfgang for the Note you mentioned</i>.</u> I checked that Note before.What I didn't know that the Message in RFC menu Trusting System authorization failed  can be ignored since it tries to logon with the current logged on client.
    Murat

  • 9iFSRe2 + API + connect with thin-Client

    Hi,
    I progam the iFS-APi to connect the iFS.
    But under Windows i must install about 100MB.
    Under Linux the size of libs i need to connet
    about 10MB.
    My Question is can i connect the iFS with
    thin-Client dll?
    thanks for Answer
    bye

    Place some debugging code and see if URL is null. Also, although it is nice practice, you don't need to catch every type of exception. Try (no pun intended):
    catch (Exception e) {
    System.err.println(e.getClass().getName() + ":" + e.getMessage());
    - Saish
    "My karma ran over your dogma." - Anon

  • Variable Engine crashes when querying a tag that doen't exist with OPC client

    Hi!
    I'm working on a system based on LV 2011 DSC.  The system is multi-node and uses Sahred Variables.
    We have a node that has everything available in the system and we would like to use the embedded OPC server in the Variable Engine to grab everything in real-time and feed a corporate historian system.
    It happened couple of time that querying a tag that was not defined in NI (example: typo when typing an address in the OPC client) caused some instability and made the node crash.  After a reboot, everything was ok.
    Is there a way to prevent a supervisory system of making crash a production system?  Can we limit the OPC server to the defined tags in the library?
    Thanks.
    Francois

    The variable engine is known to be buggy from time to time, so be sure you upgrade all the related software to the latest version (or not
    If it is possible, have the OPC client create a new tag for any that are queried, but do not exist.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • Problem to connect with OPC Server opc.sinumerik.machineswitch using DS_Open

    Hi,
    I want to connect to an Siemens OPC server type opc.sinumerik.machineswitch using DS_Open calls (CVI 6.0) to read few tags. Running my client software (as well as the NI- sample test client) locally on the same computer as the server the connection works and I can access the tags.
    Running the client-software on a remote PC then the DS_Open call "hangs-up" (not even an error message). All the DCOM settings etc should be ok, since I can access the tags using the Siemens Client OPC-Scout as test client.
    I have used the same calls in several previous applications and it works with other servers (Bachmann, WinCC), so I am pretty sure that I use the correct URLS etc.
    What can be the reason for a specific incompatibility?
    Any idea is highly appreciated.
    Cheers,
    Ronald

    Hi Roland,
    as experience shows, Remote DataSocket is hard to implement.
    The best way to implement this communication is the following:
    First of all, check the DCOM -Settings
    Using OPC via DCOM with Windows XP
    http://www.opcfoundation.org/DownloadFile.aspx?RI=326
    Use the “NI-OPC Server” to create a tunnel between the Siemens OPC server and your PC.
    Install the NI-OPC Server on your PC and use the “OPC DA Client Driver” to access the tags on the Siemens OPC server.
    After that you can access the created tags in the NI-OPC Server with CVI and DataSocket.
    Please download the NI OPC Servers Evaluation-Version to test communication.
    NI OPC Servers
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/209059
    Download NI OPC Servers Evaluation
    https://lumen.ni.com/nicif/us/evalopc/content.xhtml
    Regards
    Ulrich

  • Facing problem in connection with OWB client

    Dear All
    Greetings!!!
    Im new to Datawarehouse building. I have installed OWB R1 at my own pc.I am facing problems in connecting OWB client..What exactly to put in Host name and Oracle Service name. i am logging in with the same system/password with normal login. Please guide me to enter in the datawarehouse world..
    Thanx and Regards
    Nukesh Bhoyar
    Mumbai(India)

    Hi Nukesh
    I know this doesn't really answer your question but Oracle have just made Release 2 of Warehouse Builder available and based on all of the info through this forum and other places, if I was you I would download R2 and install it instead of R1, as it is deemed to have way more functionality.
    Cheers
    M

  • Create connection with sqlplus client

    Hi@everybody,
    i've a little connection problem with the oracle Instant Client I've installed on my Windows 7 64 bit. First, I've token the files:
    instantclient-basic-windows.x64-12.1.0.1.0.zip
    instantclient-sqlplus-windows.x64-12.1.0.1.0.zip
    and uzipped them together in a directory. That directory is in PATH enviroment variable on Windows 7.
    Now i want to try to get a connection to my Oracle 11gR2 (11.2.0.3) database on CentOS. When i do a EasyConnect:
    PROMPT>sqlplus system/pwdofsystem@hostname_of_db_server:1521/SIDNAME
    there is no problem to get to the database.
    But when i try the long way:
    PROMPT>sqlplus 'system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))'
    first he asks me for the password for system. I enter the password and then I get an ORA-12560 error.
    I allready read about that error but i can't understand, why i need an entry in a tnsnames.ora file when i gave sqlplus all the parameters directly. Or is there another failure?
    Thanks and best regards,
    David

    TAKE OFF THE SINGLE QUOTES, you will be connected
    Run this without single quotes,
    PROMPT>sqlplus system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))
    I guess if you are passing the whole ting in quotes, sqlplus is considering it as a 1 single parameter and assuming the whole thing as USERNAME.

  • Cannot connect with CSM client

    One of our clients has a problem with their CSM deployment, they recently upgraded their CSM version which is deployed on a vmware environment, the services are listed as running and the webservice is available on port 1714 - when he tries to access it with the CSM client he gets the error.
    The client cannot connect to the authentication service."
    * Please cofnirm whether the security manager server is running
    I cant find any troubleshooting information for this specific issue - has anyone got any experience of this issue or what could be causing it.
    Regards
    Joel

    I'm having the exact same problem. My work around is to run C:\Program Files (x86)\cscopx\setup\support\resetcasuser.exe, select option 1 and reboot the CSM box.
    TAC said the issue was a GPO preventing the casuser for running batch, but we just modified the GPO yesterday and still have trouble.
    Strange thing is twe did not have this issue when the backup job was failing.

  • Non-Deterministic Exception When Connecting With Wrong Client Certificate

    I am working on an internal application and need to determine the correct client-side SSL certificate to use when connecting to a server (the user can supply multiple client-side certificates). I had expected that if I connected to a server using the wrong client certificate the java client would throw a SSLHandshakeException and I could then try the next certificate. This seems to work some of the time, however the java client will sometimes throw a “SocketException: Software caused connection abort: recv failed”, in which case it is not possible to know that the wrong certificate caused the problem.
    Below is the code I have been using to test as well as the intermittent SocketException stack trace. Does anyone have an idea as to how to fix this problem? Thanks in advance.
    Note: the TrustAllX509TrustManager is a trust manager that trusts all servers.
    protected void connectSsl() throws Exception {
          final String host = "x.x.x.x";
          final int portNumber = 443;
          final int socketTimeout = 10*1000;
          // Note: Wrong certificate (expect SSLHandshakeException).
          final String certFilename = "C:\\xxx\\clientSSL.P12";
          final String certPassword = "certPassword";
          final BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(certFilename)));
          final char[] certificatePasswordArray = certPassword.toCharArray();
          final KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
          final KeyStore keyStore = KeyStore.getInstance("PKCS12");
          keyStore.load(bis, certificatePasswordArray);
          keyManagerFactory.init(keyStore, certificatePasswordArray);
          final KeyManager[] keyManagers = keyManagerFactory.getKeyManagers();
          final SSLContext context = SSLContext.getInstance("SSL");
          context.init(keyManagers, new TrustManager[]{new TrustAllX509TrustManager()}, new SecureRandom());
          final SocketFactory secureFactory = context.getSocketFactory();
          final Socket socket = secureFactory.createSocket();
          final InetAddress ip = InetAddress.getByName(host);
          socket.connect(new InetSocketAddress(ip, portNumber), socketTimeout);
          socket.setSoTimeout(socketTimeout);
          // Write the request.
          final OutputStream out = new BufferedOutputStream(socket.getOutputStream());
          out.write("GET / HTTP/1.1\r\n".getBytes());
          out.write("\r\n".getBytes());
          out.flush();
          InputStream inputStream = socket.getInputStream();
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          byte[] byteArray = new byte[1024];
          int bytesRead = 0;
          while ((bytesRead = inputStream.read(byteArray)) != -1) {
             outputStream.write(byteArray, 0, bytesRead);
          socket.close();
          System.out.println("Response:\r\n" + outputStream.toString("UTF-8"));
       }Unexpected SocketException:
    main: java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1435)
         at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
         at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:612)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:808)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:734)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:197)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

    Thanks for the quick response. Here are answers to the questions:
    1) No, this issue is not associated with one particular certificate. I have tried several certificates and see the same issue.
    2) I agree it would be simpler to only send the required certificate, but unfortunately the project requires that the user be able to specify multiple certificates and, if a client-side certificate is required, the application try each one in turn until the correct certificate is found.
    3) Yes, I realize the TrustAllX509TrustManager is insecure, but I am using this for testing purposes while trying to diagnose the client certificate problem.
    In terms of testing, I am just wrapping the above code in a try/catch block and executing it in a loop. It is quite odd that the same exact code will sometimes generate a SSLHandshakeException and other times a SocketException.
    One additional piece of information: if I force the client code to use "SSLv3" using the Socket.setEnabledProtocols(...) method, the problem goes away (I consistently get a SSLHandshakeException). However, I don't think this solves my problem as forcing the application to use SSLv3 would mean it could not handle TLS connections.
    The code to specify the SSLv3 protocol is:
    SSLSocket sslSocket = (SSLSocket) socket;
    sslSocket.setEnabledProtocols(new String[] {"SSLv3"});
    One other strange issue: if instead of specifying the SSLv3 protocol using setEnabledProtocols(...) I instead specify the protocol when creating the SSLContext, the SocketException problem comes back. So if I replace:
    final SSLContext context = SSLContext.getInstance("SSL");
    with:
    final SSLContext context = SSLContext.getInstance("SSLv3");
    and remove the "sslSocket.setEnabledProtocols(new String[] {"SSLv3"})" line, I see the intermittent SocketException problem.
    All very weird. Any thoughts?

  • Error ORA-12154 trying to connect with instant client 11g / LDAP on Ubuntu

    Hello,
    I have successfully installed instant client 11.2.0.2 and sqlplus on my Ubuntu 11.04 workstation. I am able to successfully connect to DB's defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error
    ORA-12154: TNS:could not resolve the connect identifier specified
    Note: while it's fine for testing, it's not a viable option to setup all the DB's defined in the OID in tnsnames.ora - I need to use LDAP.
    My setup is as follows:
    Install folder: /opt/oracle/instantclient_11_2
    TNS_ADMIN=/opt/oracle/instantclient_11_2/
    sqlnet.ora
    NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP)
    I am certain that tnsnames.ora and ldap.ora are valid, as I can connect successfully on another machine with the full client installed using the same files.
    I tried to setup tracing in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = /tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not trace file gets generated in /tmp - am I doing something wrong ? (Note, I also tried to set DIAG_ADR_ENABLED=OFF as suggested by Laurenz Albe in Instant client don't work trace but that did not help)
    I checked DocID=359206.1 but I don't think that applies as I'm on 11g.
    Hope someone can help. Thanks in advance !

    rgoold, you are a star ! I should have thought about line endings of course. Many thanks for your suggestion, that fixed the problem.
    # file *.ora
    ldap.ora: ASCII text, with CRLF line terminators
    sqlnet.ora: ASCII text, with CRLF line terminators
    # dos2unix *.ora
    dos2unix: converting file ldap.ora to UNIX format ...
    dos2unix: converting file sqlnet.ora to UNIX format ...
    # ./sqlplus -L user@database
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 5 15:26:16 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    WOHOOOOO !!! :-)

  • Create connection multiple database server connection with sinle client

    My problem is like this. I have 3 database servers like server A,server B,Server C. First Client will communicate with server A and Server B at the same time. Then if the connection is done then i need communicate with server C. Is there anybody who has the sample code for this. Please help me i am facing problems with this.

    I want to build a web site using jsp servlet for my university course purpose. In the background i will have three servers one is database server like server A another is certificate authority server like server B and the other one is Bank server like server C. Next, user will input through login page(say for example user name & password for database server A, certificate credentials for server B) then the login page will check user credentials kept in server A and at the same time with server B(CA server). If the user credentials kept in both of these servers(A &B) are matched then the page will inform that this is the valid user and connect to the bank server for money transaction. I hope now the my problem is clear to you. please answer me how can i prepare for that.
    what are the concepts related to that and have any demo code which i can use for that purpose.

  • ITS 6.20 connect to another client doesn't work

    We have an ITS 6.20 .
    Glabal service belong the caracteristics of connection to SAP server (login, pasword, client, systemnamme, systemnumber).
    I want to connect to another client but all the others parameter stay the same as in global service definition.
    The idea I have is to put the client in the URL as parameter but it doesn't work
    example of the URL:
    http://[server]/scripts/wgate/ZAXB18W/!?client=300&record=1&templatelanguage=EN&username=zzz&cdealer=80023456&sessionid=493460714&~check=7ED3B4B75260C2ABA6EA4EF77706770F
    The connection doesn't hold in count the client parameter. It is connected with the client of global parameter.
    Is there anybody who can help me ?.

    Hello Eric,
    You'll need to remove the ~client value in the global.srvc file (and service file of the service being called).  Than the ~client parameter in the URL should work.
    Edgar

  • Problems with my client server program

    I am programming a client to server messeging system. I have been getting this error. [i programed a JOptionPane window if an IO error ocured and every time i connect with the client in keeps popping up.  Here is part of my code from the [b]server:
         class listener extends Thread {
              public void run() {
                   try {
                        recever = new ServerSocket(port);
                        send = recever.accept();
                        Thread process = new Thread(new mt());
                        process.start();
                   catch (IOException ioe) {
         class mt extends Thread {
              public void run() {
                   try {
                        send.setSoTimeout(1);
                   catch (IOException ioe) {
                   while (true) {
                        try {
                             in = new BufferedReader(new InputStreamReader(send.getInputStream()));
                             data.add(in.readLine());
                             JOptionPane.showMessageDialog(null, data, "this was the data", JOptionPane.INFORMATION_MESSAGE);
                        catch (NullPointerException ioe) {
                        catch (IOException ioe) {
                             JOptionPane.showMessageDialog(null, "Error in the server!!", "ERROR", JOptionPane.WARNING_MESSAGE);
         public static void main(String args[]) {
              new server().setVisible(true);
    }Now froim the client:
    if (e.getSource() == go) {
                   if (connected == true) {
                        try {
                             out = new PrintWriter(new OutputStreamWriter(connector.getOutputStream()));
                        catch (IOException ioe) {
                             JOptionPane.showMessageDialog(null, "Error sending", "ERROR", JOptionPane.WARNING_MESSAGE);
                        type.setText("");
                   if (connected == false) {
                        JOptionPane.showMessageDialog(null, "You are nnot connected!!", "ERROR", JOptionPane.WARNING_MESSAGE);
    If you need more code to understand my problem just ask.
    Thanx

    Don't you think it might be a good idea to find out what kind of IOException you're getting? At least display ioe.getMessage. showMessages will take an Object array instead of a single string so you can do:
    JOptionPane.showMessageDialog(null, new Object[]{"Error in server", ioe.getMessage}, "Error",
    JOptionPane.ERROR_MESSAGE);

  • DTW - Connection with license server failed

    I am trying to use the DTW after I upgraded from SBO2005 to SBO8.8 PL17
    I have SBO8,8 server in machine A and SQL Server in machine B. Mi license server is in machine A. When I enter to DTW (88.0.17), it only type the SQL Server ip address. There is no place to type the license server IP address. when i log in , i get the next message
    Connection Status (US)
    Connection to IP ##.##.##.## (SQL) has failed
    Error Code: -129
    Connection with license server has failed
    I can connect with SBO Client in the same machine.  I checked that the it has a profesional and addon license the superuser used in the DTW. I can also enter with SQL management studio can enter in the same machine. What is missing ?

    [http://img208.imageshack.us/img208/639/dtw.png]
    [http://img193.imageshack.us/img193/654/dtw2.png]
    [http://img408.imageshack.us/img408/2650/dtw3.png]
    [http://img691.imageshack.us/img691/6940/dtw4.png]
    [http://img33.imageshack.us/img33/9954/dtw5.png]
    [http://img808.imageshack.us/img808/5291/dtw6.png]
    [http://img827.imageshack.us/img827/9630/dtw7.png]

  • Find existing connection with server

    Hi,
    i have used socket programming in java. when i start the server
    program ,i want to know how many clients are already connected with
    particular server Port.
    Is it possible? pls, Tell me

    Hi,
    thank you for you reply. But my need is, while server is running, client can establish the connection with server. just imagine now server has connect with 5 clients. Unfortunately server going down.
    And again i start the server it should listen to already existing client connections automatically.
    i want to establish the connections of existing clients from the server.
    if any body having java code or other ideas for this problem , HELP ME!!

Maybe you are looking for

  • SAP HCM P&F - Update an infotype field which is NOT passed from Form

    Dear Experts, I have a requirement to update the Infotype with the entries in the HCM form (input by Employee in ESS) upon Manager's approval in MSS. We are achieving this functionality using HCM P&F (FPM) with an Workflow associated.  In this Workfl

  • Premiere Elements 13 won't launch in Windows 8.1 (Click the icon and nothing happens)

    I'm running the trial version of Premiere Elements 13 on Windows 8.1 64-bit. It's a brand new PC built for video editing. Everything worked perfectly for about a week and all of a sudden I'm unable to start the program. I click the icon and nothing h

  • Creating Gradient-filled shapes via JSFL CS5.5?

    I'm trying to use JSFL to create a number of oval shapes on a layer, that have a gradient fill applied to them.  I've stripped down the JSFL to very bare bones which I will post here: var flashDoc = fl.getDocumentDOM(); var flashLib = flashDoc.librar

  • Creating new work order - error on %001

    Hi all, Creating a new work order from the SAP Work Manager 6.0 application should be a standard functionality, However, on the system of our client, this goes wrong. Upon creating a new work order, we get the error 'Enter a numerical operation numbe

  • Led cinema 27 black screen

    Hi, my led cinema 27 has suddenly lost its picture, and now I have a permanent black screen. Speakers work well, I can listen to a DVD... Could be a hardware problem? Many thanks. OSX 10.7.4, mac mini 2,26 GHz Intel Core 2 Duo.