Trouble reading OPC Server values with Labview

Hello there,
I am currently working with Siemens Equipment : a Simatic Microbox with an OPC Server.
I would like to read some variables' values provided by the OPC server with Labview 2012 (and DSC module), but I'm experiencing some difficulties.
I have set up my OPC Server as an I/O Server in a Labview projet. Then, I have created some Shared Values to treat them in Labview.
In the Distributed System Manager, I can read NI OPC Client Status :
Active -> true
Connected -> false
Enable logging diagnostic information -> false
OPC interface version -> OPC DA-3
Server ProgID -> OPC.SimaticNet.1
When I want to check any Shared Value, I have the comment : Server Failure.
I think DCOM/COM configuration of the client and the server are good (I can correctly read values with Siemens OPC Scout).
Maybe the issue comes from the connection between the OPC Server and Labview.
Has anyone had a similar problem ?
Thanks in advance,
Jeremy

You don't specify whether the server and the client are on the same PC or not.
I recently run in a situation where the Matrikon client was able to read from a remote server while the Labview program (using Datasocket) could not.
I suggest to try with Datasocket vi's to see what happens.
Paolo
LV 7.0, 7.1, 8.0.1, 2011
Attachments:
Read OPC variant.vi ‏17 KB

Similar Messages

  • NI OPC server communication with B&R plc

    hi,
    I have a NI OPC server in my lab . I want to send the data from B&R plc to the OPC server. I have tried to search for a solution but could not find any.
    Kindly help me in establisihng a communication between the B&R plc and the OPC server.
    Regards

    Did you try installing the B&R PLC OPC server on a computer and then see if the NI OPC server can connect to it?  It might not be the most elegant soloution, but it might work.
    We were having problems with some siemens wincc software that would not connect to the Think&Do OPC server.  So I had to bring the Think&Do OPC tags into LabVIEW and then have LabVIEW broadcast the data so the Semens OPC software could see it.  I did not like doing it, but it worked.
    Other than that, maybe someone else will have more to offer.

  • OPC Server Remote Connection LabVIEW 8

    Hi
    Currently I am trying to access a VI with a Shared Variable from a remote computer using an OPC Client. I haven´t succeed on this becasue I cannot find the OPC Server on the Host Computer.
    Here is what I am using:
    Host Computer:
    Windows XP SP2
    NI Developer Suite November 2005
    LabVIEW 8 with DSC Module.
    Remote Computer: The same as above.
    Here´s what I have done.
    I created a new project with a library that included a Network Published Shared Variable. The VI is quite simple it just generates a number that is written to the Shared Variable. Once the VI was running I opened the Server Explorer on the host computer, browsed My PC and connected to the server Variable.Engine in which I was able to see my shared variable. Then on the Remote Computer I opened the Server Explorer and browsed on my Network Places and when I tried to access the Host Computer I got the following error: "Unable to connect to \\HOST! Make sure that this computer is on the network, has remote administration enabled, and that both computers are running the remote registry service"
    I have tried by using the Matrikon OPC Server Explorer and I got the same results. I read many documents that refer tis problem as a DCOM setting because of the firewall fo XP SP2.
    Here´s a list of the NI documents I reviewed.
    How Can I set up LabVIEW, LabVIEW DSC, and Lookout to work with the windoes XP firewall
    URL: http://digital.ni.com/public.nsf/websearch/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument
    Setting Proper Access for Remote OPC Server When Using National Instruments OPC Clients
    URL: http://digital.ni.com/public.nsf/allkb/5C8A90CD57B279F286256C2C006F1EB4
    I never got the results I expected. Then I tried the Matrikon OPC Simulation Server and the Matrikon OPC Server Explorer(Client) and I Succesfully connected between Matrikon servers and clients.
    My project is based in accesing the LabVIEW OPC server with a generic OPC client but I cannot get the client to connect to the server.
    I will apreciate some advice on this issue.
    Marcos

    Marcos,
    If you are using two instances of LabVIEW 8, I would first take the OPC part out and just try viewing Shared Variables on the remote computer.  This needs to work.  One document to check is the following KB: http://digital.ni.com/public.nsf/websearch/6E37AC5435E44F9F862570D2005FEF25?OpenDocument. I would also make sure the opcenum.exe service is running on both machines. 
    Once browsing to Shared Variables works, you can test the OPC aspect of the Shared Variable Engine.  Server Explorer is an older OPC 2 client, but should work in most cases to browse to OPC Servers -- you'll need to make sure the registry settings on the host computer are set up correctly as per the KB you mentioned, and also make sure to connect to the OPC Server, add a group, and add items manually from within Server Explorer, rather than using the Wizard.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • OPC Server Issues with Lookout 6.1

    Hello All,
    I have an application, using Lookout V 6.1.  I have copied the files from a Lookout V 6.0 application that all ready works.  The Lookout package is communicating using the Helmholz Step 5/Step 7 OPC Server to a Siemens S7-414H processors (a redundant system).
    The previous application worked fine, but it was done by another engineer who is no longer with our company.  The new application, I keep getting the following message:
    "PC/OLE error (1): Configuring OPC server (10): The item ID is not defined in the server address space or no longer exists in the server address space. (C0040007): Item (PRO1.HMI.PCV_PB_CLOSE_12)."
    I have checked this item out using the Helmholz OPC Test Client, the tag does exist inside the PLC and the OPC Test Client can read the data just fine, however Lookout does not appear to be communicating with the OPC server.
    Any help would be greatly appreciated.  Like I said, I can get the OPC Test Client to communicate, but not the Lookout project.
    Thanks for the help.
    Best Regards,
    John Blaser
    Design Engineer
    Mcaps Inc.
    [email protected]

    Have a look at the OPCClient object, as well as some expressions on the panel in the previous application. Did the previous application use any customized Access Path for the items like the attachments?
    Also try "Flat", instead of "Hierachical" for browsing option. After you change to Flat, refresh the object in Object Explorer.
    Message Edited by Ryan.S on 05-27-2007 10:21 PM
    Ryan Shi
    National Instruments
    Attachments:
    untitled2.JPG ‏7 KB
    untitled1.JPG ‏45 KB

  • Trouble getting consistent voltage readings with LabVIEW using a 1102/B

    Here's the situation:
    I have an optical sensor with reflector that I'm using these to determine the velocity of a rotating wheel. (actually it's a spool of cable)
    no beam reflection = 0 Vdc (actually it's floating from 0 - 2 volts)
    beam reflection = 10Vdc
    This is hooked up to an 1102/B channel configured for reading voltage in MAX
    Now, everything is fine at slower speeds.  The trouble is when the velocity increases...
    I'm using a DAQmx read VI in LV 7.1 to read the virtual channel I set.  It's in a while loop, outputting to a chart.
    The reads are missing reflections at higher speeds, but only seems to happen in LabVIEW.  The cable needs to be letting out at 2 ft/sec.
    Now, the sensor has an indicator light that says when it's seeing the reflected beam.  When I spin the wheel by hand (faster than the necessary speed) the sensor says it's picking up the reflectors (2 at 180 deg apart).  When I open MAX, and the test panel for that channel, I see that I have to increase the "sampes to read" to about 5k and the "rate" to 5kHz.   At that point, MAX  sees every beam reflection as well.
    Within LV, it still misses...  even with the loop delay set to 5ms.   I'm hesitant to go much lower with the delay... 
    The final destination for this reading function will be in a fairly large VI with a lot of serial communication to external instruments.
    Anyone have any advice?
    Thanks!
    Chuck

    Hi Chuck,
    Looks like you are configuring a DAQmx task/global channel
    My suggestion would be why not use any continous voltage read examples you will find in the examples shipped with LabVIEW?
    Go to examples>>Hardware input output>>DAQmx>>Analog measurements>>Voltage in this folder find and use the example VI cont-acq-volt-int-clk.VI ( named something like that ) read its documentation to know how to use it
    Or find the VI here
    any doubts, do get back

  • OPC server error with Lookout 5.1 that was working with Lookout 4.5

    I was running a file on Lookout 4.5 with Field Point explorer 3.0 with field point objects. I recently upgraded the Lookout to 5.1 and Field Point Explorer was uninstalled. Now when I try to open my old Lookout file, I cannot control through the field point objects and I am getting the following error: OPC/OLE error. OPC server not registered properly (63). Invalid class string 800401F3.

    Hello,
    Thanks for contacting National Instruments. There are three known reasons that you may get this error.
    1. IAK file not setup or it has been moved or is missing.
    This error is easy to reproduce. In order for the OPC FieldPoint Server to work, it has to launch the FieldPointOPC2.exe which has looks at a registry key for FieldPoint Explorer. In this registry key is the path to the last saved or loaded IAK file. If this file has moved or has been deleted, then you will get this error. This also happens to customers that have upgraded their FP Explorer and haven't opened up their IAK file and saved it.
    2. OPCproxy is not registered. Which means the opcproxy.dll or opccomn_ps.dll are not registered or are version 1.0 (can be registered by running "regsvr32 opcprox
    y.dll" and "regsvr32 opccomn_ps.dll". The opcproxy.dll and the opccomn_ps.dll are located in the system32 folder in the WINNT directory.
    3.OPCserver is not registered (can be accomplished by running the .exe with a /regserver switch) . The Fieldpoint OPC server is located in the following path: [drive letter]:\Program Files\National Instruments\FieldPoint. From a DOS prompt you can manually register the EXE by going to that directory and typing FieldPointOPC2.exe /RegServer. In a dos prompt the command line looks like this (also see attached picture):
    c:\cd c:\Program Files\National Instruments\FieldPoint
    c:\Program Files\National Instruments\FieldPoint\FieldPointOPC2.exe /RegServer
    Hope this works. If it doesn't, then I suggest that you uninstall all NI software and try to do a fresh install. This will properly ensure that all the services and servers are registered.
    A Saha
    Applications Engineer
    National Instruments
    Anu Saha
    Academic Product Marketing Engineer
    National Instruments

  • OPC connectivi​ty with labVIEW without datasocket​s

    Hi,
    I wish to know how do I achieve OPC connectivity in LabVIEW without using Datasockets and DSC module ?
    Regards
    Ashutosh

    One option would be to write an OPC Client yourself using VB/C++ and call it from LabVIEW. 
    Another is to use existing ActiveX controls for OPC.  Like this one (just as an example.. I have neither tried it nor endorse it):
    http://www.opcactivex.com/
    -Khalid

  • Problems reading the serial port with labview 5.1.

    I open the example serial.vi , I select write to serial port, run the programm, I don`t have any problem. But when I select read serial port, I get the error code 16392and hex code error x4008. I need to know what can I do? Thanks a lot

    Any time you get an error in LV you can right click on the error cluster indicator and do a "Explain Error".
    If you do this for the error code you reported, the explanation says that it was a framing error.
    In serial communications, a framing error indicates that the hardware was not able to detect a start bit, data then the stop bits that comprise a frame.
    This prompts me to suggest that you check you port setting on the serial port. You want to make sure you are setting the port for the correct;
    Number of start/stop bits,
    Baud rate
    data bits
    parity (just for good measure)
    and hardware handshaking.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I keep getting a message reading "The server responded with an error...Make sure the URL is correct. Error 404" How do I correct this issue?

    The URL https://calendar.google.com/calendar/dav/[email protected]/user///calendar.google.com/calendar/dav/[email protected]/user/ encountered HTTP error 404. Make sure the URL is correct. How do I correct this issue so that I no longer see this message? Your help will be greatly appreciated.

    I simply un checked calendar in my account settings and closed ical.
    I checked it again, and opened ical.
    Thanks for the tip Linc Davis! but it works without deleting the google account completely. this was pretty straighforward and fast.

  • 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?

  • Can Labview v7.0 talk to a Micrologix 1100 PLC via Lookout Protocol Drivers OPC Server v4.5?

    Micrologix 1100 <-> Lookout Protocol Drivers v4.5 <-> Labview v7.0
    Hello all,
    I am helping a local company to use their existing seat of Labview v7.0 to talk over Ethernet with a new Micrologix 1100 PLC.  We were hoping to use their existing OPC server that came with Labview (circa 2000) so that they do not have to purchase a new OPC server.  Their Labview package is the "NI Developer Suite Professional v7.0 Control Edition" which comes with a "DSC Module" which contains an OPC server called "Lookout Protocol Drivers OPC Server v4.5 (build7)".  This software came out several years before the Micrologix 1100 was born, but OPC is supposed to be a cross-platform, cross-generation standard isnt it?
    So, when I set-up the OPC server, it asks me which type of PLC I have and the only choices are AB_Logix (Micrologix 1500), AB_PLC2, AB_PLC5 (15 different flavors), and AB_SLC500 (5 different flavors).  Can I use one of these that might be similar to the ML1100?  I definitely want to use ethernet, not serial.
    My application is just reading and writing a couple of variables from/to the Binary, Integer and Float data storage locations approx once per second.
    Does anyone see a problem doing this without having to upgrade the OPC server to something that "officially supports" the ML1100 (Like Kepware)?
    Thank you very much!!
    frenchy

    Hi Frency,
     You can always just try the 1500 and cross your fingers!  We could try to speculate on the forum, but a quick test would certainly be a better use of time.  However, I do recommend that if you can upgrade the OPC server to one that supports the 1100 driver you should do so.  Kepware and NI-OPC Servers both support this device.
    Cheers, 
    Brian A.
    National Instruments
    Applications Engineer

  • Reading teststand variables with labview??

    I'm trying to create a vi that will read the uut serial number from teststand and compare it to a second scan from the operator. Is there a function I can put on the block diagram to read the teststand variable? I've read the using teststand with labview but it's still unclear how to do this. Could I just pull the serial number from the UUT dialog that the user starts the test with instead? The other problem is this is a 4 uut test panel so I need to make sure I compare the correct uut serial number info. Any ideas?

    The name of the variable is RunState.Root.Locals.UUT.SerialNumber. When you create your VI, have a string control that you pass this in. This is done when do the Specify Module as shown below. Here's an example sequence and VI as well. You can also make it a bit more complicated by using the sequence context and the TestStand Get Property Value function.
    Message Edited by Dennis Knutson on 05-01-2007 04:16 PM
    Attachments:
    Specify Module.PNG ‏29 KB
    TestStand Example.zip ‏9 KB

  • Reading RFID tags with LabVIEW

    Is there an RFID reader which is compatible with LabVIEW (preferably from NI)?
    I'm looking into tagging test samples and then reading sample data with LabVIEW.  Has anyone done this?
    I'm just starting my research so if you can give me some pointers or information about RFID in general it would be useful (costs, suppliers, caveats, and so on).
    Thanks,
    Dave

    Hi Dave,
    We have a DevZone tutorial on The State of Radio Frequency Identification (RFID). Take a look through this, it has a lot of information. Also, scroll down to the bottom of this page, it discusses what NI products can be used for RFID reading. We also have a Case Study called "Using National Instruments Software and Hardware to Develop and Test RFID Tags".
    Hope this helps a bit!
    Regards,
    Claire Reid
    National Instruments

  • Error -2147467259, can't add item to OPC Server

    I am using a DataSocket connection to read/write through an OPC Server (GE SRTP) to PLC software (PME).  Everything works fine on my 2 different development PC's in my office, both in .vi form, and executable.  I have distributed my executable on our network, and 2 of the 4 PC's we use to test product work fine.  The other 2 PC's have the same problem, error -2147467259, can't add item to OPC server.  When the OPC Server is called by LabVIEW, it launches successfully, but immediatly shows the 'can't add item to OPC Server'.  I believe that it has to do with the registry.  I registered the opcproxy.dll, and it still fails.  LabVIEW 7.1, Windows XP machines.
    Thanks, Alan

    Duplicate post, please refer to:
    http://forums.ni.com/ni/board/message?board.id=140&message.id=23173&requireLogin=False
    For original thread.
    I would like to echo Sam's inquiry about launching the OPC server outside of LabVIEW and verifying that it can be connected to.  Also, under what user name is the OPC server being launched?  Sometimes you can run into trouble if the user name is not the current user logged onto the system, but I haven't heard of it causing this error.  You can see what user launched the service under Control Panel >> Administrative Tools >> Services.  You can verify the default user running the application by going to Control Panel >> Administrative Tools >> Component Services and navigating to Component Services >> Computers >> My Computer >> DCOM Config  Right click on your DCOM server and select Properties.  Then go to the Identity tab and make sure The Interactive User is selected. 
    Brian Coalson
    Software Engineer
    National Instruments

  • Kepware opc server

    How can I configure KEPware OPC Server with Labview 7.1 or Labview 8.5 DSC.
    I would appriciate, if you guys give the information link or tutorial link.
    Thanks

    I haven't done this with version 8.5 yet. It will use the shared variable to link to an OPC server.
    http://search.ni.com/nisearch/main/p/sb/navsRel?q=shared+variable+dsc+&x=16&y=5
    Version 7.1 uses the tag engine to connect with an opc server.
    The two labview versions use different methods to talk with an opc server.
    Which labview version do you really want to use??

Maybe you are looking for