Connection to server OPC NI

Hello,
I need help, I try to connect a software developped with LabWinows/CVI 9.0 to the opc server of National Instrument.
The tag is "opc://localhost/National Instruments.Variable Engine.1//./QGAPro/5_2" or "opc://localhost/National Instruments.Variable Engine.1//./QGAPro/5_4" for example.
But the program returns "Error: Can't add item to OPC Group. The item ID is not defined in the server address space or no longer exists in the server address space."
I can check the tag with client opc like :
How can I know where is the problem please?
Do you know where is the problem?
Thank you.
Bye. Karine.

You can find below a piece of code.
I can connect to the server OPC with a client test, but I can't in my program.
char opc_target[] = { "opc://localhost/National Instruments.Variable Engine.1//./QGAPro/            " };
static DSEnum_Status status_inline = DSConst_Unconnected;
static DSHandle dsHandle[512] = { 0 };
static void ShowDataSocketError(HRESULT errorCode);
/* This is the callback function for the DataSocket */
void CVICALLBACK DSCallback (DSHandle dsHandle, int event, void *callbackData);
void fieldbus_init(void)
    HRESULT hr = S_OK;
                char chaine_temp[50];
                int i, j;
                opc_target[65] = '\0';
                strcat(opc_target, "5_2");
    hr = DS_Open (opc_target, DSConst_ReadAutoUpdate, DSCallback, NULL, &dsHandle[0]);                  //=> hr : « Opération réussie »
void DSCallback (DSHandle localDSHandle, int event, void *pUserData)
    HRESULT hr = S_OK;
    char message[1000];
    switch (event) {
        case DS_EVENT_DATAUPDATED:
            break;
        case DS_EVENT_STATUSUPDATED:
            DS_GetStatus (localDSHandle, &status_inline);
            hr = DS_GetLastMessage (localDSHandle, message, 1000);                                                              //=> message : « Can't add item to OPC Group.  The item ID is not defined in the server address space or no longer exists in the server address space. »
            break;
    return;
I can't modify tags because this is another software that generates and which is developed by another company.
I have to read these tags to retrieve the associated values (values of a gas analyzer).
Can you help me with these informations please?
Thank you!
Karine

Similar Messages

  • 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

  • Is it possible to connect labview with opc server without using NI dsc Module ?

    Hellow sir,
    I want to get data over labview using OPC server and i am not using any dsc module vi (Alams, print, GUI, security).I am using share variable to get data from OPC server to labview. Now i want to deploy that application to third party computer. (where there is no NI software is installed)
    i am using labview 8.6 and 2009.
    Many ? like....
    1) what is the procedure to install that application in third party computer.
    2) Do i need to use my dsc run time licence..?
    waiting for your valuable feed back.
    Thank you.
    CLAD
    Labiew programmer

    Hi, When you connect to NI OPC Server by creating New I/O Server > OPC Client. You will see all registered OPC Servers running on local machine or remote machine. I used KepServerEx from Kepware and LSIS OPC Server from LG with no problems. Just make sure that the OPC server is running.
    Hope it helps
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    LG.png ‏57 KB

  • Trouble connecting to an OPC server

    Hi guys,
    The problem is connecting to a mass spectrometer, for which I have a dedicated LAN cable connection and an IP address. I can ping the device, and connecting to the OPC server works with the Softing OPC client, by manually entering the IP address of the server. However it does not show up in the remote machines list when I try to connect to it with via new I/O server. Is there a way to connect directly to an OPC server having only it's IP address?

    Our lab was shut down for the holidays period, so I couldn't try anything for a while. Back on it now though.
    Thanks for your suggestions! However, I still can't reach the server. Some more details in this post.
    The server explorer doesn't see the device either. I think both the
    server explorer and LabVIEW actually browse the network looking for
    machines running some kind of Samba (SMB) server? That's at least
    suggested by the characteristic '\\' added to the machine name I put in
    there. I don't think the Mass Spectrometer is running an SMB server. It
    does run http and OPC servers, and I believe that's it. So it's not 'visible' on
    the Windows network. Is that a problem?
    When I enter the IP address of the machine at the new IO server window,
    it automatically adds the '\\' in front and gives the 'No such
    interface supported' error described in the previous post. When I put
    in the IP address of a non-existing machine it gives a different error
    ('The RPC server is unavailable') after a few seconds. So it does seem
    to know there is a machine there, just it can't interface with it.
    Reconfiguring the client side DCOM settings according to recipe above didnt seem to make a difference.
    Anyone?

  • Kepware Server OPC

    Bonjour,
    au sein de notre établissement (IUT) nous souhaitons mettre en place un serveur OPC pour réaliser une supervision globale du batiment (GTC + Supervision de systèmes de prod automatisés) à l'aide de LabVIEW. Nous avons acheté le Serveur OPC Kepware (KEPServer V5).
    Le serveur OPC est installé sur notre "serveur de manip" appartenant à un VLAN de classe 3. Lorsque j'essaye de créer un client OPC (appartenant au même VLAN) sous labview en suivant cette procédure : http://www.kepware.com/Support_Center/SupportDocum​ents/KTSM00032_LabVIEW_Connectivity_Guide.pdf , tout se passe bien jusqu'à l'étape 3.2.2 lorsque j'interroge les variables liées leur valeur reste à 0 en permanence.
    Pour m'assurer que le paramétrage du  serveur OPC était OK j'ai interrogé le serveur OPC KEPserver grace à l'OPC Quick Client (sur un PC client du même du VLAN) et là les données interrogées sont bien actualisées... Donc à priori la config DCOM+pare feu est bonne.
    Que dois je faire ?
    Config Server :
    Windows server 2008
    Labview 2010SP1 + Module DSC
    OPC KEPServer V5
    Config client :
    Windows 7 Pro
    Labview 2010SP1 + Module DSC
    Merci d'avance pour vos réponses.

    Bonjour,
    Je vais vous fournir une quantité d'information qui devrait être capable de vous aider.
    Je ne suis pas sur que tous les liens vous soit utiles, néanmoins ils devraient vous apporter des éléments de réponses.
    Vous trouverez les liens ci dessous :
    1) How Do I Configure My Windows Firewall to Allow OPC Server Communication?
    http://digital.ni.com/public.nsf/allkb/8FB44A1162D​E1B5F862574440072CF0B
    2) How Can I Connect to Remote OPC Servers from LabVIEW Using DataSockets or an OPC Client?
    http://digital.ni.com/public.nsf/allkb/86256753000​5F09C862567660047D840?OpenDocument
    3) Using OPC Client I/O Servers (DSC Module)
    http://zone.ni.com/reference/en-XX/help/371618F-01​/lvdscconcepts/access_opc_servers/
    4) Setting Proper Access for Remote OPC Server When Using National Instruments OPC Clients
    http://digital.ni.com/public.nsf/allkb/5C8A90CD57B​279F286256C2C006F1EB4?OpenDocument
    5) Why Can't LabVIEW DSC Connect to My OPC Server When Server Explorer and DataSocket Can?
    http://digital.ni.com/public.nsf/allkb/9D1690C5B1C​E1D25862572FA0053150D?OpenDocument
    6) What Tools are Available for Debugging NI OPC Servers with DSC and DataSockets?
    http://digital.ni.com/public.nsf/allkb/DB0594FAB81​229818625756400018D37?OpenDocument
    7) How do I Connect to The LabVIEW OPC UA Server VIs Using OPC Quick Client?
    http://digital.ni.com/public.nsf/allkb/26767EBA64F​112AF862579E9004BD679?OpenDocument
    8) Connect LabVIEW to Any PLC Using OPC
    http://www.ni.com/white-paper/7450/en/
    + Quelques liens que j'ai trouvé sur le même sujet qui pourrait être également intéressant :
    => http://www.automatedsolutions.com/technotes/opcser​verconnectivity/Default.asp#DCOM%20Step%201
    => Unable to Connect with Remote OPC Client to KEPServerEX
    http://www.kepware.com/KEP_KB/?solution=/_ui/selfs​ervice/pkb/PublicKnowledgeSolution/d?&id=501400000​...
    => http://www.kepware.com/KEP_KB/?solution=/_ui/selfs​ervice/pkb/PublicKnowledgeSolution/d?&id=501400000​...
    => http://www.automation.com/pdf_articles/Troubleshoo​ting_OPC_and_DCOM.pdf
    Je vous souhaite une bonne journée,
    Cordialement,
    Matthieu RICORD
    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;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

  • I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".

    I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".  I could swear the last time I used cellular data you would see the signal in the upper left corner and I only see "no service" there, I am in a location where I know I should have service.  Is there something I should do to my IPAD?  I tried resetting, I tried clearing cookies and history in Safari (after reading a post n these discussions).  I don't know what to do next. My IOS version is 6.1.3.  I did go into Network from the general tab and I see it says "SIM not provisioned".    HELP and Thank you in advance.

    Hello Theresa818,
    Thank you for using Apple Support Communities!
    It sounds like the cellular data will not activate for some reason on the iPad.
    I found this article that will help you resolve this issue here, named iPad (Wi-Fi + Cellular Models): Troubleshooting a cellular data connection, found here http://support.apple.com/kb/TS4249
    Check for a carrier settings update.
    Update your iPad.
    Toggle the Cellular Data setting off and on under Settings > Cellular Data.
    Restart your iPad.
    Tap Settings > General > About. Locate the Carrier entry and make sure that your carrier is correct.
    If your SIM card has SIM PIN enabled, try turning it off: Tap Settings > Cellular Data > SIM PIN.
    Make sure you're in an area of good coverage. If the cellular data connection works in another area, contact your carrier to report the original affected area.
    Reset network settings: Tap Settings > General > Reset > Reset Network Settings.
    Restore the iPad as new.
    If none of the above steps resolves the issue, make an appointment at an Apple Retail Store, contact your carrier, or contact AppleCare to troubleshoot further.
    I know you may have done one or two of the steps here, so you can skip those.
    Take care,
    Sterling

  • Macbook can no longer "connect to server"

    I have an iMac connected to the new Airport Extreme using ethernet (and wireless).
    I have a macbook connecting to the new Airport Extreme using wireless.
    The macbook cannot connect to the imac using 'connect to server' WHY? And the imac's itunes library no longer shows up on the macbooks itunes as a shared library? Why?
    All of this used to work before my upgrade to the new Airport Extreme. Can anybody help....

    OK.... the is really baffling me...
    Here's my setup:
    Airport Extreme - constant PPPoe connection to ISP - running 80211n only
    iMac conneting to Airport Extreme via ethernet
    Macbook connecting to Airport Extreme via 80211n
    Airport Express connected to Extreme via ethernet
    Macbook Pro and Powerbook and 2nd Express (relay) connecting to Express via 80211g
    iMac also connects to Airport Express via 80211g (in addition to direct ethernet connection)
    So.... here's the problems....
    Macbook and iMac cannot speak to each other. Macbook can see iMac's itunes but gets an error when tyring to connect (unspecified error - make sure port 3689 is open)
    Cannot do a 'connect to server' either way between macbook and iMac.
    iMac can see and connect to both Powerbook and Macbook Pro. It can also see itunes library on both of thses and vice versa.
    HELP!!!

  • Keep getting connection to server error when trying to sign in to iCloud

    I am getting a connection to server error when I triy to sing in to iCloud.com

    This query seems to be related to Edge Code. you can get help from this forum.
    Also EdgeCode doesn't have troubleshooting page but you can get help from Brackets trouble shooting page.

  • PI 7.11: Cannot connect to server using message server:...

    Hello Guys,
    we make the Application Management for a Customer PI System.
    Scenario:
    - the SAP Gui Connection to the ABAP Stack is routed via SAPRouter and Works fine.
      SAP Gui -> our SAP Router -> VPN Box from Customer -> Firewall Customer -> ABAP Stack PI System
    - WebAccess its working fine, the Customer use Webdispatcher on every PI Server...
      Browser -> VPN Box from Customer -> Firewall Customer -> Java Stack (Port: 5xx00 btw. 81xx (Webdispatcher))
    Problem:
    Our Problem ist, we can not proceed the Integration Builder or the ESB, the Java Web Start works fine and open the Logon Screen Correctly -> but i fill the Logon Screen with my User name and Password and press Logon come the follwing Error:
    "Cannot connect to server using message server: ms://<hostname>.<domain>:8134/P4"
    In the Details from the Error Message:
    "<hostname>.<domain>:53404 Reason: com.sap.engine.services.rmi_p4.P4IOException:
    Cannot open connection to host: <IP-Adress of Central Instance> and Port: 53404"
    The Customer says, the Firewall is open with the IP Adresses and P4 Port but i dont think so...
    Can everybody help me, or have tips for me! I have checked a lot of OSS Messages (PI High Availabilty etc... its all correct on the System)
    Sorry for my bad English
    Best Regards,
    Markus

    Hi Markus,
    did you check if the browser is using a proxy? (In this case your scenario unfortunately won't work).
    P4-port should generally be routed via a proxy (described in the help.sap.com), but within the PI-Tools(JNLP) the proxy-usage is not implemented.  There is even a SAP-note that describes how to check the JavaWebStart-Proxyconfiguration, but this won't help either.
    If there is a proxy defined in the browser everything is working fine till you pass the logon-screen but even with the correct "javaws"-settings you won't be able to go on.
    (This problem is pretty bad if you do have developers and the SAP-servers seperated because of security issues. I'm hoping that this malfunction will be solved with upcoming patches.)
    Solution: Establish a connection without any proxy in between.
      E.g.: a terminal server in the same network
    It would be helpful to find more people with the same problem to force a fix from SAP for that.
    If anyone else is having problems with this, please add a comment to this thread.
    Best regards
    Christian

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • Cannot get maile connection to server failed

    followed the instructions for icloud set up in apple support for ipad and iphone even deleted the account and then set the account up with the correct ID and password.  I do use a different ID  than my apple ID for my icloud account.  I use my me.com email address.  I can get into the cloud on my pc and I can send and recieve email when I log into my icloud account but this fails to work on my ipad and iphone.  Attempts to seen or get email on these devices when on a wifi network end up with the message "cannot get mail connection to server failed"
    lee

    Hi HLSdoc,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/ts4002
    Issues sending or receiving mail on iPhone, iPad, or iPod touch
    Best of luck,
    Mario

  • "Connection to server failed" error with Gmail exchange server

    Hi,
    I upgraded my iPhone 4 to iOS 4.3 on Friday and now I can't access my Gmail account using the Microsoft Exchange settings, I just get a "Connection to server failed" error.
    I also have a Google Apps email account for my website and I am able to access it using exchange... it's just my regular Gmail account that I can't access (and that's where all my contacts are stored).
    I can access the account using the regular Gmail email settings but that doesn't sync my contacts over the air, which is the advantage of using Exchange that I love the most.
    I don't know if it is related or not, but I had a really hard time upgrading to iOS 4.3. I guess the update file was corrupt and it put my phone into restore mode. I had to use a different computer for the upgrade to finally work. Because I was using a different computer I had to restore it as a new phone rather than restoring from a backup, so maybe that has something to do with my email problem.
    Message was edited by: KJones75

    I seem to have solved the problem. I deleted my Gmail account from the phone and then changed my Gmail password from my computer, and then tried adding the account to my phone again... and surprise, surprise, it worked.
    I'm not sure why changing the password fixed the problem, but I'm glad it's working again.

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • I keep getting the message can,t connect to server, can't get email, can't send email from outlook account on ipad

    I keep getting message cannot connect to server, cannot send email, cannot get email from my outlook account . This has been happening for past 3 days Feb 2014

    Check your internet connection...
    If you are connected but can't access anything, your WiFi must be slow.

Maybe you are looking for