NationalIn​struments.​Analysis.D​sp.SignalP​rocessing.​Integrate method

Could you give me an example use of the NationalInstruments.Analysis.Dsp.SignalProcessing.​Integrate method? I want to integrate a signal but I am not sure what to use for the boundary conditions (initialCondition and finalCondition).

eja,
The intialCondition and finalCondition inputs are to reduce error in the integration routine.  Because you are taking an integral of a discrete signal, there will be some error at the signal's endpoints if you don't define these inputs.  The amount of error will depend on the number of samples that you have. 
For instance, If you try to take the integral of the array (1,1,1), with a dt of 1, and don't define intialCondition or finalCondition (i.e. set them to 0), the function will return 2.7, when the actual value should be 3.  If you define initialCondition and finalCondition as 1, the function returns the correct value.
From the Measurement Studio help:
initialCondition and finalCondition minimize the overall error by increasing the accuracy at the boundaries, especially when the number of samples is small. Determining boundary conditions before the fact enhances accuracy.
For more documentation on the integrate function, open the Measurement Studio help, and search the index for "Integrate method"
Josh W. | National Instruments | Applications Engineer
Message Edited by Mist on 07-18-2006 03:17 PM
Josh W.
Certified TestStand Architect
Formerly blue

Similar Messages

  • Dependanci​es for NationalIn​struments.​Analysis.E​nterprise

    Hi Everyone,
    I have a 64 bit .NET project that uses the NationalInstruments.Analysis.Enterprise assembly. When I try to run the application, I get the following error:
    Could not load file or assembly 'NationalInstruments.Analysis.Enterprise, Version=13.0.40.242, Culture=neutral, PublicKeyToken=dc6ad606294fc298' or one of its dependencies. The system cannot find the file specified.
    I already included the following merge modules in my installer as per this link
    mkl64.msm 
    MStudioCommon.2010_x64.msm 
    MStudioEnterpriseAnalysis.2010_x64.msm 
    nianlys_x64.msm 
    niMetaUtils.msm
    Microsoft_VC100_CRT_x64.msm
    After the first time it failed, I noticed that the MetaUtils merge module had a 64 bit version, so I included that as well on the off chance there was a typo in the earlier link. Unfortunately I still get the same error.
    Is there something else I'm missing?
    Thanks,
    -Gary

    Targeting Client Profiles is not supported. Targeting the .NET Framework 4 Client Profile is the default for new projects, so you must change the target through the Project Properties window, as shown in the following screenshot.

  • Constructo​r NationalIn​struments.​DAQmx error in C#

    Hello everyone,
    I have been struggeling with the following problem. I am trying to execute a selfcalibration within a visual studio .net 2005 program. When I create a Device object an error appears which tells me that :
    The type 'NationalInstruments.DAQmx.Device' has no constructors defined.
    Can anyone help me with this problem.
    Thanks in advance,
    Souza

    Good stuff. But the link talks about xcopy and including. Including and copying the needed drivers to where? The location they are found the development machine so that would mean making a new directory on the target machine as 'C:\Program Files (x86)\National Instruments\MeasurementStudioVS2008\DotNET\Assembl​ies\Current' or copying the needed dlls to the same location that the .exe is copied too?
    Thanks

  • NationalIn​struments.​common.dll 8.6.20 needed

     I am working on a project which have been developed by the others , I met a problem with the nationalInstruments.common.dll .
    The type 'NationalInstruments.ComponentBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'NationalInstruments.Common, Version=8.6.20.131, Culture=neutral, PublicKeyToken=4544464cdeaab541'.
    so I think I need the right dll version to complete my work , can any one tell me where to find it?

    I think you need to install MeasurementStudio as discussed in http://digital.ni.com/public.nsf/allkb/46DE0026528​3A71586256FC000797682

  • Still required to install NationalIn​struments.​Common 13.0.40.19​0 to GAC?

    Before I begin, this question is basically a repost of this question...
    http://forums.ni.com/t5/Measurement-Studio-for-NET​/Missing-assembly-NationalInstruments-Common-Versi​...
    Basically, I am deploying my Visual Studio 2013 solution via the WIX method. I also prefer not to install reference assemblies to the GAC on my users' computers. Therefore, I am installing the reference dll files "beside" the executable.
    However, I have confirmed an issue in that if I reference NationalInstruments.Common 13.0.40.190, it does in fact get copied to the application target directory, but for some reason at runtime it can't be found and tries to load 13.0.40.188 (from somewhere, application directory or GAC?). Because I have not deployed 13.0.40.188 at all, my application crashes with the System.IO.FileLoadException.
    The solution is to copy version 13.0.40.190 to the GAC, which was what I was trying to avoid. Just wondering if anyone had any insight on this issue. I would think this would be a big deal for people deploying under my same conditions.
    Thanks.

    Hi,
    Custom DLL's may be installed beside the application but all National Instruments DLL's and Assemblies must be installed in the GAC. If you comment out all the 'Config_' lines in Common.wxs for the 32 and 64 bit sections, this will install the NI DLL's and Assemblies to the GAC without having to manually copy them over on the deployment machine.
    Please let me know if you have any further questions about this.
    Jason
    Applications Engineer
    National Instruments

  • NationalIn​struments.​UI.Windows​Forms.Lege​nd is unlicensed

    I am using the trial version of the Measurement Studio 2009 for Visual Studio 2005 that I downloaded and installed on Monday. To get acquainted with the Graphs Options, I wrote a small application. Now I want to develop a new program having similar functionalities. However I can not instantinate the Legend class:
    NationalInstruments::UI::WaveformPlot^ wf;
    NationalInstruments::UI::WindowsForms::Legend^ lgnd;
    NationalInstruments::UI::LegendItem^ lgnditem;
    lgnd = gcnew NationalInstruments::UI::WindowsForms::Legend();
    NationalInstruments::UI::WaveformPlot^ wf;
    NationalInstruments::UI::WindowsForms::Legend^ lgnd;
     NationalInstruments::UI::LegendItem^ lgnditem;
     lgnd = gcnew NationalInstruments::UI::WindowsForms::Legend();
    These lines are under the button click event and if user clicks the button, a new form is generated which has a waveformgraph with a legend. For the last line above, I got the following error message:
    NationalInstruments.UI.WindowsForms.Legend is unlicensed
    The trial version is new and is not supposed to expire. The "small application" is still running without any errors. What would be the reason? Except the legend class, I do not have a similar problem for led, waveformgraph classes in the ...

    Hello Asay,
    thank you for posting at the National Instruments Forum. You wrote, that you are using Visual Studio. I heard of a similar problem, when a customer used Visual Studio together with Visual Studio Express (free VS from Microsoft). Have you installed the Express Version as well on your computer?
    Best regards
    MarianO

  • Getting AcceesViol​ationExcep​tion from NationalIn​struments.​DAQmx.Task​.Unregiste​rAsyncWait​Handle

    Hi,
    I'm using my own .net application that communicates with NationalInstruments.DaqMx.dll (version 9.7) in order to activate NiDaq in the following configuration:
    PXI -1033 chassis with two slots of PXI-6284, measuring differential voltage. This application was already running for some months and was tested under high performance - high sampling rate and long hours, with no problems so far. Recently we were trying a new use case - running short sessions (60 mins each) of measurements in sampling rate = 100 and samples per channel =100. after few iterations we keep getting access violation exception:
    Exception Info: System.AccessViolationException
    Stack:
       at NationalInstruments.DAQmx.Task.UnregisterAsyncWait​Handle(System.Threading.WaitHandle)
       at NationalInstruments.DAQmx.Internal.DaqAsyncResult.​AsyncOpDone()
       at NationalInstruments.DAQmx.Internal.AnalogMultiChan​nelMemoryOptimizedMultiSampleReadAsyncResult.WorkI​tem(System.Object)
       at System.Threading.QueueUserWorkItemCallback.WaitCal​lback_Context(System.Object)
       at System.Threading.ExecutionContext.RunInternal(Syst​em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threa​ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.QueueUserWorkItemCallback.System.​Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWa​itCallback()
    Keeping the sampling rate as 100, but setting samples per channel to 1000 seems to solve this problem.
    Can someone explain me what is the cause of this exception?
    Thanks,
    Hadas
    Solved!
    Go to Solution.

    Thanks Mike,
    I attached the relevant code pieces. Generally, it is based on the example on NI-DAQ\Examples\DotNET4.0\Synchronization\Multi-De​vice\AIContAcquisition\cs.
    It has 4 classes:
    SyncTask - an abstract class that represents one task
    NiSyncTask - a derived class that does the actual access to DAQmx API
    TaskManager - an abstract class that manages several SyncTasks
    NiTaskManager - a derived class that manages NiSyncTasks 
    It's quite complicated, but I hope it will be helpful.
    Regards,
    Hadas
    Attachments:
    SynTask.zip ‏9 KB

  • PROGRESS ANALYSIS: what does COST PROPORTIONAL measurement method use for?

    Hi Experts,
    When I tried to use the COST PROPORTIONAL measurement method, I found 1 thing:
    + actual POC = actual cost / overall value
    + BCWP = actual POC x overall value
    It means that BCWP = ACWP (actual cost) --> Cost Variance (CV) = BCWP - ACWP = 0
    Hence we cannot see the cost variance when we apply the COST PROPORTIONAL method.
    Could you please help me to explain the use of COST PROPORTIONAL method?
    Thanks and best regards,
    Khoa Huynh

    Hi Abdul Khader,
    Thanks for your answer. I got your point.
    But can you explain more about "Cost proportional measurement method is suitable for work packages where costs and services have a constant relationship"
    Thanks a lot,
    Khoa Huynh

  • Distributi​on in VS 2013

    Hi Sir :
    I use Measurement studio 2013 and VS2013 for my project and I want to distribute my project on another PC with same OS.
    My platform is Win 7 64-bit and use .Net framework 4.5.
    Before to create an installer, I find that I should create a licenses.licx file for my project.
    I refer the link below.
    http://zone.ni.com/reference/en-XX/help/372636F-01​/mstudiowebhelp/html/licensingnetwithoutintegratio​...
    However, this example based on VS2010 and some of steps below I do not how to do in VS2013.
    Manually Creating an .licx File
    To manually license the Measurement Studio assemblies you must have a licenses.licx text file included in your project. If your project does not have a licenses.licx file, complete the following steps.
    Use a text editor to create an empty text file.
    Name the file licenses.licx, and place the file in the directory for your project.
    Right-click the licenses.licx file, and select Include in Project. // I do not know how to do this
    Set Build Action to Embedded Resource in the Properties window for the file.
    Add and update all the Measurement Studio licensed types for the file as outlined in the following section.
    Licensing Visual C++ CLR Projects in Visual Studio 2010
    In Visual Studio 2010, if you create a Visual C++ CLR project and then add a Measurement Studio control, by default Visual Studio does not embed the license for the Measurement Studio control into the compiled application. As a result, you receive aLicenseException at run time. To work around this issue, you can manually set the licenses.licx file to build with the License Compiler by completing the following steps:
    Right-click on the project in the Solution Explorer.
    Select Build Customizations from the context menu.// I do not know how to do this, VS2013 seems has no this option
    In the Available Build Customization Files pane, select the check box to add lc(.targets, .props) for your project. ClickOK.
    Right-click on licenses.licx in the Solution Explorer, and select Properties.
    In the Property Pages, select General in the Configuration pane, then select License Compiler in the Item Type drop-down list. Click OK.
    Could you please give me a example that bases on VS2013?
    I only use waveformgraph and led arrays in my project and use NationalInstruments.UI.WindowsForms、NationalIn​struments.Analysis.Enterprise、NationalInstruments.​Common and NationalInstruments.UI for reference.
    So I create licenses.licx like attached file, could you help to check if the file is correct?
    I follow NI’s recommendation to use wix for MS installer and I also try your example All Libraries.2012.
    This version bases on VS2012,
    However, I can not check and add .Net Framework 4.5 on target machine.
    Could you show me how to do this or could you proivde me an example that base on VS2013?
    Best regards,
    Marcus
    Attachments:
    licenses.7z ‏1 KB

    Hi Srinivas,  
    Thanks for your post.
    You’re using TFS 2013 Update 4 and VS 2013 Update 4? As far as I know VS 2013 Update 4 version is 12.0.31101.0.
    But in your message, the devenv.exe’s version is 12.0.31206.0, please launch your VS 2013 and check the version in HELP>>About Microsoft Visual Studio.
    Your VS stopped working when you clicked Check In button in Team Explorer – Pending Changes window?
    If using the same version of VS 2013 Update 4 on another client to check-in the same file(s) will works fine, and this issue only happened in your client VS 2013 Update 4, please Repair your VS 2013 Update 4, and clean the Cache on your client.
    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.

  • Result Analysis Settlement - Posting to FI

    Hi all
    I am configuring Result analysis related configuration to post WIP values to FI on period basis. I did following nodes configuration
    1.  Create Result Analysis Keys
    2.  Define Result Analysis Versions
    3.  Define Valuation Methods for Result Analysis
    4.  Define LIne ID
    5.  Define Assignment for Result Analysis
    6.  Define update for Result Analsysis
    7.  Define posting rules for Settlement to Finanacial Accounting
    We have RA connection with Projects
    After making all above configurations when we are performing KKA2 and CJ88, NO FI documents are getting posted and we are repeatedly getting message as there is no "Accrual" values. 
    We even not getting WIP values at KKA2, though we have eligble values at Project.
    we need to fix that at high priority...
    your inputs are highly appreciated..
    Kindly let me know, if any further clarifications required on this.
    best regards,
    S. Habib Pasha.

    Hi ,
    Based up on the above discussion did you executed any standard cost and revenue reports against the relevant WBS elements and verified that costs and revenue are flowing properly to the project ?
    In the RA are you able to see the WIP Values,Planned values and Actual values for COST and REVENUE ?
    And what are the parameters you maintained in  Settelement Profile ?
    Thanks,
    Sai.

  • Quantity base POC method of result analysis

    hello all,
    We are trying to create the result analysis key with quantity based POC method for Projects. we are choosing the Profit basis as E,K,M but we are getting the error ' Profit basis is only used for sales order.
    Can anybody help resolving the issue?
    Regards,
    sudhir

    RamSiva,
    I see that you've got the calculated COGS equal to the actual cost.  I would have thought that for quantity based POC the calculated cost should be equal to POC x C(p).  So if that's the case, I think the postings should be as follows:
    Debit Revenue for 36,000
    Credit Reserve for Revenue surplus for 36,000
    Since I don't know what the planned cost were I don't know what the correct signs are for COGS adjustment;
    Debit / Credit (Expense)
    Debit / Credit (Capitalized cost or reserve for unrealized cost, depending on the sign)
    If R(a) less than R(c) then:
    Credit Revenue
    Debit Revenue in excessive of billings
    thanks,

  • Estimation method of progress Analysis

    Hi,
    We are having following scenario.
    We are creating the project in PS. Then creating the PM order & assigning
    the order to WBS element.
    We want to use the Estimation method of progress analysis. Hence we havedefined Estimation method as default measurement method (both plan &
    actual )for following objects,
    1. WBS element
    2. Internal processed activity
    3. External processed activity
    4. General cost activity
    5. Order (Other than Network)
    For WBS element & all activities we are able to manually maintain planned
    POC & actual POC in CJ20n.
    But for PM order we are not able to manually maintain planned POC &
    Actual POC.
    Can you please let me know where we can manually maintain the planned &
    actual POC for PM Order.
    regards,
    Pradip Shelke

    /@#$%%%%@ wrote:
    > Can you please let me know where we can manually maintain the planned &
    > actual POC for PM Order.
    I do not think it is possible for order to use estimation method..
    Please go for Cost / Time / Work proportional

  • KJ280 Message Results Analysis KKA1

    Hi All,
    I am Trying to do a Results Aanalysis on one Serivce Order in KKA1 and it throws the following Error , I changed the status TECO, and changed the RA Key ,Just a try, but still gives the same Error Message, If anyone can Help me in this I really appreciate that.
    Thanks,
    Sandhya
    Order without revenue: Only RA types F and Z permitted
    Message no. KJ280
    Diagnosis
    The order type of the order on which you are attempting to perform results analysis does not allow revenue posting.
    In the results analysis version, you specified that work in process for this order is calculated separately instead of through results analysis for the sales order item or WBS element. This means that the work in process will be calculated through the results analysis key in the order until the order has the status DLV (delivered) or TECO (technically completed). Once the order has one of these statuses, the actual costs for the order are included in results analysis for the higher-level sales order or WBS element.
    Procedure
    Enter a results analysis key in the order that is suitable for calculating work in process. To do this, choose a results analysis key for which a valuation method with results analysis type F (calculate work in process) or Z (cancel work in process) is defined.
    If no results analysis key has been defined for WIP calculation, you must go into Customizing and change the valuation method of the results analysis key accordingly.

    Hi,
    Plz check u r RA version. In the version check under calculate WIP or RA for section. I think in u r version there is tick box on Internal and service orders w/o revenue. In conjunction with this check which is more appropriate between first and last option in this section.
    If last option selected, it wont allow if you have any revenues on your order. Then check u r valuation method statuses and u r order status.
    Regards
    Sudhakar Reddy

  • Results analysis: any way to exclude certain cost element from calculation?

    Hi everyone!
    We are implementing Results Analysis for projects. But the client is asking if there is a way to exclude some cost elements of the results analysis calculation. We are using method 07, POC based in the project milestones.
    This is why they need this. They say that very often they they have costs higher to what they should be according to the month's billing. So they need to send the corresponding part to a WIP account. But not all the costs. They have internal costs (like the hours of internal resources) and external costs (like materials procurement or external services contracts). They only want to send to WIP the exceeding external costs. But leave all the internal costs in a cost account. So to do this we need to exclude these kind of cost elements (secondary cost elements) from the results analysis calculation. Is there any way to do this? Any ideas?
    Thanks in advance!
    Regards,
    Thalos.

    Hi,
    In OKG4, next to Line ID there is a field where you can set "N" which means not to include. Make this settinng for required cost elements / Line ID's and then test the changes.
    Regards
    Sreekanth

  • Regarding GAP Analysis.

    Hello guyz,
    this is hawkin. can anyone describe the proceedure of GAP Analysis,
    1> what is GAP Analysis
    2>In which phase of implementation it is done
    3> Are there any navigational steps for these..
    4> can u people expalin with good scenario.
    thanks and Regards,
    Hawkin.

    Hi Hawkin,
    In information technology, Gap analysis is the study of the differences between two different information systems or applications, often for the purpose of determining how to get from one state to a new state. A gap is sometimes spoken of as "the space between where we are and where we want to be." Gap analysis is undertaken as a means of bridging that space. Among the various methodologies used to perform gap analysis is IDEF, a group of methods used to create a model of a system, analyze the model, create a model of a desired version of the system, and to aid in the transition from one to the other.
    The Gap Analysis Fit is a step inside an ideal business blueprint of a BW project implementation (but, clearly, the same concept can be applied to several situation...).
    During this step, after having collected all the client's requirements, you have to higlight what you need (or what you can) to use to build what the user wants.
    In this analysis, you find that a business content datasource (found via help.sap.com or after the SDN's forum suggestion or...) can provide almost all the required fields (since a datasource is a collection of several fields..).
    Anyway, notwithstanding this, you realize that this datasource is good only for a 95%, because it's missing the info related to the customer (usually shown with 0CUSTOMER object, but you can use a ZCUSTOMER or something else...the only important thing is that you need this info!).
    Ok, you know that in order to fit this gap, you have to build your own enhancement with a little userexit to fill this missing field: THIS IS THE GAP ANALYSIS FIT !!!
    This explanation applies also to a std cube, to a std query and so on...
    Sure, you use std business content, but why you ask "why does he say the source system doesn’t provide it" ???
    The std objects can't provide always all we need, but only, if we are lucky, a part (more or less) of it...and at this point you need to perform this kind of analysis...
    plz check this link..
    Re: LO-Cockpit  V1 and V2 update
    Thanks,
    Sudhakar.

Maybe you are looking for