Distribute measurment studio application with opc conntection to field point

I have written an Measurement Studio application with an DataSocket connection to an OPC Sever of an field point 1808. If I distribute this application to another computer I can't get a connection to the OPC Server of the field point. The application works fine on the developent computer of the application. On the other computer is just installed the MAX and the drivers from the Field Point CD. As well I configured the Field Point on that computer. We I browse for an OPC tag in the distibuted application I am not able to access any OPC server, even if I see them. Does anybody have an explanation for that?
Thanks Bernd

Hi Daniel,
sorry that i answer you so late.  I got an error like "opxproxy.dll could not be found". So meanwhile I checked the system and the opxproxy file was found in the "winnt/system32" directory. After i register the opcproxy.dll manually with the shell command " regsvr32 opxproxy..dll" everything was working fine. Normally, this file should register itself automatically.
Bye
Bernd

Similar Messages

  • Distributing a java application with fewer files

    I'd like to distribute an application with the JRE but would like to reduce the number of files in the distribution. The JRE alone requires several JARs and other license files. Can the JRE be repackaged into a consolidated JAR with my application without breaking the licensing rules?
    thanks,
    Paul

    This does not sound like a Java problem. Go into your W7 control panel and make sure the ODBC driver is correct. Make a new DSN for your system and see if you can connect. You may have to reinstall the ODBC, it souds like something there is having a problem.

  • Any way to distribute a javafx application with embedded JRE as a standalone?

    Hey,
    I'm looking for a way to distribute my javafx app, but I want a customer to be able to run it as a standalone (i.e. without installation).
    I know I can distribute a jar file but it's without the embedded JRE.
    Only way I see to embed a JRE is via building an installer.
    Any way I can distribute say an EXE file that when double clicked just runs the app with JRE embedded inside?

    I have already read that guide.
    Here's the relevant section:
    Table 3-1 JavaFX Execution Modes
    Execution Mode
    Description
    Run as a standalone program
    The application package is available on a local drive. Users launch it using a Java launcher, such as java -jar MyApp.jar, or by double-clicking the application JAR file.
    Launched from a remote server using Web Start
    Users click a link in a web page to start the application from a remote web server. Once downloaded, a Web Start application can also be started from a desktop shortcut.
    Embedded into a web page
    JavaFX content is embedded in the web page and hosted on a remote web server.
    Launched as a self-contained application
    Application is installed on the local drive and runs as a standalone program using a private copy of Java and JavaFX runtimes. The application can be launched in the same way as other native applications for that operating system, for example using a desktop shortcut or menu entry.
    According to this, only way to use a private JRE is via the 4th option which means installation.

  • Distribution application from measurement studio

    Hello,
    I develop under VC.NET 2003 (C++) and MStdudio 8.1. On the development
    platform everything is fine. But When I make a setup project and
    install the program on another PC, the application failed.
    So i made a simle program wich do only this thing :
    CNIDAQmxTasq *l_P_O_task = new CNIDAQmxTask ();
    The application also fails with an error 5032 (but i don't have any
    memory problem at all ...).
    Could you tell me how to make a proper setup program wich install
    everything the program has needed.
    Thanks.

    Hello filscauj,
    Thank you for posting on the NI Discussion Forums.  Is there any text that comes with the error?  Is the error a Windows error or a National Instruments error?
    It sounds like you may not have NI DAQmx installed on the deployment machine, and it is not recognizing a DAQmx call as a result.  Is this true?  If so, you will need to install it on to the machine, either before running the installer for your application, or have it included in the installer in order for the application to function properly.  For instructions on how to properly create an installer project for your application, check out Distributing Measurement Studio Applications in Microsoft Visual Studio 2003/2005. 
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • Application distribution Measurement studio

    We have now developed a software application using Measurement Studio and VC++ for "capturing" live communication data from line as step 1 of the application and "analysing data" separately as step 2. We can do the 2 steps without any problem on a data acquisition machine. However, when we run the same application on a desktop PC (not a digitizer or not connected to digitizer) we expect the application to RUN only step 2. The question here is then, in order to set application up on a desktop PC (not a digitizer or not connected to digitizer) what changes I should do (in terms of un-tying NI scope acquisition functions)?
    NI Software : Measurement Studio for Visual C++ version 7.0
    NI Hardware : High-Speed Digitizers (Scopes) device PXI-5122
    Driver Version : NI Scope 2.6
    OS : Windows XP

    THanks for response.
    >>> Aha, I didnt realize that you were using the C++ scope classes. The scope driver does not >>> get loaded until the very first call to the scope class. So you would not need to setup >>> delay loading nor would you use LoadLibrary or GetProcAddress.
    Our application was developed using MFC VC++ 2003 .NET edition. Sorry I missed the details.
    >>> You will get an exception when you use the CNiScope constructor and if the system does >>> not have the scope driver installed.
    Exactly, I do get an exception when I use the CNiScope constructor. However, what I do is create CNiScope 2 times. The first time a dummy construction is done with function like this...
    bool CMainFrame:copeExists(void)
    bool scopeExists = true;
    CString errorMsg = "NiScope device absent.\r\nNo Scope controls will be available";
    try
    // Instantiate a scope to test is it exists
    CNiScope ProbeScope ("PXI1Slot2", false, false, "");
    catch (CNiIviException* e)
    e->Delete();
    AfxMessageBox (errorMsg, MB_OK | MB_ICONEXCLAMATION);
    scopeExists = false;
    return scopeExists;
    I use the returned boolean to identify if scope driver is PRESENT or ABSENT in the system. Using this boolean result I then do the actual scope dialog bar and CNiScope construction (the second time is when the actual CNiScope is created and used).
    If boolean is FALSE
    no scope dialog bar controls is created
    only the analyses dialog bar controls are created
    else
    application starts up with scope and analyses dialog controls
    >>> Are you using the .NET class libraries? Or is this just MFC code?
    Just MFC code with Measurement Studio
    >>> For a list of components that need to be distributed, refer to the Measurement Studio Help topic Distributing Measurement Studio Visual C++ Applications.
    This was helpful to the extent that I got the active X controls loaded and distributed with application. But analyses part of application crashes when it tries to use the CNi such as CNiMatrices, CNiReal64Vector. I found this using the debugged in Microsoft's VC++ .NET 2003.
    >>> Are you checking for exceptions when you start the analysis routines?
    I do have a few exceptions being checked. However, can you tell the exceptions you have in mind that need to be included.
    >>> Is this crash happening on the development machine or the deployment machine?
    The crash is happening only on machines NOT having scope drivers. I tried on a 2 machines.
    One WITH Measurement Studio and WITHOUT scope controls - it crashes
    Second WITHOUT Measurement Studio and WITHOUT scope controls - it crashes
    Is there something I am missing??
    >>> Could you provide more information about the crash, perhaps a code snippet or a sample app ( with only the analysis section).
    Here is code snippet....
    m_digIntpolRowLength and m_digIntpolCoeffRows are unsigned int types.
    m_farrowFilterCoeff is CNiReal64Matrix type. This is the first moment in application when a CNi is used. When the matrix elements are loaded with values, it crashes at the line
    m_farrowFilterCoeff(0,0)=0.00252;.....
    I know this may or may not give you whole lot of information. If we can go offline from discussion forum (becuase of proprietary information), I can provide more details about application etc. Thanks.
    void CDAQ_DigitalInterpolator::ResetLarge(void)
    m_digIntpolRowLength = c_digIntpolRowLengthLarge;
    m_digIntpolCoeffRows = c_digIntpolCoeffRowsLarge;
    m_farrowFilterCoeff.SetSize(m_digIntpolCoeffRows, m_digIntpolRowLength);
    m_delayLineBuffer.SetSize(c_delayLineBufferSize);
    m_delayLineSize = m_digIntpolRowLength;
    m_delayLinePtr = &m_delayLineBuffer[c_delayLineBufferSize - m_delayLineSize];
    /////Row 0//////
    m_farrowFilterCoeff(0,0)=0.00252;
    m_farrowFilterCoeff(0,1)=-0.0087823;
    m_farrowFilterCoeff(0,2)=0.0218283;
    m_farrowFilterCoeff(0,3)=-0.046127;
    m_farrowFilterCoeff(0,4)=0.0909993;
    m_farrowFilterCoeff(0,5)=-0.1884611;
    m_farrowFilterCoeff(0,6)=0.6283543;

  • Frequency sweep with vb6 and measurement studio

    hello! i hope you can help me with my problem
    im using:
    -PCI-MIO-16E-4 Daq-Card (at the moment, later i will get the PCI-6115 Daq-Card)
    -Visual Basic 6.0 with Measurement Studio
    my Problem: i want to stimulate a mechanical system with sine-waveforms of differernt frequencies, because i want to measure the resonance frequency of the mechanical system.  For that i want the Daq-Card to output a sine waveform, the frequency should be swept from one frequency to an other frequency (i think the real values dont matter at the moment). The Problem is that the sine-waveform must not be interrupted  when you change the frequency, because this would disturb the movement of the mechanical system.
    I allready tried (without Measurement Studio) to use the fifo buffer (regeneration of thewaveform in the fifo) to be independent of the delays caused by the pc-system, but when i change the updaterate (change of the frequency) of the DAC there is again a dependence on the pc-system and the waveform goes to zero Volts for a while.
    And i also tried to use the Chirp-Function (CWDSP.Chirp) of the measurement Studio, but with this function i have the problem, that i cant define how long the DAQ-Card outputs the actual frequency.
    greetings A.Herman

    Hello SG_ENGINEER,
    So that is possible, but it is a completely different approach than that mentioned above.  You would have to use a continuous analog output program and change the output waveform.  Check out the attached example.  I modified a shipping example to do an analog output and increment the frequency of the output waveform. 
    -Alan A.
    Attachments:
    Continuous_Analog_Out_Update_Sinewave.vi ‏100 KB

  • Using Measurement Studio tools on PDAs

    Is the latest version of Measurement Studio compatable with the .net compact framework?
    I'd like to be able to use some of the Measurement Studio objects in an application to run on a PDA running PocketPC 2003.

    Regretably, we have not seen enough customer interest for Compact Framework Measurement Studio class libraries to justify the development expense. I will document your inquiry.
    Any additional information about your needs would be useful to me in documenting your request. For example, which controls, libraries, and hardware (e.g., analysis, DAQ, serial) would you use, what types of applictions you would develop, how many development licenses would your request would cover, and how many run-time licenses (if we were to choose to have run-time licenses for the Measurement Studio Compact Framework libraries) would you need per year.
    Some PDA application scenarios can be covered with the ASP.NET controls. If your PDA application just needs to act as a display for a headless device (such as a PXI chassis), you could implement an ASP.NET application on the headless device and access it from a web browser on the PDA via a wireless network. Would this work for your application or do you need a rich client on the PDA?

  • Exe file will not start using a Measurement studio 2013 component

    Hello,
    I use Meausrement studio 2013 with visual studio 2012 and vbnet on windows 7.
    On a new project (windows form application), i use a form and a ScatterGraph component. I compile, no errors and it works fine. 
    Now, i try to start this application on a another Windows 7 station. (The framework 4.5 is installed on its station).
    The exe file is in a directory with the natrional Instruments dll files.
    The exe file will not start, no errors.
    PS: Before, with Meausrement studio 2010 and visual studio 2010 all worked fine. 

    Hi, virgule
    It sounds like you are using the "Publish" feature in Visual Studio (a.k.a., ClickOnce) for deployment, is that correct? If so, unfortunately ClickOnce is not supported by Measurement Studio components.
    If you are looking for a good way to deploy Measurement Studio applications, I would highly recommend upgrading to Measurement Studio 2015, which ships with Measurement Studio Installer Builder. You can read more about this here: http://www.ni.com/white-paper/52669/en/
    If you cannot update to Measurement Studio 2015 and are using Visual Studio 2013, NI recommends using WiX for creating your installer. More information on WiX deployment can be found here: http://digital.ni.com/public.nsf/allkb/764B727C9BD2C4C686257C970053D059
    Thanks,

  • Install Error when trying to install Measurement Studio 7.0

    I am receiving two erros when trying to install Measurement Studio 7.0:
    "The installer cannot setup Measurement Studio for Visual C++ while Visual C++ is open. Please make sure Visual C++ is closed and click ok."
    "Although you have the proper version of Visual C++ installed on your system, it is not configured properly. To correct this problem, run Visual C++ and exit it, then run this installer."
    I am running Windows XP and have installed Visual Studio.net Academic Edition. Will Measurement Studio work with Visual Studio Academic Edition, or do I need the professional edition? What can I do to solve this problem?

    Hello
    Are you installing the Measurement Studio support CD and having this problem? If you are using Visual Studio .NET 2003, you don't need to install the Measurement Studio support CD ( check my post here).
    Hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • Why can't visual basic 6 load CWDAQ.OCX in the example programs? I am using the latest Measurement Studio 6 and VISTA OS.

    Can someone help me with getting controls to work with Visual basic 6 in an Vista environment?  I cannot get the examples to work that use the CWDAQ.OCX control.  I did a search on my computer and the file is not even there.  What functions are in CWDAQ.OCX?  Is there a descriptions of what functions are included in this control and other controls?  It is not obvious where to find these descriptions. 
    I did install Measurement Studio 6 with all the options for Visual basic 6.
    I am new to programming NI cards with visual basic so any help in getting me started will be greatly appreciated. 
    I need to talk to a PCI-6110 card in visual basic 6.  I would like to preprogrammed the D/A fifos, store to two analog inputs simutaneously, and use some of the digital I/O.  Can someone direct me the direction as to what controls I need to use?
    Thanks in advance for any help or guidance. 
    Tony

    Hi Tony,
    So the reason you can't find the CWDAQ.OCX ActiveX controls in VB 6.0 in Vista is because that is a Tradtional DAQ (legacy) control meant to work with the Traditional DAQ Driver.
    The Tradtional DAQ drivers aren't officially supported in Windows Vista (KnowledgeBase 4FDH4MZN: Traditional NI-DAQ (Legacy) for Windows Vista OS) and so the CWDAQ.OCX controls don't get installed.
    However, the good news is that the PCI 6110 is a newer card that uses our newer driver, NI-DAQmx. DAQmx is supported in Vista and you can communicate to your card from VB 6.0 using DAQmx in Vista.
    There are several examples that show you how to communicate using DAQmx in VB 6.0.
    These can be found in:
    <Users>\Public\Documents\National Instruments\NI-DAQ\Examples
    This is also mentioned in the following Knowledgebase article:
    KnowledgeBase 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations
    Also, the DAQmx functions are documented in the following locations:
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C API Visual Basic 6.0 Help
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
    Hope this helps!!
    Message Edited by Jervin_J on 06-05-2008 02:58 PM
    Jervin Justin
    NI TestStand Product Manager

  • Measurement Studio NumericEdi​t Control is Not Working

    I installed Measurement Studio 2013 with Visual Studio 2012 Professional yesterday and imported my previously developed projects on (VS 2010 Express). Web controls and C# coding working fine.
    I started Measurement studio chapter 2 first exercise to add control WaveformGraph, Gauge and Legend on my page and working but when add NemericEdit control then it gives me JavaScript critical error …….. SCRIPT1014 Invalid character. I am using window 7 and IE11 cleared cache already.
    Please help.
    Best regards
    Bashir.
    Attachments:
    NumericEdit_ScreenShots.docx ‏298 KB

    Hi Bashir,
    I was able to reproduce this issue in IE11. Please note, Measurement Studio 2013 supports IE6 - IE10, so we have not tested the Measurement Studio 2013 ASP.NET controls with IE11. However, what you are seeing appears to be a result of IE11 dropping support for conditional compilation for javascript (https://msdn.microsoft.com/en-us/library/ie/121hztk3(v=vs.94).aspx). Because of this, when the Visual Studio debugger is attached to your ASP.NET website, you see an unexpected character exception.
    Please note that the documentation for Web Browser Compatibility with Measurement Studio Web Forms Controls says that IE9 and 10 are only fully supported in compatibility mode. I took the liberty of testing IE11 in compatibility mode, and the Visual Studio debugger message stopped appearing. 
    Let me know if you have any questions.
    Daniel D.
    National Instruments
    Automated Test Software R&D

  • My application conflicts with another Measurement Studio based application.

    Hi,
    Our instrument is made by a third party, and they appear to use Measurement Studio in the development of their control software.
    We use Measurement Studio when developing our test software. When we install our test application on a production machine (no programming environment installed), we sometimes get a message about only being able to use controls for 5 minutes in an "evaluation-only" mode.
    It is clear that there are some library file revision conflicts, e.g.: in cwui.ocx and presumably others. The third party is using a slightly different revision of these files to ourselves. What is the the best way to consistently resolve these conflicts?
    Thanks,
    Richard Brockie

    Hi Richard Brockie,
    You are correct in assuming there is a conflict with cwui.ocx.
    If the target computer does not have Measurement Studio, it will not contain the .ocx and .dll files required for the executable to run. Microsoft Visual Studio .NET has a Setup and Deployment Projects type that allows you to create a MSI installer that finds all of the dependencies for the project and then installs them on the target machine when the setup is executed.
    I've included the following link that demonstrates the process of creating an installer for a Windows application, using .NET or Active X controls.
    http://digital.ni.com/public.nsf/websearch/ED87C183E056CAC386256DF1004E54C6?OpenDocument
    Please respond if you have further questions or if this does not resolve your issue,
    Chad AE
    NI

  • DataSocket SelectURL method fails with Measurement Studio and vista

    The application uses the datasocket .SelectURL method to browse compact fieldpoint OPC items but the following error is raised:
    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at NationalInstruments.Net.Internal.Win32.IAxDataSocket.SelectURL(Object startUrl, Object title, Object options, Object filters)
       at NationalInstruments.Net.DataSocket.SelectUrl(String startUrl, String title, SelectOptions options, String filter)
       at NationalInstruments.Net.DataSocket.SelectUrl()
       at DrillSense.Sensors.Sensor.SelectURL() in C:\DrillSense VS2005\DrillSense\cls_Sensor.vb:line 309
    This method works with Windows XP Pro however.
    The Development Environment includes:
    MS Visual Studio 2008 with SP1
    Measurement Studio 8.5.0 for VS 2008
    Windows Vista Business
    Is there a workaround to browse OPC items?
    Thanks,
    Barrett

    Hi Barrett,
    I would like to verify that the PC with Vista installed can see the OPC item.  Do you have an alternative programming language which you can use to verify communication?  If not, you may try Measurement & Automation Explorer (MAX).  If you do not see the fieldpoint in MAX, I would try the suggestions outlined in this KnowledgeBase article.
    How to Network FieldPoint to a Host Computer with Ethernet
    It would also be helpful if you could provide a bit more information about your setup.  I'm particularly interested in what .NET language you are using within Visual Studio (C#, VB.NET, C++, etc.).  I may have to try and reproduce the behavior on my end, so if you could provide as much detail as possible it would be helpful.  Thanks Barrett! 
    Rod T.

  • Connect CFP-2000 with Measurement Studio

    Hi, I haven't understood how to connect a CFT-2000 module with Measurement Studio and VC++.
    Can any one help me to find documentation and sample related this task?
    I'm  interested into this topics:
    - is it possible to manage a CFT-2000 ethernet device with MAX? In ordere to use that device can i use DAQmx?
    - which  kind of data I will recive over ethernet raw, scaled..
    - is it possible to select one particular board of AI?
    - is it possible to execute multiple applictions (LabView and  Measeurement Studio) connected with the same CFTP-2000 controller into one PC?
    Thanks

    Dear Bobby60,
    First of all I suggest you this FAQ.
    You can connect and configure cFP 2000 from MAX through NI-Field Point and Labview Real Time.
    You have to use Labview Real Time to program an application on the cFP 2000.
    Comms to Labview and Measurement Studio can be realized through OPC Shared Variable and TCP/IP. In the last option you will have to program your own server in labview RT and deal with multiple client stuff.
    Best Regards
    FiloP
    It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
    Richard P. Feynman

  • I would like to know how to transform an API C++ application in MFC C++ application to use the measurement studio components or Labwindows CVI

    I don t know the way used to transform a C++ with API program in an MFC application using measurement studio or Labwindows CVI.
    Thank you for you help.

    You can use the Measurement Studio Add/Remove Components Wizard to add Measurement Studio components to your C++ application. For more information, see the "Adding and Removing Components from Measurement Studio Projects Using a Wizard" topic in the Measurement Studio reference. You can find it in the table of contents under:
    Visual C++ Help
    Tutorials
    Measurement Studio for Visual C++ 6.0
    If you're using the Measurement Studio update for Visual C++ .NET, this topic will be under:
    Visual C++ Help
    Tutorials
    Measurement Studio for Visual C++ .NET
    - Elton

Maybe you are looking for

  • Stop Sending and Receiving Emails for the employee which is no longer exist

    Exchange 2007 Hi There, I have lot's of mailboxes in my exchange server which their users are not with us anymore. I would like to stop receiving any emails for them.  I know if I go to "Mail Flow Settings\Message Delivery Restrictions\Accept message

  • Safari rendering default text with condensed font?

    Has anyone else experienced this in the last few days? All of a sudden Safari is rendering default text with a different font, a light, condensed one. The side-by-side shows the Wordpress Admin menu on my Macbook & on my iMac. The Macbook is still re

  • IWeb suddenly not publishing

    I have 3 websites - my personal site and 2 client sites which have passwords on them. Thanks to Finder have the mother of all freezes I've spent the weekend reinstalling everything back onto my Mac Pro, and when I transfered my iWeb domain file from

  • PO not created after SC in CCM

    Dear all., I created a SC using CCM.., but it is not getting converted to PO., Pls let me know what might be the problem. pavan.

  • Data structure / procedure for spry / mobile device

    hi all I'm building a cms which would pull information from a database. I am looking at displaying the info using spry for some of the pages. The tutorial for spry uses an XML file. Also I would like to make info available for mobile devises and so o