Remote OPC c ++ dll

Hello

I use an OPC Server (with Data Access 3.0) and I'm trying to develop an application Client OPC Labview on Windows Vista.

I also use a C++ DLL where the activities of the OPC client are made!

Everything works fine if I use this DLL OPC Client to an Application from the Console Windows C++, so I think that all the DCOM settings and other settings are fine.

But if I try to connect and read something with Labview remote OPC Server OPC and "call library Node function' then it is not possible to connect the DA-Session with the point DA!

Can someone help me? Is there a setting in Windows to Labview.exe necessary?

Local OPC Server work well (also with Labview).

Thank you

Hans

I solved the problem (s)!

Problems:

-Labview-> socket Data-> local OPC Server: OK, remote OPC: error

-Mit .NET or ActiveX OPC Toolbox Labview Client: local OPC Server: OK, remote OPC: error

Solution:

Add the line "ole. AuthnLevel = 1 ' in the LabVIEW.ini file.  (C:\Programme\National Instruments\LabVIEW 8.6\LabVIEW.ini)

Now it works!

Hans

Tags: NI Software

Similar Questions

  • VI for registration of remote OPC servers?

    We use the engine tag DSC for save data from different remote OPC servers. DSC requires these OPC servers to be registered before connect you to them. To do this, we open the tag Configuration Editor and choose SERVER > BROWSE NETOWRK OPC SERVERS in the menu.

    This set works well... but now, we want to automate the process. Is there a screw that we can use to register the remote OPC servers? As usual, I tried to search in the vi.lib\lvdsc folder, but I could not find what I'm looking for.

    Is this possible?

    I guess it is to add a few touches the registry or DATABASE file. Maybe we can build a VI that add some keys in the registry? Any tips?

    John Paul,

    All the used and registered remote server for LabVIEW DSC OPC are stored in the registry as you may have guessed. When you know exactly this registry stettings, you could create a LabVIEW VI with the register screw who writes specific keys in your registry.

    What to write to what key?
    1. search on the remote computer recording for the OPC server. You can find it under HKEY_CLASSES_ROOT\ for example, under
    HKEY_CLASSES_ROOT\National Instruments.OPCFieldPoint is a mutual FUND of NI Fieldpoint server.

    2. go to your computer where you want to save the remote OPC Server
    HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW DSC\Remote OPC servers
    This is for DSC LV stored remote OPC servers. If the \Remote OPC servers is not the equipment you could generate this key. (just with default data folder)

    3. Add keys to own because it would be created by the GUI of TCE interface. Basically, you need to copy the same keys (OPC, CLSID, OPC\Vendor server name) as you found them at the point 1. the key to servers remote OPC with the difference that you add the computer name before the name of the server in square brackets.
    For example, the tree would look like:
    HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW DSC\Remote OPC servers
    ------(ComputerName) OPCServerName
    \CLSID
    \OPC
    \Vendor

    The key data are the same settings of REG_SZ data found in 1.

    If you need to register some of the servers remotely on multiple computers that I would recommend to export GUI TCE generated key via the regedit.exe and import it on any computer that would connect to the same remote OPC server.
    If you want to automate the importation without the user interface of regedit.exe, you can call in a prompt, regedit.exe/i/s. E.g. regedit.exe/i/s c:\temp\Remote OPC for LV DSC.reg

    DSC in the DATABASE file stores only the VI, proxies and servers IAK (obsolete).

    Hope this helps
    Roland

    PS: Since it is manually facts and National Instruments does not provide documented APIs or screws to do such things - currently, it is recommended to use GUI TCE to register remote OPC servers-, it can not be guaranteed that this describes the procedure would work for the latest or other versions of LabVIEW DSC.

  • Seting place labview as a remote OPC client

    I'm having trouble extraordinary setting LabVIEW as an OPC client on a remote computer.  I followed the guide of the OPC foundation on Windows (http://www.opcfoundation.org/DownloadFile.aspx?RI=326) dcom configuration.

    On a single machine seems to have had some success.  Kepware quickclient using, I can connect and view the values for all of the tags on the server.  When I use the DSC module to set up a mutual FUND I can show tags, but it does not connect to the server ("Connected?" State of customer variable set to false).  I can't see the value of the flags.

    On another machine I place, I can't reproduce the pooling at all.

    I'm using LabVIEW 8.6.

    Thanks for any help I can get.


  • Why do I get "unable to browse the OPC server on the selected machine. -2147024891 error in GetOPCServerList.vi"trying to connect to a remote OPC Server?

    Software version:

    LabVIEW 2013 (32 bit)

    Windows server 2008 r2 (64-bit)

    OPCenum.exe installed

    Artyom,

    What you run when you get this error?

  • Generic error Datasocket 42 on window minimize

    I use LabVIEW Datasocket connections on LabVIEW 2009 to write to an Kepware OPC server.  I write 64 tags.  It works as expected with local as well as remote OPC server.  The loop that writes each value is able to run and update of values with a wait of 10ms inside the loop.  I have only run problems when I reduce or restore the façade, the block diagram or the window of the probe.  I have 42 error: generic error of Datasocket Open.vi.  This seems unrelated to the DCOM problems that seem to be the cause of this error.  I tried this with local and remote OPC servers, and I got the same result.  Setting loop rates, but 1 second seems too fast it runs without error to launch on minimize.  With 1 second wait, it takes more than a minute to update 64 tags, which is unacceptable for my project.  It is quite easy to simply do not minimize windows while it is running, but that shouldn't be a problem.  I also noticed that several times trying to restore a minimized window, while running the program, I have to click several times on the window in the taskbar before it restores.  I use this on a Dual Core system with 4 GB of RAM 2.8GHz, so the performance of the system should not be a problem.  Ideas or suggestions or additional troubleshooting steps are welcome.  Thank you.

    ejensen wrote:

    Thanks for the suggestions.  I tried setting to basic services, but it did not help.  I also changed the computer for best performance thus minimize and restore are animated is no longer.  I look at CPU and RAM, he doesn't know that it is a question of resources.  After a little more experienced, it seems only to raise errors when I click on the button reduce.  When I right click in the task bar and click on reduce at least, I've never seen the error.  When I click on the button minimize, it happens almost every time.

    Your suggestion to open/close once and write several times sounded good, until I went to implement.  For mutual FUNDS, I have to open a connection to the specific tag I want to write.  There may be a way to open a connection to the server, and then specify the tags, one at a time, but I'm not aware of it.

    My bad!

    I missed the fact that you have a loop in multiples.

    So to change my suggestion too

    Move the open air in a loop For which runs only once and use a tunnel exit on this loop For to create an array of references. A reference for each DS connection. Use this table to the refs of conncetion instead of the table name to control you mainf loop For. Similarly to close.

    Now you'll excuse the following

    A loop to open them all.

    A loop to read.

    A loop to close between them,

    Data taken unite us.

    Welcome to moans.

    Ben

  • Unable to connect to the remote Mitsubishi OPC server using datasocket

    I can read OPC items locally using datasocket, however if the customer is in another PC I get error 1184 when I try to connect to an element. The datasocket select URL works well.

    Both computers are Windows 7 machines in the same workgroup sharing the same username/password.

    I am able to read items through the DSC OPC client (but I don't want to use DSC). This seems to indicate that the DCOM security settings are good.

    I know there is a lot of documentation on remote access OPC and DCOM and I read most of the documentation by OR and other sources, nothing helps. None of the docs are to mention this specific error code. Any suggestions?

    Well, this is typical... After two days of efforts, just 40 minutes after you posted my question I found the solution in another thread of this forum.

    The remote registry service must be running on the server.

    Now I only need to rewind some of the many settings that I did it carefully, to find the minimum working conditions.

  • Install RDCman 2.2 the use Remote Desktop on windows server 2003 fails with the error: incompatible version of c:\windows\system32\mstscax.dll

    2.2 RDCman install remote desktop on windows 2003 server util fails with the error: incompatible version of c:\windows\system32\mstscax.dll

    CAN ANYONE HELP?

    Hi Mordi26:

    This could be because windows server 2003 is not updated with the latest version of the Terminal Server client. With terminal services client 6.0 update... It should solve the problem. Here is the link to download:

    http://www.Microsoft.com/downloads/en/confirmation.aspx?familyId=cc148041-577f-4201-B62C-d71adc98adb1&displaylang=en

  • Security event log getting the message "local computer maybe not the files of the necessary registry information or message DLL to display messages from a remote computer" for all entries. System and application logs do not receive messages

    PC is Windows XP.  The server is Windows 2000.  I have administrative rights on both machines.

    On getting PC security event log do message "local computer, maybe not the files of the necessary registry information or message DLL to display messages from a remote computer" for all entries.  System and application logs do not receive messages

    Hi carmol,.

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the audience on TechNet forum.

    Please post your question in the Sub forum. Link: http://social.technet.microsoft.com/Forums/en-us/winserverManagement/threads

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How fix my computer from vista family premium, after a service pack 1 upgrade vista has been loaded remotely by the norton online assistant: lyuv_32.dll is displayed

    I am a resident in the United Kingdom:

    My initial problem is that as of March 12, I couldn't load my purchased copy of norton antivirus 12 - it said system was incompatible, it's a version of vista Home premium 6 (without service charge pack) - I thought that it would be compatible, as my old anti virus 2011 Norton worked well.

    I loaded the bases of security from microsoft instead, and it seemed to work ok until a few days ago, when the program seemed to be scratched from the computer-not sure why. I could not reload either.

    I got a very detailed answer to my question on how to try to solve this problem in the same microsoft help site - but I thought that it may be better let norton can help me to install the purchased copy.

    When phoning norton helpline assistant said they needed to load remote service pack 1 for me, as an upgrade was required; but there seems to be a problem with the computer stops after download. I called again after 2 hours of waiting in vain to make the computer stop, and norton helpline worker said to restart manually, who led the unsuccessful installation of the upgrade; up to step 2 of 3 (only 2% charged to the top of step 2)

    The computer turned off and started to load, but stopped when a message! oxco190036! 2369/90645(IYUV.32.dll) appeared in the top of the screen.

    Norton hotline seem to have left me to deal with a huge problem and makes 100% worse than before - because after having tried various things in pressing f8 with their orientation; as files to an earlier time (called non-registered time to restore) they could not help me further and was told to contact microsoft myself - number norton gave me was outdated and the helpline was not accessible anyway, as I call me after 18:00 on Friday!

    That's why I used my computer laptop girls to send in this issue of the problem, that I hope can be solved, because I'm not much re load windows from scratch if possible. I'm not a very confident in doing this, because I can only do basic computer tasks.

    Hello

    Perform the steps in the following link and check if this can help:

    Start the restore of the system from a command prompt

    http://Windows.Microsoft.com/en-us/Windows-Vista/Start-System-Restore-from-a-command-prompt

     

    Hope this information is useful.

  • the Remote Desktop (c:\windows\system32\mstscax.dll) services Activex control does not match the version of the client shell

    -What this means and how can I solve this problem?  I have Windows 7 and I use Remote Desktop connection to access a server where I do all my stuff.  I need to solve this problem as soon as POSSIBLE.

    Hi Nicole,.

    The question you have posted is related to computers connected to a server and it would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    I hope this helps!

  • OPC Server/Modbus/C++ Dll

    Hello

    I am currently experiencing this problem and don't know wht to go?

    Laptop 1 (developed Labview interface)

    Laptop2 (same GUI C++ but connected to the material) (.exe file is available and not of C++ code)

    I need interface or connect Laptop1 with Laptop2 so that I can also have the same data in Labview. In simple terms how can I import data from Laptop2 to Laptop1.

    Hi Arrowminds,

    How the C++ code export data?  If we know, and it is compatible with LabVIEW, we can try and get in.  However, because the C++ code is an executable, if it is not designed to export data LabVIEW can receive then we cannot change this option to add functionality and used unfortunately there be a way to do this without the source code.

    Kind regards

  • Connecting a PLC Siemens S7-300 NI OPC Server

    The project of memory Bachelor last year, I have two other are involved, I was instructed to implement a HMI/SCADA system to control the level and flow in several water storage tanks. This must be done locally via a "operator panel" and also remotely via Internet through a webbrowser. These storage tanks and control system is placed on a wheeled demonstration model, so it can be used in classrooms and auditoriums. Therefore, I have a Siemens PLC S7-300 and the latest edition of LabVIEW (ed. professional 2009) available to me. To create an HMI system, we will also acquire the DSC module OR that she would have everything we need (OR OCP is included?).

    Since it is a project of the bachelor and the school is mainly to pay for everything, we are on a pretty strict budget. This means that we have not opted for a solution for the "operator panel" because this would be depends on the way in which the Group and the PLC interfaces. We would like to do for the sake of simplicity is to use commercial laptop computer with touchscreen ability thus having a solution 'all-in-one' low cost, both for the local input & control and ability to web publishing. Now, most of the computers today do not serial agrees, but rather USB ports.

    On the Web server under the title OPC Device Connectivity page, it is specifically indicated "Siemens HMI adapter for S7-300/400 via Serial with HMI adapter". I guess this means the following Siemens unit: https://support.automation.siemens.com/WW/llisapi.dll/csfetch/8774263/hmi_adapter_x.pdf?func=cslib.c... (6ES7 972-0CA1X-0XA0).

    This means that the server of the OCP can only use a connecting series via the HMI adapter for S7-300 directly? Is it not possible to use a USB adapter series without driver with the HMI, or for example the Siemens CP5711 MPI adapter USB adapter? If it is not possible to use a USB based solution, we would have to use an old desktop PC with a Compote series or an additional PCI card and it's something that we would like to avoid.

    Any help on this would be much appreciated.

    -DanJack, NUC Norway

    Through 3rd party providers that I discovered that pilots of NI OPC for Siemens S7-300 Server supports ONLY in legacy communication RS232, no USB connectivity support any. You can only use the MPI for adapter RS232 or HMI for RS232 adapter.

    -DanJack, NUC Norway

  • ReadyNas remote network of sheet errors

    I need help to enter the ReadyNas remote works fine on my laptop. The laptop is a Macbook Pro running Windows 7 Professional x 64 via Bootcamp. Here's what I've done so far:

    1. I've enabled ReadyNas remote on my ReadyNas and install the application on my laptop according to the instructions here: https://www.readynas.com/?cat=52

    2. When installation is completed I got the error message: "you probably have a problem with leaf networks network adapter. You can solve this problem... »

    3. I reinstalled the application and restarted my laptop to make sure that everything was set up correctly

    4. I made sure that there is no gateway address set according to: http://www.readynas.com/forum/viewtopic.php?f=75&t=42500

    5. When I try replacing the .dll file that is mentioned in the post above, I get an error and the remote application does not load

    6. I tried custom - configure the IP address. The custom IP address solves nothing and seems to be reset whenever the application is loaded

    7. I'll try the manual reinstallation of the network drivers for leaves, but I can't find them anywhere. The link in one of the documents is dead.

    8. I checked my anti-virus program and added an exception for ReadyNas Remote, just in case.

    9. I checked all the configuration settings, that I could find associated with the NIC in the sheet. It seems in good health regarding all the but I still make the same mistakes
    10. I'm competent enough to configure adapters and usually solving problems, but I am at a loss on this one. I'd appreciate any help that is up and running!

    Hello cbrien,

    ReadyNAS Remote on Win10 needs a BETA version. See ReadyNAS Remote BETA for Windows

    Kind regards

  • E364xa power supply screen is frozen when you are working in remote mode.

    I use the sample E364Xa screw, which was downloaded with the driver (.dll) of the Web site OR. Power supply screen freezes when a "RMT" sign appears on the screen. Is anyone konow how to solve this problem?

    When in remoote mode, you must go back in local mode to use the controls on the front panel, just like any other instrument. From the Manual:

    When the power is in remote mode, you can return to the front operating mode at any time by pressing the key (Local) If you don't have not previously sent the locking of the front panel control. A change between the façade and the modes of remote operation will not change in the output parameters.

    -AK2DM

  • Remote access to NI VeriStand host on windows

    Hello world!

    I have NIVS 2013 SP1 on windows remote PC, which deploys the system to his (localhost) definition file.  I would like to access the workspace on the remote PC from my local mobile through execution in NI VeriStand .NET API.  A copy of NIVS installed on my local laptop, I could indeed get and set the values of the channels on the remote PC with a console application in c# compiled on my local mobile, as long as I put the IP of the gateway to the distance.   However, without installed NIVS, my console application complains that 'NationalInstruments.VeriStand.APIInterface.dll' is not found.  This NationalInstruments.VeriStand.APIInterface.dll does not exist by itself.  Threads, I searched on this forum, it is likely integrated in one of these "NationalInstruments.VeriStand. * .dll ' installed with NIVS.

    My question is: do I really need to install NIVS on my local mobile to run the c# console application?  I tried to copy all NationalInstruments.VeriStand. * .dll (and the definition of filesystem for sure) on my laptop, but failed.    Any idea?

    Thanks in advance

    I'm not sure that's true. The license may only be necessary on the machine with the gateway. The remote client do not have the license. I think that you should just install the part Support of LabVIEW of VeriStand Installer on the remote client. You will need the complete VeriStand Installer, but you should only select this a subsection, which is not very large.

Maybe you are looking for