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.

Similar Messages

  • SQLE_COMMUNICATIONS_ERROR while running SFA application from Visual Studio

    Hi,
    I am trying the SFA (Sales Force Automation) example.
    I am using the Windows Mobile 6.0 emulator from Visual Studio to run the application.
    When I go to the "Configure" button, change the configuration values and try to Save, I am getting the following error.
    =======
    SQLE_COMMUNICATIONS_ERROR
    iAnywhere.Data.UltraLite.ULException: SQLE_COMMUNICATIONS_ERROR at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(IntPtr natKey, ULSQLCode code, Object p0, Object p1, Object p2) at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(ULSQLCode code) at iAnywhere.Data.UltraLite.ULConnection.Synchronize() at SalesForceAutomation.SalesForceAutomationDB.Synchronize(String synchronizationGroup, SyncStatusListener listener) at SalesForceAutomation.SalesForceAutomationDB.Synchronize() at SalesForceAutomation.FormConfiguration.menuItem1_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at SalesForceAutomation.Program.Main() Details: StreamErrorCode = SOCKET_CONNECT StreamErrorSystem = 10061 StreamErrorParameters =
    ======
    I am unable to sort out this.
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Ram.

    Hi,
    Finally I fixed this issue.
    I ran the SybaseServerSync.v35.CAB on the device emulator. Then tried the program. It worked. This helps establish the synchronization between the device and the SUP server. This CAB file can be located at the path <UnwiredServerInstallationLocation>\UnwiredPlatform\ClientAPI\RBS\WM\ServerSync.
    Regards,
    Ram.

  • I get this error when I try to publish my cloud service application from Visual studio.

    Error: Network_not_available: The network is down so authentication cannot proceed.
    This happens when I want to sign in with my azure subscription.
    Note: I have a valid azure account

    hi,
    Could you login on azure portal (https://manage.windowsazure.com) using your username and password? From the error message, please make sure your VS could connect the internet firstly.
    Secondly, Which version of VS did you use? I suggest you could open "Server Explore" tab from VS and expand the Azure node to check you whether connect to azure.
    Thirdly, you could download your azure subscription file and import to VS (http://blogs.msdn.com/b/avkashchauhan/archive/2012/05/10/downloading-windows-azure-publish-settings-subscription-configuration-file.aspx
    Please try it.
    Any result, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

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

  • 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

  • Unable to Build VC++ application it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib' but I am Using Measurement Studio 2009 ,NI DAQ 7.01 and Field Point 6.05.

    I am having a application in Visual Studio 2003 on Windows XP  , Now I am Migrating the application in Visual Studio 2005 on Windows-7 .
    In my Development PC , I was install Measurement Studio 2009 ,  NI DAQ 7.01 and Field Point 6.05.
    my application is Showing following error:
    Linking...
    LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDl?l\Debug\BuildLog.htm"
    NICfpDAQDll - 1 error(s), 0 warning(s)
    When I copy from NiFieldPoint71D.lib library from Measurement Studio 7.1 and put in :\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib.
    my application is Showing following error:
    1>Linking...
    1>atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>atlsd.lib(atlbase.obj) : error LNK2005: "class ATL::CAtlWinModule ATL::_AtlWinModule" (?_AtlWinModule@ATL@@3VCAtlWinModule@1@A) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>   Creating library ..\..\lib\debug\NICfpDAQDll.lib and object ..\..\lib\debug\NICfpDAQDll.exp
    1>..\..\bin\debug\NICfpDAQDll.dll : fatal error LNK1169: one or more multiply defined symbols found
    I want to ignore NiFieldPoint71D.lib from using project setting(Linker->Input->ignore Specific Library ) but still it is showing same error.
    In the project Setting I am done following setting:
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    Linker->Input->ignore Specific Library: mfcs71d.lib;libc.lib;'NiFieldPoint71D.lib
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • Reports dont work in CR for VS2010 after converting application from VS2008

    I upgraded my application from Visual Studio 2008 (using CR 2008 version 10.5.3700) to Visual Studio 2010 (using Crystal Reports for .NET Framework 4.0 version 13.0.2000).
    There were no other changes implemented from the old version. The reports used to work in the previous version. But after the upgrade our reports showed blank data. The labels are being printed , but no data is displayed.
    Please let me know if this is a known issue and what I can try to make this work with the latest version of Crystal reports for VS2010.

    When you get the blank report in your app, export it to CR file format. then open the  report in the CR designer. Are the DB fields visible in the designer? If not, then CR stripped these out. CR will do this, if the data format presented to it does not match what it is expecting. To further troubleshoot this, see the blog [Troubleshooting Issues with VS .NET Datasets and Crystal Reports|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13270].
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • 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

  • Conflict between ActiveX from LabVIEW and Measurement Studio?

    Hello
    We're small software company from Poland. We're developing our product
    (SCADA/HMI and integration system heavily based upon Measurement Studio
    graphic controls) in C++ for Win32 environment (MSVC 2003 Edition C++
    Compiler). Today we ran into serious problem: our client, one of the
    biggest Polish companies that sell automation software and hardware, is
    evaluating our product. Company staff members are using LabVIEW, too
    and have various version of LabVIEW installed on their PCs. It turned
    out that our program displays message that license is needed for
    Measurement Studio ActiveX controls, and crashes, when ran on PC with
    LabVIEW installed! (This one has LabVIEW 6.1, 7.0, 7.1 simultaneously
    installed).
    While I gues that crash is not Measurement Studio's fault (I guess that
    control fails to create and throws exception which is not catched by
    our code...we'll fix that) I'm pretty sure that this "license" stuff
    is. Of course we have legal version of Measurement Studio 7.1, and all
    controls used in our software have their respective licenses generated
    and compiled into application (we create all controls dynamically). We
    have never run into such problem before, and we're using Measurement
    Studio for years...please help.
    Some additional details: control that failed is CWBoolean in "3D Diode"
    configuration. Other controls, including CWBoolean in another
    configurations seem to work OK, at least I was told so (it's pity that
    I don't have faulty configuratio here...will try to reproduce it using
    some kind of LabVIEW evaluation version).
    Best regards from Poland, and thanks for any help.
    Michal
    Michal Adamczak
    Lead programmer, ANT ISS (http://www.ant-iss.com)

    Hi Michal,
    This is actually an error message that is usually fixed pretty simply by using our License Fixer.  Sometimes the licenses for the ActiveX controls can become broken in Measurement Studio.  This usually happens if you install drivers after installing Measurement Studio or a program created using Measurement Studio.  You can find the License Fixer here.  Try this out and let us know if you still have any trouble.
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • I have programmed a visual basic application using activex controls. WHen I run this application through internet, it appears a message box indicating that the measurement studio is a demo, but I have the correct license. What can I do?

    I run the application in a computer without measurement studio because my application is stored in a web server and I access to the application downloading it from a web page of that server.

    Have you included the lpk file with your control? I've attached the tool you'll need and here is a nice link that goes thru it step by step.
    Hope this helps
    Bilal Durrani
    Bilal Durrani
    NI
    Attachments:
    lpk.zip ‏74 KB

  • Running LV application from remote panel which measures FP through different LAN

    My LabVIEW application is running in a PC and it takes measurements from the FieldPoint modules which are connected via the FP-1601 network module.
    I want to view and execute the application from another PC using remote panel option. The master PC has two LAN connections, one seperate connection for the FieldPoint module and the second one to connect with other PCs.
    But the application returns error while initializing the FP modules when executed from remote panel.
    Will the application be able to communicate and take measurements from the FieldPoint module in this case? Please explain.
    Thanks for the help and awaiting earlier response.
    Thank you,
    Rajeswari

    In principle this I believe this is a TCP/IP routing issue.
    If your fieldpoint unit is connected to one card lets say
    Card 01 Host 10.0.0.1 255.255.255.0 ---- Fieldpoint 10.0.0.2 255.255.255.0
    Card 02 Host 168.95.0.1 255.255.0.0 ---- Lan 168.95.x.x 255.255.0.0
    The routing in the host takes care of which card is used for which network segment.
    My guess is that you have not seperated the network segments as shown above.
    Is this correct ?

  • Unable to execute existing Design Studio applications from BI Launchpad after updating to 1.4!

    Hello Experts,
    We upgraded our SAP BO from 4.0 to SAP BO 4.1 SP5 and also updated our Design Studio from 1.2 directly to 1.4.
    Upon testing the existing application in Design Studio it so happens that the existing application is sucessfully executed in local mode. However it does run from the BI Launchpad.
    I tried creating a new application in Design Studio 1.4 whick works fine in both local and BI launchpad but my previous created application in 1.2 (now loaded in Design Studio 1.4) should also work, I don't know the reason why it dosen't work.Need help on how to proceed further.
    Attached is the error which I get when ezecuting application in BI Launchpad.
    Reply Awaited.
    Best Regards,
    Niyati S.

    Hi Tammy,
    Sorry none of the mentioned steps get synced with my situation since I have no problem executing new applications from BI Launchpad but only my old ones.
    I read the article http://scn.sap.com/community/businessobjects-design-studio/blog/2014/11/26/ds-14-server-installation and it mentions just smooth execution of existing Design Studio application after updating to 1.4. Wish that would have been the case with me too!
    Looking forward to finding solution of the problem.
    Regards,
    Niyati S.

  • 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

  • Unable to Build VC++ application it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib' but I am Using Measurement Studio 2009

    I am Migrating a application in Visual Studio 2005.
    In my development PC I install the Measurement Studio 2005.
    my application is Showing following error:
    1>Linking...
    1>LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    1>Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDll\Debug\BuildLog.htm"
    1>NICfpDAQDll - 1 error(s), 0 warning(s)
    In the project Setting I am done following setting
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    but in  "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"  directory Not having the 'NiFieldPoint71D.lib' because Measurement Studio 2009 not provide this dll.
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • Can I acquire data with VB from my DAQCard without using Measurment Studio?

    I have the Measurement and Automation Software on my computer and VisualBasic.NET. Do I need any other software if I am receiving 2 analog signals and outputing 1 analog signal on my NI DAQCard-6024E PCMCIA?

    The short answer is yes, you can acquire data with VB.NET from your DAQCard without using Measurement Studio.
    There are a variety of ways to do it. All of them require that you install either the Traditional DAQ driver or the DAQmx driver in addition to Measurement and Automation Explorer. The DAQ drivers are included on a CD or CDs with your hardware. They are also available on the quarterly National Instruments Device Driver CD.
    1) You can use the Measurement Studio DAQmx .NET API. This is far and away the easiest API to use to program DAQ cards in VB.NET and C#. This API is included in the DAQ installer and does not require you to purchase Measurement Studio. However, without Measurement Studio you do not get the benefit of the DAQ Assistant integrated into Visual Studio .NET. The DAQ Assistant, when integrated into Visual Studio .NET, allows you to graphically configure your DAQ tasks, generates the code you need to configure your tasks, and generates a .NET user control (with user interface) that demonstrates how you use the tasks that you created. The caveat to this approach is that PCMCIA cards are not directly supported under DAQmx 7.0. There is, however, a beta versin of DAQmx PCMCIA support as described in this KB article.
    2) You can use the .NET P/Invoke services to call the Traditional DAQ or DAQmx C API directly. See MSDN for more information about P/Invoke. If you choose the DAQmx API, you will need to install the beta of the PCMCIA support as described in this KB article. National Instruments does not provide any examples, language-specific documentation, or code generation for this method. You'll need to look at the C API documentation to see what to do.
    3) You can use the Measurement Studio Traditional DAQ ActiveX controls. These are included in the DAQ installer and do not require you to purchase Measurement Studio.
    The absolute quickest and easiest way to get started using an NI-DAQ card in VB.NET is through the DAQ Assistant and Measurement Studio Professional or Enterprise edition.
    Your next best approach is to use the native .NET DAQmx API. This API was designed from the ground up to support .NET languages. There are examples written in VB.NET to help you get started.
    If for some reason, you don't want to use the native .NET API (or your hardware is not supported under DAQmx), whether you use P/Invoke or the ActiveX controls is a toss-up. It depends mostly on whether you are already familiar with the C API or the ActiveX API.
    David Rohacek
    National Instruments

Maybe you are looking for