Using FFT to palette spectrum Subvi Interface of FPGA functions

Hello

I use the card PCI-5640R and PXI-5600. I want to use the "scale" and "FFT" exspress screws to the range of functions 'Mathematical FPGA and analysis' in my VI "FPGA VI" and "FFT spectrum for '"FPGA interface"in my"host VI.

A poster of the code examples in which these three subVIs are used can.

Thanks in advance.

Kind regards

Rashid

Hi rachid,.

There are two examples of delivery here: LabVIEW 2009\examples\R Series\FPGA Fundamentals\Analysis and Control\FFT\

Jim

Tags: NI Products

Similar Questions

  • Using the Interface of FPGA functions palette

    Hello

    I use the card PCI-5640R and PXI-5600. I want to use the "scale" and "FFT" exspress screws to the range of functions 'Mathematical FPGA and analysis' in my VI "FPGA VI" and "FFT spectrum for '"FPGA interface"in my"host VI.

    A poster of the code examples in which these three subVIs are used can.

    Thanks in advance.

    Kind regards

    Rashid

    The answer to this question is available to

    http://forums.NI.com/T5/if-Rio/using-FFT-to-spectrum-SubVI-of-FPGA-interface-functions-pallete/TD-p/...

  • Using TCP on the second ethernet interface

    Hello

    I use a PXI 8109 Pharlap module running.

    I try to use the second my PXI ethernet interface to send UDP and TCP packets. The main interface is used to manage channels Veristand.

    Here is the configuration of my two ethernet interfaces:

    -eth0 (primary):

    IP: 10.0.0.3

    subnet mask: 255.0.0.0

    -eth1:

    IP: 192.168.10.9

    subnet mask: 255.255.255.0

    For UDP, I have no problem, the packets are sent to the second interface as I want to. I think it works because there is an entry "network address" on the "Open UDP" VI so that the system can choose the right interface.

    For TCP, I use the VI "to open a TCP connection" but there is not that kind of entry. And it does not work: I suppose that the system tries to use the main interface, but it can route packets...

    For more information, my two networks is physically independent.

    Can you help me find out what is happening? Is it possible to use the TCP protocol on the second ethernet interface?

    Thank you very much

    Kind regards

    Laurent


  • Inspection of band continues using the Texture palette

    Hi all

    I'm working on a system of continuous inspection of nonwoven. I was thinking of using the Texture palette that seems to work well for my application. However when playing manual Concepts of vision, I found a sentence which confuses me a bit: "detection of Texture defects is not designed for continuous strip or surface inspection applications." If anyone can comment on that? What could be the problem?

    Thanks for your time.

    Solved. My first assumption about the performance was OK. It takes about 100 ms to process an image in VGA resolution. Binary patterns crossing the...

  • How to perform deconvolution using FFT

    Hello everyone

    Is there anyone who knows the algorith or can give me a vi that shows how to perform deconvolution of the two functions by using the FFT. Using labview for deconvolution, the suggested algorith is.

    1. Calculate the Fourier transform of the input sequence X * Y.
    2. Calculate the Fourier transform of the input sequence Y.
    3. Divide the Fourier transform of X * Y by the Fourier transform of is. Call the new h sequence.
    4. Calculate the inverse of Fourier of h to get the deconvolved Xsequence.

    I tried to do e same but did not work. I enclose a Vi in first, I bypassed a pulse-to-pulse-triangular square. Then I deconvolutee the convoluted signal using a triangular pulse with deconvolution tool in labview. Then, I tried to do the deconvoltion using the FFT algorith but did not work. Y at - it someone who has an idea on how to perform deconvolution using FFT.

    Regrads

    Charles

    Hi Charles,

    It should work to 8.5.  Let us know if you still hurt to open it.

    -Greg J

  • How to use the Shell of the user interface with multiple applications (ear)

    I use 11.1.1.6 JDeveloper.

    I want to modularize the functionality in applications (ears) and use the Shell of the user interface as a navigation mechanism between applications and single entry.

    Is this good?

    What is the use of Shell of the user interface best practices.

    What about security (2 AA)? Security of the ADF?

    Thank you

    Hi user,

    You can use the shared library ADF function if you would like more information

    http://andrejusb.blogspot.AE/2010/07/deploying-ADF-applications-as-shared.html

    use the adf security

  • Report of preflight using the book palette

    Using the book palette, I'm controlling upstream a number of documents. I checked 'Some Documents' only and said I want a report is generated.

    For some unknown reason, the generated PDF report is only 1 page/length. Normally, I would jump of joy that a few errors. However, a fellow Designer, using the same preflight profile and preflight the same number of documents, receives a report that is several pages long.

    No idea why the report generated from my Mac is only 1 page/length? I never had this problem before.

    I hope that this issue can be resolved without having to trash my preferences. I have too many to remember all custom settings.

    Thank you the InDesign community.

    Steve,

    Problem has been resolved mysteriously.

    Instead of generating a report, I tried to export the selected documents in PDF format (thinking that maybe Acrobat was failing on one page only). Several PDF pages have been generated. I tried again to control upstream selected documents and have a generated PDF report. This time it worked perfectly.

    Strange indeed.

    Thanks anyway.

  • ScriptUI Palette with button to perform the function

    Hey Hey. Ho ho. I have a question for you guys. Hey Hey. Ho ho.

    So I'm writing a script to automatically replace art existing in a file with the art of my network (specifically, necklaces. we work that says "made in usa" but we moved production overseas, then update the country of origin.) I have fixed all our model files, new orders are set up correctly, but we have tens of thousands of old orders with bad collars in the files. so far we have been manually accessing the network, opens a file that contains the correct collars and paste in the required file. A PITA serious, especially when you do 20 - 30 times per day.

    So, naturally, I started to think about how to automate it. For most files, this process is really simple and straightforward because the files that we use has set up a system of good address. However, orders more alumni dating back to before the address system, so the script in some cases, to do a break in order to let the artist select USA collars so that the script can move to a new layer and hide.

    To remedy this, I decided to use a scriptUI as an alert box pallet (if the artist still has access to the user interface, so they can select the necessary art, then click a button to perform a function and complete the task. The button in the palette works to perform the desired function, but then I get an error in ESTK that "there is no document. What I'm doing wrong here? Everything works until the promptToSelectCollars() function; The error occurs at line 291 trying to use docRef.layers.add (); I added the line 290 after the first time I got the error to see if docRef just need to be redefined, but that did not help.

    I guess I can just force the artist to select any work necessary before running the script, but I like it to be as smooth as possible and requires a minimum of steps pre...

    Here's the current code (must still be completed, I know)... Any thoughts?

    //Add DR Collars
    
    
    function container()
    {
    
    
        /////////////////////
        ///Logic Container///
        /////////////////////
    
    
        function whatStyleDialog()
        {
            // var docRef = app.activeDocument;
    
    
            var sports = ["SLOW_SS", "SLOWW_SS", "SLOWY_SS", "FAST_SL", "FAST_RB", "FAST_FB_SL", "FAST_FB_SS", //
            "FAST_2B_SS", "BASE_FB_SL", "BASE_FB_Y_SL", "BASE_FB_SS","BASE_FB_Y_SS", "BASE_2B_SS", "BASE_2B_Y_SS"];
    
    
            
    
    
            var wS = new Window("dialog", "What Collars Do You Need?");
    
    
            var inputGroup = wS.add("group");
                inputGroup.orientation = "column";
                var sportsGroup = inputGroup.add("group");
                    sportsGroup.add("statictext", undefined, "Choose Sport");
    
    
                    //populate sports dropdown list
                    var sportsList = sportsGroup.add("dropdownlist", undefined, sports);
                    sportsList.selection = 0;
    
    
                var styleGroup = inputGroup.add("group");
    
    
                    styleGroup.add("statictext", undefined, "Enter Style Number:");
    
    
                    //input text box for style number
                    var styleInput = styleGroup.add("edittext", undefined, "000");
    
    
            var buttonGroup = wS.add("group");
                var okButton = buttonGroup.add("button", undefined, "OK");
                var cancelButton = buttonGroup.add("button", undefined, "Cancel");
    
    
    
    
            if(wS.show() == 1)
            {
                var results = "";
                results = "FD_" + sportsList.selection.text + "_";
                results = results + styleInput.text + ".ait";
                return results;
            }
            else
            {
                return null;
            }
        }
    
    
        function getStyle(styles)
        {
            if(styles.length>1)
            {
                var result;
                var gS = new Window("dialog","Which Garment?");
                    var titleText = gS.add("statictext", undefined, "Which Garment Do You Need Collars For?");
                    var buttons = styles;
                    var buttonGroup = gS.add("group");
                    buttonGroup.orientation = "column";
                        for(var s=0;s<styles.length;s++)
                        {
                            addButton(s, styles[s]);
                        }
    
    
                    function addButton(num, style)
                    {
                        buttons[num] = buttonGroup.add("button", undefined, style);
                        buttons[num].onClick = function()
                        {
                            result = style + ".ait";
                            gS.close();
                        }
                    }
                gS.show();
                // alert(result)
                return result;
    
    
            }
            else
            {
                result = styles[0] + ".ait";
                return result;
            }
        }
        function whatGarment()
        {
            var result;
            var jerseyList = [];
    
    
            for(a=0;a<layers.length;a++)
            {
                if(layers[a].name.indexOf("FD")>-1)
                {
                    jerseyList.push(layers[a].name);
                }
            }
    
    
            //This prepress is not on a template
            if(jerseyList.length==0)
            {
                result = whatStyleDialog();
                return result;
            }
    
    
            else
            {
                result = getStyle(jerseyList);
            }
    
    
            return result;
        }
    
    
        function findCAD(path, garment)
        {
            var loc = new Folder(path);
            var theFile = new File(loc + "/" +  garment);
            return theFile;
        }
    
    
        function copyCollars(theCAD,coords)
        {
            var collars = [];
            var collarSource = open(theCAD);
            var sourceLayer = collarSource.layers[0].layers["Prepress"];
            var curLay;
            var curGroup;
    
    
            sourceLayer.visible = true;
    
    
            collarSource.selection = null;
    
    
            for (var a=0; a< sourceLayer.layers.length;a++)
            {
                curLay = sourceLayer.layers[a];
                for(var b=0;b<curLay.groupItems.length;b++)
                {
                    curGroup = curLay.groupItems[b];
                    if(curGroup.name.indexOf("Collar")>-1)
                    {
                        curGroup.selected = true;
                    }   
                }
                
            }
    
    
            app.executeMenuCommand("copy");
            docRef.activate();
            app.executeMenuCommand("paste");
    
    
            for(var a=0;a<docRef.selection.length;a++)
            {
                var curGroup = docRef.selection[a];
                var curName = curGroup.name.substring(0,curGroup.name.indexOf(" "));
                curGroup.left = coords[curName][0];
                curGroup.top = coords[curName][1];
            }
    
    
            
    
    
            // collarSource.close(SaveOptions.DONOTSAVECHANGES);
            
        }
    
    
        function addCollarsToCorrectLayer(garment,coords)
        {
            try
            {
                var theLayer = docRef.layers[garment.substring(0,garment.indexOf(".ait"))].layers["Prepress"];
                theLayer.visible = true;
                // alert("theLayer = " + theLayer);
                // alert(docRef.selection.length);
                for(var a=docRef.selection.length-1;a>-1;a--)
                {
                    var thisCollar = docRef.selection[a];
                    var targetLayer = theLayer.layers[thisCollar.name.substring(0, thisCollar.name.indexOf(" "))];
                    thisCollar.moveToBeginning(targetLayer);
                }
    
    
    
    
            }
            catch(e)
            {
                try
                {
                    if(docRef.selection[0].layer != "[Layer Artwork]")
                    {
                        var theLayer = docRef.layers["Artwork"];
                        theLayer.locked = false;
                        theLayer.visible = true;
                        for(var a=docRef.selection.length-1;a>-1;a--)
                        {
                            docRef.selection[a].moveToBeginning(theLayer);
                        }
                    }
                }
                catch(e)
                {
                    alert("something went wrong")
                }
            }
            if(theLayer.name == "Prepress")
            {
                var drCollarLabel = docRef.layers[0].layers["Mockup"].textFrames.add()
            }
            else
            {
                var drCollarLabel = theLayer.textFrames.add();
            }
            drCollarLabel.contents = "DR Collars";
            drCollarLabel.left = coords["Label"][0];
            drCollarLabel.top = coords["Label"][1];
            drCollarLabel.textRange.characterAttributes.size = 36;
        }
    
    
        function promptToSelectCollars()
        {
            alert("running prompt to select");
            var selCol = new Window("palette");
                var text = selCol.add("statictext",undefined, "Select the USA Collars and click OK");
                var button = selCol.add("button", undefined, "OK");
                button.onClick = function()
                {
                    selCol.close();
                    moveCollarsToUSALayer(false);
                }
            selCol.show();
        }
    
    
        function moveCollarsToUSALayer(template,garmentLayer)
        {
            if(template)
            {
                var usaLayer = garmentLayer.layers.add();
                usaLayer.name = "USA Collars";
                var theLayer = garmentLayer.layers["Prepress"];
    
    
                for(var a=0;a<theLayer.layers.length;a++)
                {
                    var curSize = theLayer.layers[a].name;
                    var curLay = theLayer.layers[a];
                    curLay.groupItems[curSize + " Collar"].moveToBeginning(usaLayer);
                }
    
    
                continueScript();
            }
            else
            {
                // docRef = app.activeDocument;
                var usaLayer = docRef.layers.add();
                usaLayer.name = "USA Collars";
    
    
                for(var a=0;a<docRef.selection.length;a++)
                {
                    var curCollar = docRef.selection[a];
                    curCollar.moveToBeginning(usaLayer);
                }
                continueScript();
            }
            
    
    
    
    
        }
    
    
        function continueScript()
        {
            var theCAD = findCAD(garmentInfo[garmentCode]["path"], garment);
    
    
            copyCollars(theCAD, garmentInfo[garmentCode]["coords"]);
    
    
            addCollarsToCorrectLayer(garment,garmentInfo[garmentCode]["coords"]);
        }
    
    
        /////////////////////
        ///Logic Container///
        /////////////////////
    
    
        var docRef = app.activeDocument;
        var layers = docRef.layers;
        
    
    
        var garmentInfo = 
        {
            "FD_SLOW_SS" : 
            {
                "path": "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOW_SS",
                "coords" : 
                {
                    "XS" : [-946.67,622.35],
                    "S" : [-948.92,362.97],
                    "M" : [-951.17,96.54],
                    "L" : [-953.42,-177.48],
                    "XL" : [-955.22,-458.71],
                    "2XL" : [-957.92,-747.11],
                    "3XL" : [-960.17,-1042.73],
                    "4XL" : [-962.42,-1345.42],
                    "5XL" : [-964.67,-1654.82],
                    "Label" : [-949.1,708.39]
                }
            },      
            "FD_SLOWW_SS" : "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOWW_SS",
    
    
            "FD_SLOWY_SS" : "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOWY_SS",
            "FD_FAST_RB" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_RB/Converted_Templates/",
            "FD_FAST_SL" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_SL/Converted_Templates/",
            "FD_FAST_FB_SL" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_FB_SL/Converted_Templates/",
            "FD_FAST_FB_SS" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_FB_SS/Converted_Templates/",
            "FD_FAST_2B_SS" : {
                "path": "/Volumes/Customization/Library/cads/prepress/FD_FAST_2B_W_SS/Converted_Templates/",
                "coords" : 
                {
                    "XXS" : [-1011.89,455.31],
                    "XS" : [-1015.33,206.79],
                    "S" : [-1018.88,-60.25],
                    "M" : [-1022.12,-323.7],
                    "L" : [-1025.7,-595.67],
                    "XL" : [-1028.83,-879.72],
                    "2XL" : [-1032.38,-1168.08],
                    "3XL" : [-1035.83,-1457.79],
                    "Label" : [-949.1,708.39]
                }
            },
            "FD_BASE_FB_SL" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_SL/Converted_Templates/",
            "FD_BASE_FB_Y_SL" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_Y_SL/Converted_Templates/",
            "FD_BASE_FB_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_SS/Converted_Templates/",
            "FD_BASE_FB_Y_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_Y_SS/Converted_Templates/",
            "FD_BASE_2B_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_2B_SS/Converted_Templates/",
            "FD_BASE_2B_Y_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_2B_Y_SS/Converted_Templates/",
        }
    
    
        var garment = whatGarment(); 
    
    
        var garmentCode = garment.substring(0, garment.indexOf("_0"));
    
    
        var styleNum = garment.substring(garment.indexOf("_0"), garment.length);
    
    
        try
        {
            docRef.layers[garment.substring(0,garment.indexOf(".ait"))].layers["Prepress"].visible = true;
            moveCollarsToUSALayer(true,docRef.layers[garment.substring(0,garment.indexOf(".ait"))]);
    
    
        }
        catch(e)
        {
            //no discernable layer structure
            alert("using catch");
            promptToSelectCollars();
        }
    
    
        
    
    
        
    
    
        
    
    
        // alert("Results:\n" + "Sport: " + garment[0] + "\nCut: " + garment[1] + "\nStyle Number: " + garment[2]);
        // alert("Results:\n" + garment);
    
    
    
    
        
    }
    container();
    

    You do not have something wrong, sort of, pallets do not 'normally' work as do dialog windows, you must use BridgeTalk to bind your palette to Illustrator, do a quick search, a topical subject, there are many samples.

  • Using the custom on a box SQL PL/SQL function

    Hello

    Is it OK to use or the PL/SQL a SQL box-custom functions? Or is - against the standards? Thank you.

    What are the standards, the answer is Yes and no.
    -A function that returns a SYS_REFCURSOR will NOT work
    -A PIPELINED function and return a TABLE (a TYPE of OBJECT) will work

    SELECT id as PER_ID, description as EMAILID FROM TABLE(my_func('1234567890'));
    

    -A function returning a variable work

    SELECT PER_ID, my_func(:F1) AS PER_INFO  FROM CI_PER WHERE PER_ID = :F1;
    
  • Data acquisition using the USB-GPIB 82357 B interface for 4395 impedance Analyzer has:

    Hi all

    I tried to communicate Analyzer 4395A impedance with interface USB GPIB 82357 B using the command of expert keysight and Labview module tutorial. I couldn't able to find orders of SCPI (Standard for programmable Instruments orders) for 4395 A impedance Analyzer in the expert keysight command. Please help me on the subject of what are the other possibilities to acquire data from the Analyzer of impedance 4395 A using the interface USB GPIB 82357 B.? Is it possible to get LABVIEW plug & play drivers for USB-GPIB 82357 B interface? Our main goal is to control the parameters of impedance measurement and draw F vs IZI and theta vs F as well as get parameters of equivalent circuit on a PC with LABVIEW GUI.

    Can't wait to help.

    Hello!

    I agree with 'heavy '. For more information on how to program a 3rd device contact the manufacturer because they have the knowledge. Unless there is already a LabVIEW driver for this device, you would have to implement that yourself and need information from the manufacturer.

    Regarding your question if the GPIB-USB is unsuitable, it is quite easy to answer: If you want to communicate with a peripheral GPIB NI GPIB-USB can do this. But you would probably need a driver to use the GPIB of meaningful communication bus.

    Best regards

    Christoph

  • Need help with the use of beam between two subVis

    Hi all

    I have two inside a big Vi subVis that need to be connected one to the other.

    It's a complicated thing, I already have many sons in the wholesale Vi, which will become a mess if I connect these two subVis line-by-line (there are nearly 16 lines between them).

    I tried bundle but failed two times (basically I don't know how to connect the wires grouped source Subvi the slot - VI intended).

    Could someone give me an idea?  A simple example of VI would be useful.

    Thank you

    + Kunsheng

    You can get a lot of help on the Web site of NOR, too, as this document.

  • Overhead of the graphic use of Wfm as a Subvi output terminal?

    -My basic question:
    If the front is closed, is there a difference between a graph of Wfm and Wfm indicator as output terminal?

    -The question in context:
    I have a no reentrante Subvi, which will take place in my program and an output waveform.  Sometimes, I want to open the front of the Subvi and adjust its internal settings displaying its output on a graph of Wfm.

    The minimum solution would appear to make the graph of Wfm of the Subvi double panel as the output terminal, as opposed to the output through an indicator of Wfm.  But who would increase the resources used during normal operation of the Subvi?

    Thanks in advance and have a nice day.

    -Brad

    There should be no overhead. The chart would update only if the front is open. Most of the time, there are not yet signs before the subVIs in memory.

    Mike...

  • Cannot use modern applications of the user interface

    I got Windows 7 Windows 8 Pro and activated. But modern user interface applications cannot use.

    This is a screenshot when I tried to open some applications, what can I do about it?

    Hello

    Please, try the fix mentioned here and see if that helps:
    Hope this helps, good luck :)
  • How can I get my guides to align the work plan using my align palette? Whenever I hit the button Align, the guide turns completely off the drawing surface.

    I'm not crazy, he used to work. I could use the palette line up to put my guides centered, right-aligned, left-aligned, etc. I started having this problem in CS5 when I hit the button Align and the guide would go completely out of the drawing surface. I thought it was just a bug and would leave with upgrade to CC. But I'm getting the same problem! So boring.

    It's an old bug that sting when you line up with the palette alignment guides while using an extract of the limits is selected.

    You can disable it in the General preferences or in the drop of the alignment pallet.

  • Use of scenario generated instead of Interfaces in the package

    Hello


    We can use the Interface nor the scenarios generated from the same interfaces in packages ODI. What is the difference between these two... ?


    Thanks in advance.


    Kind regards
    Nanan A H

    These are jobs in series or in parallel running.
    Synchronous - It is the task of sequential way
    Asynchronous - this is the work in parallel

    Thank you
    Fati

Maybe you are looking for