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;

Similar Messages

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

  • 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

  • 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

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

  • 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

  • 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

  • NI Measurement Studio UI components for Visual Basic 6.0 message box

    Hey All,
    North West Quality Analyst was recently installed on my LabVIEW development machine. Whenever I launch NWQA I get a dialog box to install "NI Measurement Studio UI Components for Visual Basic 6.0" for program called "Program Name."
    I cancel out of the install and I can use NWQA just fine. However, I would like to eliminate the install attempt. Any ideas on how to do that?
    I've tried to find the installer file on the Distribution discs, but on the two that I thought it would be on, "Measurement Studio Enterprise Support for Visual Studio 6.0" and "Measurement Studio Enterprise Edition" the file named "MStudioUIDemo.msi" was not found.
    Thanks,
    -Andrew

    Below is the text from the event viewer warning...
    Detection of product '{7B0F253A-C7A2-4335-B041-99868E9EDEE8}', feature 'UI_Controls', component '{A44FC66B-252B-11D4-A77B-00104B6CE77D}' failed. The resource 'C:\WINNT\system32\CWHlpBtn.ocx' does not exist.
    I have lots of stuff installed on the computer... MS Office, Codewarrior, Roxio, IE, MatLAB, etc.
    Looking under MAX, I have the following NI software installed.
    LabVIEW 6.1 (Advanced Analysis, Application Builder, Database Connectivity Toolset), 7.1 (Advanced Analysis, Application Builder), Runtime 6.0, 6.1, 7.0, 7.1, MAX 3.1.1.3003, NI-488.2 2.20, NI-CAN 2.2f2, NI-DSA, NI-IMAQ, NI-Motion, NI-PAL, NI-Switch, NI-USI, NI-VISA 3.2, Measurement Studio 6.0 (For Visual Basic(ActiveX User Interface, ActiveX 3D Graph, ActiveX DataSocket, ActiveX IMAQ))
    The Dell box is running Window's 2000.
    I found a listing under "Computer Management" -> System Information -> Software Environment -> Loaded Modules
    that seems to have all the installed apps and such. I can send that to you privately if you desire.
    Thanks,
    -Andrew

  • Can you tell me how to measure audio signal frequency in measurement studio with visual basic 6.0?

    I'd like to measure two differential input signal(I.e. A+ and A-),below is two test projects,
    1.connect A+/A- to PCI 6052E card's ACH0/ACH8 ,and refer to GND for testing
    2.connect respectively A+/A- to PCI 6052E card's ACH0/ACH8 for testing
    Could you tell me the details of the second project?and give me a illustration in measurement studio with visual basic 6. 0 about the second?
    In addition,I would like to measure the audio signal frequency,could you give me a illustration in measurement studio with visual basic 6.0?
    Wait for your reply!

    Dear kelven,
    Thank you for contacting National Instruments.
    To address your question, there are Analog Input shipping examples that demonstrate how to measure an analog input differentially, as you specify in (2).
    As for measuring the audio signal frequency, you may want to check out the following KnowledgeBase. The link is:
    http://digital.ni.com/public.nsf/websearch/4b08380530d72d3b86256340004c3005
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • How to save the value in Cedit control into a text file bu using measurement studio c++?

    Im using measurement studio c++ to create a application. How to save a randomly generated value which display in the CNumberEdit Control to a text file? how to do the coding part?

    You can use the CNiFile class to write the value out to a file. For example, create a new Measurement Studio C++ project and follow these steps:
    Add a CNiNumEdit to the dialog.
    Add a member variable for the CNiNumEdit called m_numEdit.
    Add a button to the dialog.
    Double-click the button to add a message handler for the button's BN_CLICKED message.
    Add the following code to the button's BN_CLICKED message handler:
    CNiFile file("C:\\Values.log", CFile::modeCreate | CFile::modeWrite | CFile::typeText);
    file << m_numEdit.Value << endl;
    file.Close();
    Run the application, edit the CNiNumEdit's value, and click the button. The value should be written to the Values.log
    file as specified in the code above.
    Hope this helps.
    - Elton

  • Measurement Studio Visual C++ 6.0 Multithreads

    I want to use the dialog editor to add NI controls to a dialog (or CFormView) and want to set CNiInterface to SingleThreaded. How do I do this. I do not want to create the controls dynamically because I do not want to deal with license strings. I get an error if I close the dialog box when a control is added with the dialog editor. Is this because the controls by default are created as multithreaded with caching? I get by this by calling destroy window on the control. Is this the proper way? Will I have to do this if I use singlethreaded?
    Next the documentation says I need to initialize COM. Is this true. Is it not enough to call
    AfxEnableControlContainer() in OnInitInstance of my application.
    By the way
    National Instruments, Your documentation leaves quit a bit to be desired!! Good grief.

    The default thread access for the Measurement Studio C++ controls is CNiInterface::MultipleThreadsWithCaching. You do not have to dynamically create the control if you want to create the control with CNiInterface:ingleThread - just specify it in the dialog class constructor's member initialization list. For example, if you had a dialog class called CTestDialog and you had a member variable for the graph in the dialog class called m_graph:
    CTestDialog::CTestDialog(CWnd* pParent /*=NULL*/)
    : CDialog(CTestDialog::IDD, pParent), m_graph(CNiInterface:ingleThread)
    Also, you should not need to initialize COM to use the controls in a dialog. The call to AfxEnableControlContainer in your InitInstance method should be sufficient.
    - Elton

  • Using measurement studio with my own circuit

    Im a computer engineering student
    I have designed a circuit which do analog-digital convertor and the computer reads the digital value from the parallel port, and Im looking for an application
    I found this nice topic in your site : Measurement Studio Analog Output -- Waveform Generation in Visual Basic
    http://zone.ni.com/devzone/conceptd.nsf/webmain/9C9F9227D165EF6C8625687E006CEFF5
    and I hope that I can do it for my project
    my question is : can I use the parallel port of the PC instead of National Instruments data acquisition (DAQ) hardware in the measurement studio 6.0 ??
    thank you alot .
    Bader

    Hello,
    It sounds like your question is really if you can access the parallel port from your Measurement Studio Environment. The answer is yes, and one way to do this is using NI-VISA. In general, I imagine you will be performing viOpen, viRead, and viClose operations on your parallel port. The following discussion forum links should help you get more well rounded on the idea: (note: many of these forum posts have helpful links as well!)
    1. http://forums.ni.com/ni/board/message?board.id=170&message.id=25066&requireLogin=False
    2. http://forums.ni.com/ni/board/message?board.id=170&message.id=109253&requireLogin=False
    3. http://forums.ni.com/ni/board/message?board.id=170&message.id=112975&requireLogin=False
    4. http://forums.ni.com/ni/board/message?board.id=170&message.id=96478&requireLogin=False
    5. http://forums.ni.com/ni/board/message?board.id=170&message.id=118167#M118167
    6. http://forums.ni.com/ni/board/message?board.id=170&message.id=86769#M86769
    Repost if you have further questions!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Setting Z Order of measurement studio controls in Visual C++

    How can I set the Z Order of a measurement studio control (such as a button, numeric edit, etc.) from within a VC 6.0 application? I have several overlapping controls in which the first control is on top and the controls I apply later are below. I must go through all kinds of gyrations to control the Z Order.

    Tab order in Visual C++ dialogs controls Z-plane order. You can set the tab order under Layout->Tab Order. The lower the number in the tab order, the higher on the Z-plane.
    Best Regards,
    Chris Matthews
    National Instruments

  • New Product Announcement: Measurement Studio 2013 is available for download

    Measurement Studio 2013 continues to offer programmers the latest tools for development and visualization with new support for .NET Framework 4.5, Windows Presentation Foundation (WPF), and Visual Studio 2012. Measurement Studio 2013 integrates into Visual Studio 2012, 2010, and 2008 to provide engineers with a complete suite of tools for building professional engineering applications to acquire, analyze, and display measurement data.
    >> Upgrade to the new version
    >> Read about WPF Technology
    >> See Release Info and Bug Fixes
    >> Download here
    National Instruments

    Hi StenAndersen,
    This KB might be a helpful reference in this regard: http://digital.ni.com/public.nsf/allkb/C51E3B38578FAD2786257C070069F386. I apologize for any inconvenience this is causing in your projects.
    Rahul B.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Upgraded thumbnails, now all photos gone

    When opening iPhoto, I got a prompt asking if I wanted to upgrade the photo thumbnails. Sounded ok, so I hit yes... now all of the photos are gone (thousands). Does anyone know what happened and if I can recover them? Thanks to anyone who can help ou

  • Read Resource Assignment Percentage and availbility

    I am using Excel to generate report showing resource Assignment Percentage and availability in given date range, any ideas which fields should I keep into consideration and which views to be used?

  • Problems on mac os x for java newbie

    Hi i have just started learning java and was really enjoying it until I hit some big obstacles on the mac. I have been working through Rogers Cadenhead's book Java 2 in 21 Days (from Sams). His examples are only explained for PC and Linux. To complet

  • Regarding copying support message

    We are using Solution Manager System from maintaining support desk messages. In our Solution Manager System using two client i.e. client 100 & 200 for maintaining different division support deak message. Now, as per requirement we want to close one c

  • POST LION INSTALL NO SYNC WITH IPHONE AND CANNOT TYPE ON PAGES. AM I THE ONLY ONE?

    RELATED TO THE INABILITY TO TYPE ON PAGES IS NOT BEING ABLE TO MOVE THE CURSOR TO DO A GOOGLE SEARCH. BUT IF YOU GO TO AN OLD SUBJECT, "APPLE NEWS" FOR EXAMPLE THEN I CAN TYPE OVER THE SUBJECT AS NORMAL. BUT IF THE SEARCH SITE IS BLANK TYPING DOES NO