How do I perform an FFT or ReFFT in VB6 using measurement studio

I am trying to make a filter by taking a 1D array of voltages and doing a ReFFT() and padding the high frequencies in the array with a value of zero and then going back to time domain with ReInvFFT().  Here is my code which does not seem to be filtering any high frequency content.
lngReturn = frmMain.CWAI1.AcquireData(varData, varBinaryCodes)
frmMain.CWDSP1.ReFFT varData, realdata, imgdata
For i = (UBound(realdata) / 100) To UBound(realdata)
    realdata(i) = 0
    imgdata(i) = 0
Next
frmMain.CWDSP1.ReInvFFT realdata, imgdata, varData
After the function is done varData has a 1D array of filtered real voltage values.  It does not seem to be filtering and I get back exactly what I pass in.  I know it must be something simple that I am missing perhaps the variable cannot be used to pass in and then  back out the values??
Please shed some light as there are NO examples of this use of FFT.
Thanks

Arthur,
Thank you for your reply.  But at this point, one of my points of confusion is what software I have available to me.  I wish I had a useful central help desk to call up and just say, "Hey, load me up with all of the professional version(s) of Visual
Studio.  But I do not know what we have license to.  And I kind of need to know what the options are, so that I can ask a specific question of our vast buracracy.
For now, I have downloaded only free versions of Visual Studio client software.  Since my company does have servers running Microsoft SQL Server, I am going to assume that we have proper licensing for those servers.  But does that server license
allow me to get any professional versions of the PC client software for the various Visual Studio(s) 2012?
And if I get a professional version of Visual Studio 2012, does that do away with the three different flavors that I have right now?  I have 2012 versions of SQL Server Management Studio, Visual Studio Express, and Visual Studio Shell (Integrated).
Your feedback is much appreciated.
Thanks!

Similar Messages

  • How do I print the displayed graph? I am using Measurement Studio for Visual Basic.

    a

    It is true that calling the PrintForm method is the easiest way to print your graph. However, if you wish to print only the graph, and not the rest of your form, there is a way to do this also.
    The CWGraph control, and some other CW controls, supports the ControlImage method which returns a Windows metafile containing an image of the graph. You can then send this image to your printer using environment-specific printer commands.
    In Visual Basic, use the Printer.PaintPicture command to send the metafile, and top and left coordinates to the printer. Then call Printer.EndDoc to flush the job to the printer:
    Printer.PaintPicture CWGraph1.ControlImage, 0, 0
    Printer.EndDoc
    In the above code, the second and third parameters specify the position of the image o
    n the page; you can also enlarge or shrink the image by specifying width and height. You may want to take a look at the Visual Basic PaintPicture function help for more details on this function.
    J.R. Allen

  • How can I perform this kind of range join query using DPL?

    How can I perform this kind of range join query using DPL?
    SELECT * from t where 1<=t.a<=2 and 3<=t.b<=5
    In this pdf : http://www.oracle.com/technology/products/berkeley-db/pdf/performing%20queries%20in%20oracle%20berkeley%20db%20java%20edition.pdf,
    It shows how to perform "Two equality-conditions query on a single primary database" just like SELECT * FROM tab WHERE col1 = A AND col2 = B using entity join class, but it does not give a solution about the range join query.

    I'm sorry, I think I've misled you. I suggested that you perform two queries and then take the intersection of the results. You could do this, but the solution to your query is much simpler. I'll correct my previous message.
    Your query is very simple to implement. You should perform the first part of query to get a cursor on the index for 'a' for the "1<=t.a<=2" part. Then simply iterate over that cursor, and process the entities where the "3<=t.b<=5" expression is true. You don't need a second index (on 'b') or another cursor.
    This is called "filtering" because you're iterating through entities that you obtain from one index, and selecting some entities for processing and discarding others. The white paper you mentioned has an example of filtering in combination with the use of an index.
    An alternative is to reverse the procedure above: use the index for 'b' to get a cursor for the "3<=t.b<=5" part of the query, then iterate and filter the results based on the "1<=t.a<=2" expression.
    If you're concerned about efficiency, you can choose the index (i.e., choose which of these two alternatives to implement) based on which part of the query you believe will return the smallest number of results. The less entities read, the faster the query.
    Contrary to what I said earlier, taking the intersection of two queries that are ANDed doesn't make sense -- filtering is the better solution. However, taking the union of two queries does make sense, when the queries are ORed. Sorry for the confusion.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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

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

  • How do I perform a multicam edit in PPro CS6 using Plural Eyes?

    So I'm new to multicam editing in CS6. I've recently upgraded from CS3 (yeah, it's been awhile). I'm editing a wedding on a Windows 7 machine with mostly DSLR's (start and stop clips). My workflow was going to be to sync through Plural Eyes and then all the clips would be synced on the timeline and I could create a multicam sequence from there. But apparently, you can't do that like you could in CS3. It seems that multicam was easier to do in CS3 almost. Has anyone been able to sync multiple DSLR clips on the timeline and use the multicam feature? I would love to be able to do this but not sure how to go about it or if it's even possible. Thanks for any of your help!

    CS6 does add an additional method of creating a multicam sequence, but the old method there from the beginning still works just fine.

  • How do I read a R/3 table from VB6 using RFC?

    I am using a DLL created in VB6 to connect to an R/3 system.  I then call several ABAP functions I have written and exchange data.  This all works nicely.
    I now have a R/3 function into which I pass a parameter, and it gathers some data into a table which has 3 string fields.  I want to pass that data back to my VB6 DLL, and read all the records from the table.
    Unfortunately I have absolutely no idea where to start.  If someone could post an example of reading data directly from a table I would appreciate it.
    Here is the function so far.  It passes the parameter "scenario" to the ABAP Function, and then needs to read the table directly.
        Dim oR3Func As Object
        Dim oFuncLoadDocument As Object
        bResult = Logon(oR3Func, "SAP.BAPI.1")
        If bResult Then
            Set oFuncLoadDocument = oR3Func.Add("ZMT_SET_SCENARIO")
            oFuncLoadDocument.exports("SCENARIO") = sScenario
            bResult = oFuncLoadDocument.Call
            ' Retrieve and read table here???
        End If
    Kind Regards
    Jack

    There are two "generic" function modules to read table data from SAP. The one above and RFC_GET_TABLE_ENTRIES. However, most of the time you want to filter/process the data before it leaves SAP as large data handling is slow in VB. If you have ABAP skills it is often better to develop your own RFC enabled function module.
    As of the VB access, there is several OCX you can use, documentation link:
    http://help.sap.com/saphelp_46c/helpdata/en/39/7e11e0ac6011d189c60000e829fbbd/frameset.htm
    Help title: SAP Automation RFC and BAPI Interfaces (BC-FES-AIT
    It's all fairly straightforward once you get into it.
    PS I almost always use the functions OCX...

  • How do I perform a "Suite Product Activation" so that Acrobat will start working on my new Retina MacBook Pro?

    How do I perform a "Suite Product Activation" so that Acrobat will start working on my new Retina MacBook Pro?
    Like others, I have recently upgraded my MacBook Pro to the next generation and migrated all my information from old to new. Everything works seamlessly EXCEPT Acrobat. Photoshop, Indesign, Bridge and Lightroom all seem functional. Acrobat hangs with an error message "Suite Product Activation Needed. Acrobat was installed as part of a suite. To enable Acrobat, please start another element of the suite (such as Photoshop)." Needless to say, starting another element of the suite has NO impact on Acrobat.
    This has to be a common problem. Now that Apple has made it really easy to migrate information from old to new machines, it has to come up all the time. What surprises me greatly is that I can't find any coherent answer in these forums.
    So how do I get Acrobat running again?

    Hi Anubha,
    I do not understand what you said below.
    I am running Adobe Acrobat Pro Version 9.5.5. I do not remember whether it came with Photoshop or InDesign.
    When I open Photoshop, it opens without my having to follow any instructions to activate the software. As a matter of fact, I cannot find my Photoshop serial number anywhere in the Photoshop program itself. I do know it from my profile at Adobe.com. Are you suggesting I deactivate Photoshop on the new computer and then reactivate it using my serial number? Will it reactivate?
    When you say
    "/Library/Application Support/Adobe" at the root level of the startup disk (not the Library folder inside a user's Home folder)
    what do you mean? I do not have a startup disk. I have the original installation disk but that version of Photoshop has been updated a few times.
    After staring at your instructions for a while, I realized that you might be talking about the Library/Application Support folders resident on my Macintosh HD, although why you called it a startup disk is unclear to me. IAC, I went into those folders and duly moved the three folders into a new folder I called “Acrob1” and restarted Adobe Acrobat 9 and got the following error message: “AMT Subsystem Failure  The licensing subsystem has failed catastrophically. You must reinstall of call customer support.” with a small (6).
    By undoing my actions I am back to the staus quo ante.
    Now what?
    Regards, Robert

  • How to improve performance of MediaPlayer?

    I tried to use the MediaPlayer with a On2 VP6 flv movie.
    Showing a video with a resolution of 1024x768 works.
    Showing a video with a resolution of 1280x720 and a average bitrate of 1700 kb/s leads to a delay of the video signal behind the audio signal of a couple of seconds. VLC, Media Player Classic and a couple of other players have no problem with the video. Only the FX MediaPlayer shows a poor performance.
    Additionally mouse events in a second stage (the first stage is used for the video) are not processed in 2 of 3 cases. If the MediaPlayer is switched off, the mouse events work reliable.
    Does somebody know a solution for this problems?
    Cheers
    masim

    duplicate thread..
    How to improve performance of attached query

  • How can I perform a bulk assignment to one Task

    Hi All,
    I would like to allow all resources to assign some of their time to a cProjects Task (XXXX Implementation plan). How can I perform a bulk assignment to this task, instead of performing individual assignments?
    Please help.
    Thanks,
    Srini

    Not quite sure I fully understand your question. When you go to the "roles" tab of a task you are allowed to assign multiple resources to a task either from the same role or different roles. The total work or effort for the task can be distributed accross the multiple assignments.

  • How do you perform a full system restore for the hp officejet 6500

    Basically, after having this printer for 1 year, the wireless printing started to not work correctly. After buying a laptop and trying to configure the printer with it, the printer started to have problems with wireless printing. So how do you perform a FULL factory reset? I already tried hitting #9 while the printer was turning on but it only seemed to partially reset the system. It did not turn it back to the day i bought the printer.

    OK, so it turns out it was the 'only show synced content' tick box.
    Wow, how embarrassed do I feel now? I never even paid any attention to that tick box all these years.
    Interestingly, over the last couple of days I had my ATV at v1.1 again, and happily deleted all my content (except for 1 album which I deliberately left on). A few days went past, and I checked daily - and there was only ever the 1 album.
    I then upgraded to ATV v3.0.1 again today and that's when my problems came back - all my content magically reappeared on the Apple TV (or so I thought).
    I'm thinking maybe that the 'only show synced content' is a recent 3.0 feature? And if so, maybe that's why I never noticed it before and that's why it was confusing me? Or maybe it's been there all these years (in which case I'll carry on being embarrassed).
    Anyway, a huge thanks to everyone who responded.
    Brad

  • How do I perform a screen capture to print or save?

    How do I perform a screen capture to print or save?

    Press the Shift, Command, and 3 keys to capture the whole screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen, or follow it with the spacebar to capture a window.
    Open the PNG on the desktop. Alternatively, combine either of the above with the Control key to put the screenshot onto the clipboard instead of the desktop.
    (116647)

  • How do I perform a clean install of Lion Server?

    There seem to be many sites documenting how to pull out the ESD image and burn a bootable copy of Lion.
    What I'd like to know is how do I perform a clean installation of Lion Server?
    Is it possible to just install Lion and then open the App Store and install from Purchase without being charged again?

    Okay....so Apple does have a guide related to Mass deployment which includes a rough way to do a clean OS X Server clean install. You need to use a NetBoot Lion Server as a boot, but it works.
    http://support.apple.com/kb/HT4746
    Use these steps to create a NetRestore image of an un-configured Lion Server:
    Install OS X Lion, and then Lion Server. This server will be used to create the NetRestore image.
    On the server, install the app named "Install Mac OS X Lion" from the Mac App Store (a network connection is required for this process).
    Install the Server Admin Tools from http://support.apple.com/downloads/ on the server.
    Open the "Install Mac OS X Lion" application, and install to an empty volume. This volume can be a spare partition or external hard drive. Be sure to click the Customize button and to select the Lion Server software.
    Once installation is complete, the server will restart from the newly installed volume.  Instead of completing the setup assistant, press Command-Q to quit the assistant.
    Select the option to shut the server down.
    Restart the server and hold the Option key.
    When the Startup Manager appears, select the volume which you've already configured Lion Server on.
    Open System Image Utility and create a NetRestore image from the newly installed (and still un-configured) volume. If you'd prefer to image the volume after it has already been configured, you can proceed with the setup assistant before booting back to the original installation created in step 1.

  • How do I perform a back up from my iPhone to my mac

    how do I perform a back up from an iPhone to my mac

    Click here and follow the instructions.
    (114873)

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

Maybe you are looking for

  • Not able to edit membership of universal security groups

    I'm not able to edit membership of My Universal security groups using outlook, when I add/remove members it shows the error "Changes to the public group membership can't be saved. You do not have sufficient permission to perform this operation on thi

  • "/network/physical:default" problem in Solaris 10 x86

    I have a problem with network interface on Solaris 10 x86 on HP Proliant ML 370 G4 server. The problem is that at the boot time it report some problem with network interface and writes "see svcs -x" # svcs -x svc:/network/physical:default (physical n

  • Can't find Twain plug in for Photoshop Elements 12 from App store

    I'm running OSX Mavericks and have purchased Photoshop Elements 12 from the App Store. I want to be able to scan things into Elements but the import option is grayed out. I've tried to follow these directions (TWAIN not installed | Photoshop Elements

  • Using API Functions on Forms 6

    Does anyone know how to change the mouse cursor to a handpoint? I can't use set_application_property because it only supports BUSY, CROSSHAIR, DEFAULT, HELP, and INSERTION. I am trying to use win_api_session.change_cursor, but get an internal PL/SQL

  • Error when inserting more than 500 characters

    Hello all, I am not sure if I should be posting here or in the Flex Forum, so I apologize ahead of time if I am in the wrong place. I am Using a Flex frontend and a ColdFusion backend to edit data in a simple Access Database (for testing). I have a C