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

Similar Messages

  • 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

  • Interfacing Beckhoff EK1100 with LabVIEW without using any other hardware

    Hello All,
    I'm new to Beckhoff & I have EK1100 with EL2809 & EL3054. I want to interface with EK1100 with LabVIEW with PXI or cRio or any other hardware.
    Is there anyone who can explain how?
    I'm using the following sofwares & drivers.
    LabVIEW2012
    EtherCAT Acquisition Driver
    EtherCAT Acquisition Library for LabVIEW
    TwinCAT ADS Library v3.0.3
    Please suggest at the earliest.
    Regards'
    Love Diwan |+91-9810013576

    cross post
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • Possible to use mySQL, an open source program with Labview without the use of toolkit, just like we can do with MySQL with Command line.

    Hi i am trying to see if I can use sys exe .vi to execute Mysql commands. Is it possible to use without toolkit?
    regards,
    Clement

    Hi. I know there's a free toolkit that use ADO. But the problem is that my company not wish to splurge on the purchase of MS database server or  alikes, but prefer to run MySQL. So can I do the labview with the MYSQL only?
    Clement

  • How can I make a projection of an image (diaporama) with LabView?

    Hi, I would like to project an image (or better a matrix stored in a table) on a second screen (or videoprojector, or whatever) connected to the computer. In two words I would like to do what PowerPoint does by pressing on "diaporama".
    Does somebody knows if that is possible with LabView (without scrolling the LabView window on the second screen since that doesn't make a FULL SCREEN projection of the image)?
    Hope somebody can help
    Thanks
    TonyMontana

    Tony,
    I am not sure I understand exactly what you are trying to do as I never use PowerPoint.
    At NIWeek in 1999 (if I recall correctly) David Moore gave a presentation that used a program he wrote entirely in LV.
    I have a program which runs a slide show on a second monitor (projector). All the controls are on the main screen and the display on the second monitor consists of a simple subVI with a picture indicator sized to fit the projector window. The subVI keeps its front panel open and gets called every time the image updates.
    This is a work in progress and has not yet been used in public.
    Lynn

  • What is Procedure for OPC Sever to communicate LabVIEW 7.1 with PLC (Any Make)

    we want to use OPC Sever to communicate LabVIEW 7.1 with PLC (Any Make).Can someone tell what is the procedure for the same and how to configure the OPC Server?

    Hey Sugam,
    Did you try to look into de Developer Zone in NI? Here are some Articles that could help you to get started:
    1. Tools for Troubleshooting OPC Interface Problems:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/401CB3A4E216356286256BC7004B5831
    2. Accessing Remote OPC Server Using DataSocket: http://zone.ni.com/devzone/conceptd.nsf/webmain/D5DC903EC6F9320A862569EE007FEC7D
    3. Connecting LabVIEW to an OPC Server through a DataSocket Connection: http://zone.ni.com/devzone/conceptd.nsf/webmain/DF8C0A4BA2E2B22A86256A3700592BEA
    In short, you have to make your OPC server to run in your machine (you have to look into the documentation from the other manufacturer), and be familiar with NI Server Explorer (article 1 above helps with that) and you have to access the tag with datasocket or Tags (LabVIEW DSC). If you had LabVIEW 8, we introduced the concept of variables and you could configure the variable to access this tag.
    Hope this gives you an idea what to do.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • What changes are needed in Server Operating system using OPC with Labview

    I am a novice trying to connect Labview into KepwareEX OPC server. I am using MS Windos XP on both sides. at first I could see no OPC server I checked with the Kepware and they suggested me to fix the DCOM configuration on the Server. at last I saw the OPC Server and their client connected to it.
    When I try to assign a Datasocket connected to a control on Front panel in to OPC. System Browses and see the OPC server but after selecting the tag. when I run the software, connection Lamp gets red and this Error comes up ""Can't connect to OPC server. Registery Access denied" . the Kepware  quick client is working OK. and Labview got connected when I tested it on the same server. I think there is something wrong with Server OS configuration cause I can not See the Labview OPC Server too, which is installed but I am not using it, Can anybody help me ?

    Hello:
         When you try creating a new I/O server and when you select OPC, you should be able to see the list of OPC servers installed in the system. You can select LabVIEW OPC and select a I/O item from the configure OPC client instance.
    From what I understand you are able to connect from LabVIEW just fine. Are you able to use server explorer and connect to kepware? The following tutorial will step you through using OPC servers with LabVIEW.
    http://zone.ni.com/devzone/cda/tut/p/id/3742
    DSC is LabVIEW add-on for developing your HMI/SCADA or high-channel-count data-logging applications. With the DSC Module, you can interactively develop a distributed monitoring and control system with tags ranging from a few dozen to tens of thousands. The following link has a TCP modbus presentation that you will find useful.
    http://www.ni.com/labview/labviewdsc/upgrade.htm
    Please let us know the steps you are following to configure the OPC connections and post some snapshots. This will help in better understanding.
    Thanks and hope this helps
    Regards
    Avi Harjani

  • Error when trying to set up OPC I/O server with LabView 2009

    Hi.I get an error when I try to set up OPC I/O server with LabView 2009 and the DSC module. If I open an empty project, right click ”My Computer”. Select new / I/O Server… and then OPC Client, the following error appears: Unable to browse OPC Server from the selected machine.Error -2147467262 occurred at GetOPCServerList.viPossible reason(s):LabVIEW: (Hex 0x80004002) No such interface supported.  I have tried to repair LabView, but with no luck. Any idea what it could be?

    The problems are not related to each otherOk then. Lets try getting this solved. Lemme dig......

  • Help!!! How to get the recovery time of transient response of a power supply with Labview basic package without analysis option?

    How to get the recovery time of transient response of a power supply with Labview basic package without analysis option? Does anyone have any idea or some similar function SUBVIs?
    Recovery time of transient response is defined as the time from the beginning of the transient to the voltage point on the waveform fallen into 10percent of the overshoot. Well, the waveform is something like a pulse with a soft slope.

    I recommend plotting your data on a graph on paper. Take a look at the data, and determine what is unique about the point you are looking for. Look for how you can teach your program to look for this point.
    I have written several algorithms that do similar, one in fact being for a power supply, the other being for RPM. Neither algorithm used any advanced analysis tools. They are just a matter of determining, mathematically, when you achieve what you are looking for. Just sit down with your graph (I recommend multiple copies) and draw horizontal and vertical lines that determine when you get to the point you are looking for. You are probably going to have to reverse the array and start from the end, so think in those terms.
    If you have trouble, emai
    l me a bitmap of the graph, and what you are looking for and I will try to be of further assistance. Don't do that however; until you you have given this a few tries. Your solution should be involve a lot of logic on analog levels.
    Good luck

  • OPC Server Connection not possible (with LabView 7.0 it is working)

    We have used LabView 7.0 to view OPC items on a remote server (Windows CE).
    On WindowsCE it's not possible to browse the remote registry, therefore we
    make the registry settings on the client Computer and are setting the
    "RemoteServerName". For LabView 7.0 it was working.
    With LabView 7.1 when we try the same with the sample "Browse to OPC Item.vi"
    we get the Message Box "NI Network Browser Error!" "This OPC Server does not support
    the interface: IOPCBrowseServerAddressSpace error code - 0x80070005 Access denied!"
    Has any one an idea what has changed since LabView 7.0.
    The OPC Server has also an OPCEnum running. Is there any way to read this information?
    Here are the whole registry setting for the local machine to connet to remot OPC-Server:
    REGEDIT4
    [HKEY_CLASSES_ROOT\AppID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
    @="Inficon Quadrupol Massenspektrometer DA"
    "AuthenticationLevel"=dword:00000000
    "RemoteServerName"="192.168.0.206"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA]
    @="Inficon Quadrupol Massenspektrometer DA"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\CLSID]
    @="{4841A238-5E78-48AB-A9ED-666AD68F4841}"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC]
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC\Vendor]
    @="Inficon"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
    @="Inficon Quadrupol Massenspektrometer DA"
    "AppID"="{4841A238-5E78-48AB-A9ED-666AD68F4841}"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{63D5F432-CFE4-11D1-B2C8-0060083BA1FB}]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{CC603642-66D7-48F1-B69A-B625E73652D7}]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\ProgID]
    @="Inficon.Quadrupol.Massenspektrometer.DA"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\VersionIndependentProgID]
    @="Inficon.Quadrupol.Massenspektrometer.DA"
    Regards, Robert

    Hi Robert
    LabVIEW 7.1 implements some new security features dealing with DCOM that were not in 7.0. Windows is moving in this direction, and National Instruments decided to follow suit. 7.1 requires a certain level of authentication from the server. If this is the issue in your case, it can be resolved with the following steps (this is for Windows XP; CE will probably be different):
    1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
    2. On the tree on the left, expand "Component Services >> Computers >> My Computer >> DCOM Config.
    3. Your OPC server should be registered as one of these items. Right-click on your server and select "Properties."
    4. On the "General" tab, change the "Authentication Level" to "Connect."
    If this property is already set to Connect or Default (and the default setting is Connect) then this will have no effect.
    You can also try checking some of the other settings:
    1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
    2. On the tree on the left, expand "Component Services >> Computers >> My Computer
    3. Right-click on My Computer and select "Properties."
    4. On the "Default Properties" tab, make sure "Default Impersonation Level" is set to "Identify."
    You may also want to look at the "COM Security" tab to make sure your computer has the right permissions.
    If all else fails, you can try adding the line "ole.AuthnLevel = 1" to the LabVIEW.ini file. This should reverse some of the changes to 7.1.
    regards
    Manuel Wielander
    National Instruments

  • Closing without closing RT engines VIs with LabView 8.0

    In LV 7.1 you clicked 'Closing without closing RT engines VIs' in the File menu. How does this work with LabView 8.0?
    Is the only way to Configuring Startup VIs on LabVIEW Real-Time Targets or to get the  Application Builder?

    I think this knowlege base entry explains the solution to your question. Please let me know if this isn't what you are talking about.
    http://digital.ni.com/public.nsf/websearch/464F3407A6D48627862570FC0001CD35?OpenDocument
    Casey Weltzin, National Instruments

  • With Labview what do I need to run vi's on computers without Labview installed

    With Labview, how can I install my VI's on another computer to run them with runtime eng. Do I need additional software or ?

    On your development computer, click on Tools -> Build Application or Shared DLLs. Select Application and fill in the rest of the boxes with proper information (click Help button for more info). When all info is correctly filled, click on Build button. This will create an EXE file. On the other computer, install the Labview runtime engine. You can do this by using your regular Labview developer CD. Run the setup program but, when prompted for items to install, uncheck everything except the runtime engine box. Proceed with setup. This will install only the runtime engine on your target computer. Transfer your EXE file to the target computer. Run the EXE file, it should work.
    - tbob
    Inventor of the WORM Global

  • Can i communicate with labview, using ethernet or seriel modbus.

    Is it possible to communicate with a i/o module and labview. I can communicate with ethernet, canbus(cscan, devicenet), rs232(modbus).
    What is the easiest solusion.
    Is it necessary to buy PC-cards for the communication or have only to download some drivers.
    Thx

    Hello,
    To communicate with a CAN/DeviceNET bus you will need an interface card in your PC. NI has such cards along with LabVIEW VIs:
    http://sine.ni.com/apps/we/nioc.vp?cid=1329〈=US
    http://sine.ni.com/apps/we/nioc.vp?cid=1311〈=US
    To communicate with Modbus, you will NOT need any special cards but you do need software drivers for it (you'll obviously need an Ethernet card for TCP/IP and Serial port for RS232). There are several options for these drivers, however:
    1. Write your own driver VIs. You'll basically implement the Modbus protocol in LabVIEW. Modbus is a simple and open protocol.
    2. Try to search the Net for such existing VIs. I believe someone has already written such Modbus VIs.
    3. Use the Industrial Automatio
    n OPC Servers suite from NI:
    http://sine.ni.com/apps/we/nioc.vp?cid=4584〈=US
    4. Use any third-party OPC Server for Modbus.
    NOTE: in case you opt 3 or 4 above: though you may use DataSocket in LabVIEW as an OPC Client, you may want to consider LabVIEW-DSC which has a built-in OPC Client, and hence better support for OPC.
    Hope this gives you some options.
    Regards,
    Khalid

  • Problem with Labview and an ARM Cortex

    Good morning,
    I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
    I use the SDK and have followed the tutorials.
    But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
    "Argument 'DARMSTM' not permitted for option 'device'."
    It seems that Keil does not allow an ARM Cortex from ST as the device.
    Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
    I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
    Did anyone already have this error or know how to solve it
    Thank you for your answer and sorry for my bad english.
    Regards,
    Raphaël VAISSIERE

    Hi Raphi,
    So let me make sure I understand,
    The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device" 
    If you open the same project in Keil uVision, it runs fine
    Here are my questions:
    1. So how does the code run when run through Keil? does it deploy and run fine?
    2. Did you follow the porting procedure completely?
    Your target STM32F103RB  is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
    To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller. 
    You also need to port the Real-Time agent to it.
    I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
    Thanks,
    National Instruments
    LabVIEW Embedded Product Support Engineer

  • Error, in Getting started with Labview. Chapter 3, part 4.

    Hi.
    Still struggling on, trying to find the time to work through the "Getting Started with LabVIEW" document.
    Only 19 days left to go, and I'm still only in chapter 3!...
    Right.  In the "Saving Data When Prompted by a User" exersise, part 4...
    4.   Right-click the Signals input of the Write To Measurement File
          Express VI and select Insert Input/Output from the shortcut menu to
          insert the Comment input.
    Problem is, that option is greyed out, so not available!...
    I did what the instructions said, I right clicked on the "Signals" input, and it doesnt do what it says on the tin!
    Any pointers?   Please don't mention search the help, I've crashed the entire LV environment 3 times now, trying to search for something in there.  It's OK if it finds someting, but it seems to bomb at times, when there is some ambiguity when searching.
    Also, I won't be able to do anyting with any replies for a day or two, as I have to go up country to a customer, and mess about with hot oil, high volts, and lots of RF.  It never ends.   (I've still got the day job to do, while trying to fight my way through this "evaluation".   30 days of "Use" would be better, than 30 calendar days for some of us.)
    Regards.
    Dave Baxter.
    Technical Manager: AR-UK Ltd.
    AR United Kingdom
    OK... Who let the smoke out?

    Hi Dennis, and everyone else..
    That is not how it looks when first dropped on the BD.  On my machine, it is partialy expanded by default, after you clear the Configure dialog that pops up ocupying most of the screen.
    Again, if it makes a difference to the way the Right Click shortcut menu works, it should be documented in the Getting Started document, especialy as it seems to be a critical point.
    OK, explain this...
    I've just rubbed out the save to file VI, cleaned up the broken wires etc, and then planted a new one on the BD.   Once I cleared the Configure dialog that covers up most of the screen before you see it the first time, the VI was partialy expanded.  I forget the exact list, but "Signals" was not at the top.
    I did *EXACTLY* the same again, deleted it, cleaned up, and then planted a fresh new one.   That DID appear that time with nothing but the "Signals" item showing, and two down caretts below that, indicating more items.
    So......
    Why the different behaviour each time, on the same BD, in the same session.   Some underlying working data not being correctly initialised when invoked?  Of course, that never happens, right? ('C' programmes eh?)
    Trying some more, it seems the behaviour loosley depends on just how close to the edge of the While loop grey border you place it.   Odd.   I have a 1280x800 screen to play with, and a 1280x1024 second screen I use for the Getting Started document.  That is the absolute maximum I can have, due to hardware limits.
    I also find, that if you fully expand the "Write to Measurement File" VI block, then fully collapse it, then expand it again, all the items in that list have changed places!  Why?
    I had noticed earlier that there is no uniformity in the layout of even the items common to many if not all VI blocks (error in, and error out to name but two) Sometimes one is above the other, sometimes the other way round, sometimes they are not even ajacent to each other.   Has that been done as a source of minor ammusement or something?
    Talking to another colegue here, who just wandered in to see how I was getting on with this.  Seems he also has tried the introductory entry into LV (V8.something) in the past.  But he too, found too many things that behaved differently from one time to another, so abandoned it as a lost cause, then decided to learn how to use Visual Basic with NI-GPIB IO instead.   Not without issues either he said, but at least it all behaves exactly the same, each and every time.
    End of the day now...
    Regards.
    Dave B.
    OK... Who let the smoke out?

Maybe you are looking for

  • How to get all data from inputstream?

    I have written a program to download pages from web sites, but sometimes I can't get all the content of the page, How can I do?

  • Mobile stolen and I want to turn off the device and locate it

    heelp me : Mobile stolen and I want to turn off the device and locate it  

  • Wip Calculation in Collective Order

    Hello Sap Gurus, We have created Collective Production orders in which when we are confirming order production will get automatically confirmed as consumption in superior order. When we are calculating WIP for superior order, it is giving no values.

  • 508 compliance TouchUp ReadingOrder tool

    I'm using Adobe Acrobat X Professional. I'm trying to make a PDF 508 compliant. Certain photos in the PDF don't qualify as tags for some reason, and the TouchUp ReadingOrder tool isn't allowing me to choose a tag region around these photos, all the s

  • MacBook Pro - late 2013 Battery Life declining

    I have noticed in the last couple of weeks that my Battery life is not what it used to be. Until recently, I would be able to charge overnight, and then take to work with me and have on most of the day without being plugged into the mains and still h