Measurement Studio memory problem

I'm using the IIRFiltering function of the CWDSP package. I have to process large ammounts of data at once (over 265 MB). The input data is in integer format, this is good enough and is in fact a demand to keep the memory usage low. The function seems to take this format fine.
But the problem now is that the IIRFilter only seems to return data in variant format which is unacceptably large (8 times as large!).
This variant is no option while it crashes my system due to memory overload.
Is there any way that the IIRFiltering module can output the data in integer format? Or is there any other way to keep the memory usage of the function low?
Thanks.

Unfortunately for your application, this is just the way that the control works. There is no way to change the data type that the control returns.
I can think of a couple of ways that you might be able to work around this issue. If you own Measurement Studio, you could use the C++ tools to create a DLL that calls the appropriate CNiIIRCascadeFilter function. The C++ tools return the values as an array of doubles. This would be only twice as large as your integer data. The underlying National Instruments analysis library operates on doubles - we do not provide an algorithm that operates on integers - so this is as small as you will get with our tools.
Another option is to decimate your data (use CWDSP.Decimate) before you attempt to filter it. Whether this
will yield accurate enough results for you really depends on your application.
If neither of these options is acceptable, you might need to consider hardware alternatives.

Similar Messages

  • 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

  • Problems with cwStats (MS 6) after evaluating Measurement Studio 7

    I have the Full version of Measurement Studio 6 installed on my development machine. I recently installed Measurement Studio 7 to begin migrating our application to .NET. While recently doing some upgrade work on our VB6 project I started receiving an error when using the "full" capabilities of the cwStats control. It basically tells me that I do not have a license for the "full" version. I have installed the latest updates for MS6 but am still having the problem. Is this a known issue and is there a workaround?

    Hello,
    With Measurement Studio 7.0 we shipped a utility called ActiveX License Fixer. This was due to this known issue that the license of a released 6.0 will go into evaluation mode for 30 days if someone installs 7.0 released over the controls.
    You should run this utility from the Measurement Studio 7.0 CD (it has a readme) and it will fix everything up for you.
    Regards,
    Jeff
    NI

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

  • Why the wave is disvisible?? I used measurement studio 7.0.1 in my existing VC++ 6.0 project

    I have an existing Microsoft Visual C++ project  MyProj. I  have installed the NI measurement studio 7.0.1 on my computer yesterday.
    I have added a CWGraph control on a dialog of MyProj via "Project-> Add To Project->Components and Controls...->Registered ActiveX Controls->CWGraph Control".
    It created 22 classes such as "CCWGraph/CCWPlots/CCWPlot/CCWAnnotations......." in my MyProj,
    Now, I create a variable m_GraphCtrl for the CCWGraph Control by classwizard.
    I want to used following codes to create a wave and show on the control,  in my debugging , it's running no problem, but the control not show a wave.
    I have add a plot "1" in the contrl's Properties "Plots".
    I have set the "Axes-XAxis-Auto scale" and "Axes-YAxies-1-min 0: max 255" in the control's Properties.
    code:
    VARIANT vrtItem, vrtData, vrtFirst, vrtInc;
    vrtItem.vt = VT_BSTR;
    vrtItem.pcVal = "1";
    vrtFirst.vt = VT_I4;
    vrtFirst.lVal = 0;
    vrtInc.vt = VT_I4;
    vrtInc.lVal = 1;
    vrtData.vt = VT_BYREF|VT_UI1;
    vrtData.pbVal = CH1WaveData;//unsigned char CH1WaveData[2500];there have had value already.each value is between 0~255.
    // Graphs
    m_GraphCtrl.GetPlots().Item(vrtItem).ClearData();
    m_GraphCtrl.GetPlots().Item(vrtItem).PlotY(vrtData, vrtFirst, vrtInc);//no wave show on the CWGraph control
    //annotations
    m_GraphCtrl.GetAnnotations().Item(vrtItem).GetCaption().SetXCoordinate(0.00);
    m_GraphCtrl.GetAnnotations().Item(vrtItem).GetCaption().SetYCoordinate(200.00);//this codes worked good,
    m_GraphCtrl.Refresh();
    Who can tell me why ???

    Hi Johannes,
    Did you get a chance to read this thread?
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B3E20000&UCATEGORY_0=_342_%24_7_&UCATEGORY_S=0

  • Memory problem with jdk/jre 1.1.8

    My name is BERGMANN Yannick.
    I'm working for IRM in Li?ge and we developped an application (user interface for an industrial measurement system) in Java (JDK/JRE version : 1.1.8).
    We have a big memory problem with this application :
    - This user interface is running on a WINDOWS NT PC with 128MB.
    - This is the command to lanch our application :
    C:\Program Files\JavaSoft\JRE\1.1\bin\jrew.exe" -ms32m -mx32m -cp "\Program Files\HMI\HMI.zip;\Velocis\Add_On\Jdbc\raima.jar;\Program Files\Swing-1.1.1\swingall.jar" be.irm.hmi.kernel.HMI -t15 -d"Velocis rdstcp" -newdb -mf1m -mr20
    - When our application is running, everything seems to be OK in memory for it. The garbage collector seems to work properly and our application has always at least 5MB free memory (We use the java instruction "Runtime.getRuntime().freeMemory()" to know this).
    - But when we look in the "Windows NT task manager" for the "jrew" application, the memory increases ALWAYS.
    - After 5 days our application is completely frozen and blocked ...???
    - here is a memory map of our Windows NT PC :
         "jre.exe"     "commit total"     "commit limit"     "commit peak"     "physical total"     "physical available"     "physical file cache"     
    Monday     92264     109256     194944     109424     130484     19492     6216     
    Thuesday     106196     123072     194944     123348     130484     6072     5840     
    Wednesday     110836     132288     194944     132416     130484     4408     5140     
    Thursday     108200     144980     194944     145140     130484     4888     5148     
    Friday     109440     158319     194944     161334     130484     4911     4992     
    Monday     111600     209060     228548     209148     130484     5184     3484     
    Have you any idea of what is happening with "jrew" in memory ?
    We have had this problem for six month and we are totaly out of idea.
    If you can give us any idea, we'll appreciate a lot.
    Thanks in advance,
    BERGMANN Yannick
    IRM SA - Software Engineer
    Tel. (32)4/239.90.10
    Tel. (32)4/239.90.74 (direct)
    Fax (32)4/263.40.97
    E-mail [email protected]

    We had a memory problem with a swing applet in our company. The major reason for this was that we added new components in a JTree and removed them later again, and the components we removed were never garbage collected. This was because with these components we added different listeners, and we didn't remove the listeners after we didn't need the components anymore. After we corrected this, the components where garbage collected.
    Perhaps it's a similar problem you have, or I have no idea. Check that you remove actionlisteners, mouselisteners etc from components you want to be garbage collected.
    You could also test your application with OptimizeIt to see what objects you create and how many you get of them over time: http://www.vmgear.com

  • How to use a Measurement Studio class in MFC

    I am new to MFC coming over from VB.NET.
    I have created a VISA class to measure something from an instrument and have a simple dialog box with a Button to invoke the measurement and display it to a text box. I changed the ID of the control and made a member variable for the text box and can code the OnButtonClick event to display text in the Text box as a test.
    The problem is I cannot seem to create an object of the Visa Class that I built in the OnBnClickedRun()function. I can code the OnInitDialog() to make this measurement:
    double power;
    CGetBandPower BPower;
    BPower.Run(power);
    but want to do it when I click on the button. I am using VS.NET 2003 with Measurement Studio 7.0.
    Help

    Hello,
    I think the following other discussion forum post contains useful information for you:
    http://forums.ni.com/ni/board/message?board.id=232&message.id=1306&requireLogin=False
    In particular, read the posts by the names in blue... you'll find paths to great examples which should help you use VISA in the .NET environment.
    Repost if you continue to have any problems!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How can I get Measurement Studio out of Evaluation Mode in Windows XP

    I have a licensed Measurement Studio version 7.1.  for Visual Studio 6.   I have been using this no problem on a Windows 2000 computer.   I installed this on my WindowsXP computer and it installs all the VB libraries put not the C++ libraries.  I message pops up stating that I need Service Pack3 for WindowsXP.    First of all, I don't think service pack 3 for Windows XP exists yet.  Luckily, I have been able to still use all my DataSocket components.  I believe Datasockets are part of Measurement Stuidio.   I notice that CWgraph has evaluation mode on the graph and I get a popup message in VB6 stating I'm using Measurement Studio in evaluation mode.   

    Hello,
    The service pack in question is not for Windows XP.  The Measurement Studio installer required the VC++ 6 service pack 3 or higher.  I know that Microsoft has a service pack 6 for Visual C++ 6, and this is what you should install to get the C++ libraries on your machine.
    There is a tool on the CD that is in the ActiveXLicenseFixer folder that you can run to fix up the license.  If you have a valid license on the machine it will correct any licenseing issues.
    -Jeff
    NI

  • If bought NI USB-6800 device, is Measurement Studio free for dev?

    If bought a NI USB-6800 device, is Measurement Studio free for VC++ development?
    Do I need to buy the Measurement Studio license?
    Or is there another way to do the VC++ development? Such as via some free dll or ocx library.
    Plus I noticed that there are UNIX/Linux drivers about NI USB-6800 device, but there is no document about C/C++ development under UNIX/Linux!
    Can I do the development with NI USB-6800 device under UNIX/Linux? 
    An individual human existence should be like a river - small at first, narrowly contained within its banks, and rushing passionately past boulders and over waterfalls. Gradually the river grows wider, the banks recede, the waters flow more quietly, and in the end, without any visible break, they become merged in the sea, and painlessly lose their individual being.

    Medhi wrote:
    Unfortunately it is in windows. Windows doesn't recognize the device. I don't know, is this a problem because of running WinXP in Mac?
     That may well be the problem.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Coding error using measurement studio

    hello..
    can somebody tell me where can i get help on coding the measurement studio using VB.i'm doing an interface programing with a dc servo motor.i'm using a fuzzy logic controller(FLC) to make the output of the servomotor to follow the input, which i'm using a square wave input.i'm having coding problems on linking the FLC with the harware.i'm not quite good in visual basic, so can anybody help me with the coding?i can send the vb coding of the FLC and the hardware interface coding. i've successfully implement PID controller.. but i can't seem to make the FLC work. i think there's something wrong with the coding.
    and how can i make the graph go more faster? output from the graph is very slow, compared if i probe the output from the servomotor harware using a digital oscilloscope.

    Hi,
    I recommend the Measurement Studio Reference as a resource. This reference is installed with Measurement Studio and can be found on your computer from Start>>Programs>>National Instruments>>Measurement Studio>>Help. The Measurement Studio Reference includes information on the Measurement Studio ActiveX controls and tutorials.
    Next, is the FLC you are using part of a Measurement Studio Add On? Are you using the PID Toolset for VB?
    Then, if the graph you are using is a CWGraph, you can access the properties of the graph by right-clicking and selecting Properties…. Click on the Graph Tab of the Property Pages window and check that Control Refresh is set to Immediate. This has the graph redrawn as soon as new data is available.
    Regards,
    Eric M

  • Installing Measurement Studio 2010 has caused error PRJ00003 errors in VC Projects

    After installing MS 2010, I tried opening and even creating a basic project from existing code and when compiling, I am now getting the following error:
    error PRJ00003: Error spawning 'rc.exe'
    which seems related to not being able to find kernel32.lib
    Anyone know any insight about this?  I've found lots of other people having this issue and it seems some path or something got messed up.  Just wanted to check to see if anyone else had this happen.
    Some system info
    C:\Program Files\Microsoft SDKs\Windows has v5.0 folder with Include and Lib\IA64 folders (kernel32.lib is in there) and a v6.0A folder which has an empty bin folder and Bootstrapper with bunches of stuff
    And my MVS folder is such: C:\Program Files\Microsoft Visual Studio 9.0
    And regedit sdk key has CurrentIA64Folder and Version as the two keys pointing to v5.0

    Hi ngay588,
    I have a couple of questions about what you are experiencing:
    1. Is this happening  with all projects or do projects not using Measurement Studio functions compile successfully?
    2. I'm assuming you are building Visual C++ projects, but have you tried compiling other projects in Visual Studio?
    3. What version of Visual Studio are you using?
    Also, some things to check:
    1.  Some people who have ahd this problem found that their virus scanner thought rc.exe was an infected file and was isolating it.
    2. Check to see if rc.exe is located in the following:
        C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
        C:\Program Files\Microsoft Visual Studio\VB98\Wizards
        C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin
        C:\Program Files\Microsoft Visual Studio 8\VC\bin 
    Regards,
    Hassan Atassi
    NI Community Project Engineer

  • Measurement Studio Evaluation Software - Instrument Driver Factory

    Greetings,
    I have a copy of the Measurement Studio Evaluaiton Software CD. I've
    installed the Labwindows/CVI Demo and Component Works Demo. Wanted to
    check out the Instrument Driver Factory (located in VB\Instrument
    Driver Factory). When I launch IDF.exe I get an error which states
    that I have to install Labwindows/CVI. I tried the installation a
    couple of times with the same results.
    Has anyone else had this problem?
    Thanks,
    Rick

    Mika,
    I have tried the installation on two machines.
    The first system has Windows XP Pro along with Labview 6.0.2 / MAX /
    PCMCIA-GPIB / Visual Basic 6.0 / Visual Basic.Net
    The second system has Windows 2000 and Visual Basic 6.0
    The Instrument Driver Factory error reads:
    The ComponentWorks Instrument Driver Factory cannot locate
    Labwindows/CVI. In order to use the factory, please install
    Labwindows/CVI version 5.0 or greater.
    The Measurement Studio Evaluation Sofware CD installed Labwindows/CVI
    5.5 The CD picks a path of "C:\MeasurementStudioDemo\CVI\"
    The Instrument Driver Factory is installed in
    "C:\MeasurementStudioDemo\VB\Instrument Driver Factory\"
    The Instrument Driver Factory is installed when the Component Works
    for Visual basic is
    installed.
    The part number on the installation CD is 350654B-00
    Thanks for your help.
    Rick
    On Mon, 25 Nov 2002 14:00:06 -0600 (CST), mfukuchi wrote:
    >Hi!
    >I would like to reproduce the problem on a test machine. Could you
    >please tell me what OS you are using, and if you have any other NI
    >softwares installed on your machine. Also, am I correct that you have
    >Measurement Studio Evaluaiton Software for version 6?
    >
    >Mika Fukuchi
    >Application Engineer
    >National Instruments

  • How to use Measurement studio math lib in VC6

    dear sir,
        I get the evolution version of measurement studio, which works well in DotNet and I confront with the problem that i do not know how to use measurement studio math library in VC6, please help me out ?

    All versions of Measurement Studio released to date include support for Visual C++ 6.0 (and Visual Basic 6.0).
    This support is on a separate CD from the support for Visual Studio 2003 and Visual Studio 2005.
    For example, the Measurement Studio 8.0.1 kit includes 5 CDs. One CD includes support for Visual Studio 2003 and 2005. Another CD includes support for Visual Studio 6. The other 3 CDs are Device Driver CDs.
    You want to use the CD that includes support for Visual Studio 6.0. This CD contains 2 installers. First run Setup.exe. Then run MeasurementStudio6Updater.exe to get the latest components. See UpdaterReadme.htm for information on what components are updated by MeasurementStudio6Updater.exe.

  • Visual Studio 2012 crashes at startup after installing Measurement Studio 2013

    Hi,
    History:
    VS2012 (with Update 4) has worked without problems for a few months.
    Installation of Measurement Studio 2013: at first, everything is ok.
    Reboot of the PC: VS2012 crashes at startup, showing the splash screen, "not responding"
    Deinstallation of Measurement Studio: VS2012 is working again.
    Re-Installation of Measurement Studio: VS2012 is crashing again.
    Repair-Installation of Update 4 of VS2012: VS2012 is working again ... until a reboot of the PC.
    Starting VS2012 in SafeMode: working, but i cannot use Measurement Studio in this mode (of course).
    PC is Windows 7 Professional 64Bit, Service Pack 1
    I also reinstalled VS ... without success. Any other ideas?
    Log of eventviewer has two entries, see attached File

     
    Hi,
    There were no updates during that night, but some during last night. And I'm not sure if the update 4 really is responsible for that behaviour:
    Yesterday after the crash I installed Update 4 again: it worked. Reboot: it worked.
    Starting System right now: it is crashing again.
    Currently  there are 3 Updates on the system related to VS:
    KB2707250 (The Update 4)
    KB2781514
    KB3002339
    With KB3002339 an issue with ASP.NET will be fixed. Well....i'm not using ASP.NET, just a step in the dark: i made a repair installation of this update and it is working again. How long? Maybe even god doesn't know ...

  • Use Performance Tool to check memory problem

    Hi, I am new to mac programming.
    How can I use the performance to check memory problem such as "uninitialized memory read", "memory access out of array boundary" etc?
    Thanks,
    fm

    Don't know about source code analyzer, but dbx, the Sun Studio debugger, is capable of detecting memory leaks at run time. You can use bcheck script on your application or start dbx, issue "check -leaks" and then run your app under dbx.

Maybe you are looking for

  • ZEN V PLUS - 4 gig - Only Holds 250 songs - Locks

    I am able to transfer photos, songs, and videos. I can listen or view them with no problem. The problem is the # of songs that I could get on the player is not right! I have the Zen V Plus, 4 gig. I try to transfer songs to the player but it the tran

  • My iPhone 4 wont record sound on the Video Camera. It sounds muffled.

    Today, I was trying to record a video but when I was reviewing it i notice that the sound was all muffled like if I was covering the microphone. So I took of my OtterBox Defender Case but that wasnt the problem at all. I tried blowing on both microph

  • Publish Text as Image or lock font

    I am new to dreamweaver, I use to use yahoo sitebuilder and one of my favorite features was called "publish text as image" it let you put text in any font and it would make it an image so even if someone looking at the site didn't have the font it wo

  • Christmas Gifts for All 4Videosoft Customers--Buy Windows Software, Get Mac

    Christmas day is coming, http://www.4videosoft.com/index.html 4Videosoft Studio prepares all sorts of charismas gifts for you, you can go here to get http://www.4videosoft.com/ipod-video-converter.html iPod Video Converter, http://www.4videosoft.com/

  • If I uninstall/reinstall Firefox, will I lose my bookmarks?

    I want to uninstall then reinstall Firefox in an attempt to correct the following issues: (1) Firefox keeps prompting my user names/passwords, thus creating a security hazard; (2) Firefox is continually crashing. I want to know whether uninstalling f