How to create vector X(n) = [x(n) x(n-1) x(n-2).........x(n-N+1) in labview

i want to create an input signal vector X(n)  = [x(n) x(n-1) x(n-2).........x(n-N+1)

rashi wrote:
i want to create an input signal vector X(n)  = [x(n) x(n-1) x(n-2).........x(n-N+1)
This question is quite ambiguous, because you don't really define anything, but you could try "array subset" and "reverse array".
Can you give an actual example of an input array and desired output?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to create Vector with reference to Collection

    hello experts,
    can someone let me know how to create vector with reference to Collection interface.
    Collection is an interface. and we cant create an instance of it. i'm not clear of what to pass in that constructor.
    Vector v = new Vector (Collection c);
    what are the possible objects of 'c'
    post some example code please.
    thanks

    Ever heard of reading the javadocs?
    "Collection is an interface. and we cant create an instance of it." - you don't understand interfaces, then.
    // I certainly can create a Collection - here's one
    Collection c = new ArrayList();
    // Now I'll add some Strings to my Collection.
    c.add("foo");
    c.add("bar");
    c.add("baz");
    // Now I'll make a Vector out of it.
    Vector v = new Vector(c);%

  • How to create vector portrait like the images as attached

    i want to create these kind of portrait. How will I do ...

    Pen tool to create the vector shapes and gradient mesh tool to make smooth transitions for the highlights and shadows. Illustrator doesn't have a function or tool that creates images like these.. Only the basic tools to create images like these. This question is kind of like what is the method to create an oil painting on canvas. you use a brush and paint to create the desired image..l
    I Know that's not helpful but it's the answer.. Here's a decent start  regarding how to begin vectorizing an image in this fashion..
    http://m.youtube.com/watch?v=aiPAG5eCG20

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to create vector growth animations

    Hi,
    How do I create those animated vector graphics effects make popular in MTV promos, in which a graphic simulates growth with patterns reveals itself in different stages. Something similar to animated hand writing.
    I know it has something to do with animated mask, but I have tried, it is quite difficult to manage the mask to reveal different portion as intended.
    Is there an easier way that I do not know of?
    An example of the animation can be found at
    http://www.digitaljuice.com/products/products.asp?pid=329&tab=t3#tabs
    Please advise
    Thanks
    Ken

    Hi Adam,
    Thanks for the info, and yes your project is exactly what I am looking for, however, I am still on Motion 2, your project is done on Motion 3.
    I think this effect can be done on motion 2 or do I need motion 3 to execute this effect? Is it possible to export a version to motion 2?
    Neverthelss thanks for your help, will try to search fo more help in the forum regarding this.
    regards
    Ken

  • I have a vector Star(Red) then I create small bubbles vector(blue) how to create Red star w/ blue bubbles inside star get rid of excess bubble outside of star?

    I tried path finder but then it will create a bubbles hole in the star leaving the blue color of bubble behind
    Masking  also made a hole in the star
                <           >
                     V  V         <----   this is my red star 
    :*^.......**         <-------my small bubble made from circles vector blue
    OUTPUT without your help guys : 
               .*":;:  /\*^...
            :*^....  / *\.....**
           *^.. < *":;..":;* >:*^....
               *^...V  V *^....       <------ how to create Red star w/ blue bubbles inside star get rid of excess bubble outside of star?
    OUTPUT with your help guys : 
                < *":;..":;* >
                     V  V            <-------how can i do this pls help thx alot

    qui nox,
    You may, with the stroke/nofill red star on top of the blue bubbles in the (Layers palette) stacking order:
    1) Select everything and Object>Clipping Mask>Make;
    2) Direct Select the (formerly) red star and reapply its red stroke.
    You may also start by making a copy in front of the red star and use the original in 1); that will make the copy a separate object on top of the Clipping mask.

  • How to create a smallest file size pdf from indesign CS4 document

    How to create a smallest file size pdf (suitable for upload to a website) from indesign CS4 document which contains multiple illustrator CS4 illustrations.
    I have chosen the "smallest file size option" but the pdf file is over 30MB, can anyone help please.
    Thank you

    One trick is to
    Set the placed graphics to have a transparency of 99.9% (you can do this with Find/Change and select Objects)
    This is enough to force the graphics throught the Transparency Flattener
    Next set the Transparency Blend Space to RGB (Edit>Transparency Blend Space)
    Next set a custom Transparency Flattner Preset Edit>Transparency Flattner
    Next
    Use File>Export and choose
    Smallest file size
    PDF Compatibility Acrobat 4 (PDF 1.3)
    In Advanced Section - go to transparency and selec the new Flattener Preset you created.
    *this will convert your vectors to raster, but it should reduce your file size

  • How to use Vector or other ArrayList etc to store my JTree??

    How to use Vector or other ArrayList etc to store my JTree??
    Dear friends,
    I have following I posted before, but not get satisfactory answer, so I modify and repost again here.
    I have following code can add classes and students in the JTree,
    in class Computer Science, it has student Bill Brien,
    in Math, no,
    Then I I add Student Nancy, Laura, Peter into Computer Science Class,
    add AAAA, BBB, CCC into Math class,
    I create a new class called Chemistry, then I add DDD int Chemistry;
    so this JTree is dynamically changed,
    [1]. How can I dynamically save my current JTree with all above tree structure and its nodes in a Vector or ArrayList(not sure which one is best)??
    see code below:
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class ModelJTreeTest extends JFrame {
      private JTree tree;
      private DefaultTreeModel model;
      private DefaultMutableTreeNode rootNode;
      public ModelJTreeTest() {
        DefaultMutableTreeNode philosophersNode = getPhilosopherTree();
        model = new DefaultTreeModel(philosophersNode);
        tree = new JTree(model);
        JButton addButton = new JButton("Add Class/Students");
        addButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            addPhilosopher();
        JButton removeButton = new JButton("Remove Selected Class/Students");
        removeButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            removeSelectedPhilosopher();
        JPanel inputPanel = new JPanel();
        inputPanel.add(addButton);
        inputPanel.add(removeButton);
        Container container = getContentPane();
        container.add(new JScrollPane(tree), BorderLayout.CENTER);
        container.add(inputPanel, BorderLayout.NORTH);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(400, 300);
        setVisible(true);
      private void addPhilosopher() {
        DefaultMutableTreeNode parent = getSelectedNode();
        if (parent == null) {
          JOptionPane.showMessageDialog(ModelJTreeTest.this, "Select Class", "Error",
              JOptionPane.ERROR_MESSAGE);
          return;
        String name = JOptionPane.showInputDialog(ModelJTreeTest.this, "Add Class/Students:");
        model.insertNodeInto(new DefaultMutableTreeNode(name), parent, parent.getChildCount());
      private void removeSelectedPhilosopher() {
        DefaultMutableTreeNode selectedNode = getSelectedNode();
        if (selectedNode != null)
          model.removeNodeFromParent(selectedNode);
      private DefaultMutableTreeNode getSelectedNode() {
        return (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
      private DefaultMutableTreeNode getPhilosopherTree() {
        DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Students");
        DefaultMutableTreeNode ancient = new DefaultMutableTreeNode("Computer Science");
        rootNode.add(ancient);
        ancient.add(new DefaultMutableTreeNode("Bill Brian"));
        DefaultMutableTreeNode math = new DefaultMutableTreeNode("Maths");
        rootNode.add(math);  
        DefaultMutableTreeNode physics = new DefaultMutableTreeNode("Physics");
        rootNode.add(physics);
        return rootNode;
      public static void main(String args[]) {
        new ModelJTreeTest();
    }the actual Tree dynamically created somehow looks like following:
                             |            1.Peter
                             |---CS---    2. Nancy
                             |            3. Laura
                             |            4.Brian
                             |
    Root(University): -------|---Math- 1.AAA
                             |            2.BBB
                             |            3.CCC
                             |
                             |
                             |---Chemistry- 1. DDDThanks a lot
    Good weekends

    you can't directly store a tree in a list.Ummm... Just to be contrary... Yes you CAN store a tree in a table.... In fact that's how the windows file system works.
    Having said that... you would be well advised to investigate tree data-structures before resorting to flattening a tree into a list.
    So... Do you have a specific requirement to produce a List? Your umming-and-erring about Vector vs ArrayList makes it sound like you're still at the stage of choosing a datastructure.
    Cheers. Keith.

  • How to create a tv-shaped frame in Photoshop?

    I'm trying to create a frame for a photo that has the shape of an old-style TV screen: square, with rounded corners, all four sides bulging out slightly. I've figured out how to create a rectangle with rounded corners, but I can't figure out the bulges. (My PS vector and pen skills are very poor.) A rough sample is below. Is there a way to do this in Photoshop? Or, is there a template available?
    Thanks for any help.
    EdB

    I would say use the pen tool to add a point at the center of each side. Select all 4 points then scale outward. If necessary you can use the convert point tool to drag out on each point to smooth the bend. Using the convert point tool, will move both sides of the point to once, other wise, you would be using  the direct selection tool which can drag only one handle at a time, which may make the point not symmetrical as far as the handles are concerned. Having both handles out at the same distance, may make a better smoothing for that point.
    But you may also be satisfied with how it looks with out dealing with the handles at all. It is all subject to the eye of the beholder.

  • How to create dynamic variable in Java?

    Hi,
    I want to create dynamic varible , using ArrayList or Vector. The number of array i dont knwo, so how to create dynamic ArrayList or Vector.
    for example:
    ArrayList1,ArrayList2,ArrayList3.....n
    or
    Vector1,Vector2,Vector3 .....n, the n value i will get at run time, so how to create the dynamic ArrayList or Vector or i can use any other Object in java,
    Pls provide your input.
    Sridhar

    1. I have a HashMap with dataok ... fair enough.
    2. depending on its size, i need to create variable
    to store them.uhm ... why? If you have a variable number of elements in the map then you'd need to generate a variable number of variables (a number, that is not know at compile time, as it seems). Now if you could somehow create those variables, how would you access them? You'd have to generate the code handling them as well ...
    Tell us what kind of data you've got and what you want to do with it. There's certainly a better solution to your problem.
    how to generate variables as per content size of the
    HashMapYou don't.

  • How to create a container class for 2 object?

    I use JDK to create 2 objects, one is Customer and one is Book. I need to enqueue these 2 objects, but they canot share the same queue class. Some one told me that I can create a container class for these 2 objects but I don't know how to create it. Can some one tell me how to create the container class?

    I use JDK to create 2 objects, one is Customer and one
    is Book. I need to enqueue these 2 objects, but they
    canot share the same queue class. Some one told me
    that I can create a container class for these 2
    objects but I don't know how to create it. Can some
    one tell me how to create the container class?
    class CustomerBook{
    Book m_book;
    Customer m_customer;
    pulbic CustomerBook (Customer customer, Book book){
    m_book = book;
    m_customer = customer;
    }If you want to create a class that represents one customer and many books, do this:
    class CustomerBooks{
    Vector m_books;
    Customer m_customer;
    pulbic CustomerBook (Customer customer){
    m_books = new Vector();
    m_customer = customer;
    public void addBook (Book book){
    m_books.addElement (book);
    public void displayBooks (){
    //I assume the Book class has a toString method or something similar
    for (int i = 0;i < m_books.size();i++){
      System.out.println ("book: "+((Book)m_books.elementAt(i)).toString());

  • How to create this type of Form?

    Hello ,
    I'm new to java so I would like a hint from experts on how to create such a form :
    A form that displays Customer's Codes and their name from Oracle database , so that they appear in the form as a list of 2 columns , what kind of compnents I should use to display this kind of data ? JTextField ? I dont think so .... . And also I would like to highlight each other line so that the list looks good , then at the top of the list I want a filter so that the data is filtered each time I enter a character . The last thing is how to make the data displayed have the ability to be dragged to another form in the application so that it fills the corresponding fields relative to the data dragged ?
    Too much ha? . Please just provide hints/ideas about each point as I know it can be time consuming to give details about all this.
    Thanks in advance...

    Thank you , I tried with this code to achieve what I wanted but I get no result .
    Can you please tell me whats wrong with this code ?
    package desktopapplication1;
    import java.sql.*;
    import javax.swing.*;
    import java.awt.*;
    public class MainOMSWindow extends JPanel{
        public MainOMSWindow ()
            super(new GridLayout(1,0));
    JTable customerListTable = new JTable();
    customerListTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
    customerListTable.setFillsViewportHeight(true);//to make the table uses the entire height of the container
        JScrollPane pane = new JScrollPane(customerListTable);
        add(pane);
        populateTable(customerListTable);
        private static Connection getConnection()
        Connection con = null;
         try
            String driverName = "oracle.jdbc.driver.OracleDriver";
            Class.forName(driverName);   //registering JDBC Driver
            String serverName = "localhost";
            String portNumber = "1521";
            String sid = "mydb";
            //jdbc:oracle:thin:@localhost:1521:ahmaddb
            String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
            String user = "fundinfo";
            String pw = "tadapps";
            con = DriverManager.getConnection(url, user, pw);
         catch (ClassNotFoundException e) {
                                        System.out.println(e.getMessage());
                                        System.out.println(e.getStackTrace());
                                        System.out.println(e.getCause());
                                        System.out.println(e.getException());
                                        System.exit(0);
         catch (SQLException e) {
                                  System.out.println(e.getMessage());
                                  System.exit(0);
        return con;
        private static ResultSet useConnAndGetData()
            Connection con = getConnection();
        try
             Statement stmt = con.createStatement();
             String select = "select title,year,price from movie order by year";
             ResultSet rows = stmt.executeQuery(select);
             return rows;
        catch(SQLException e) {
                 System.out.println(e.getMessage());
            return null;
        private static void populateTable(JTable table)
            try{
        ResultSet rs = useConnAndGetData();
        while(rs.next())
    public void setValueAt(object value, int row, int column)
    •Value: The new value to be placed in the cell
    •row: The row in the JTable to be changed
    •column: The column in the JTable to be changed
    * rows and columns start at the number "0", not "1".
    * Notice that the first column in a result set is column "1".
         int row = 0;
         table.setValueAt(rs.getString("title"),row,0);
         table.setValueAt(rs.getInt("year"),row,1);
         table.setValueAt(rs.getDouble("price"),row,2);
         row++;
            catch(SQLException e)
             System.out.println(e.getMessage());
            private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("OMS");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            MainOMSWindow newContentPane = new MainOMSWindow();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main (String [] args){
        createAndShowGUI();
    }The programe throws this :
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
            at java.util.Vector.elementAt(Vector.java:427)
            at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
            at javax.swing.JTable.convertColumnIndexToModel(JTable.java:2553)
            at javax.swing.JTable.setValueAt(JTable.java:2719)
            at desktopapplication1.MainOMSWindow.populateTable(MainOMSWindow.java:99)
            at desktopapplication1.MainOMSWindow.<init>(MainOMSWindow.java:24)
            at desktopapplication1.MainOMSWindow.createAndShowGUI(MainOMSWindow.java:119)
            at desktopapplication1.MainOMSWindow.main(MainOMSWindow.java:130)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)

  • How to draw vector shape?

    I use following statement to draw a shape
    [CODE]for(....){
      sprite.graphics.beginFill(..);
      sprite.graphics.drawRect(x,y,1,1);
      sprite.graphics.endFill();
    }[/CODE]
    But I find above shape is not vector shape.Because I change the IE size,I find the size of shape don't automatic change. How to use sprite.graphics to create vector shape?
    Thanks

    Set Flash object size to 100% x 100% in the HTML - then you'll see your drawing changes the size as you resize the browser window.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • How to create a pointy round object for approval seal

    Hi - I'm really not great with Illustrator so I'm hoping someone can help me.  See the image below:
    I downloaded the deaf friendly seal as a vector image from a stock website.  Now my co-workers want me to add that "sunburst" round edge and put it behind the round part of the deaf friendly one.  Rather than download another vector image of the pointy round thing, I'd like to try to do it myself but I'm not good with Illustrator.
    Can someone provide a tutorial or help on how to create that round object with points around it - maybe a quick and easy way to do it?
    Thanks in advance.

    Thanks to all of you.  Appreciate all of the help.  The result:

  • How to create noise texture - Illustrator Tips

    Hello. I saw this piece of art on one of the Illustrator tips & techniques section, and was wondering if someone knew how to create this "noise" texture in Illustrator?
    What I've had to do in the past to get a similar effect was to complete my illustration in Illustrator, then bring that artwork into Photoshop and paint over the desired areas... but this looks a lot nicer than the results I've gotten. If this can be done in vector, that would be another plus!
    Does anyone have any insight they could share on this?
    Thank you!

    You are welcome.
    The site of which that tutorial is a part (HERE) has a lot of good tutorials, including a few more about adding texture in Illustrator.
    --OB

Maybe you are looking for

  • Filtering report data based on user login and Parameter fields

    Post Author: mronquillo CA Forum: General Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. I

  • Having problem printing to hp officejet pro 8500 since updated to yosemite. any help please?

    I am having problem printing to Hp Officejet pro 8500 printer, it says it is in use. I never had any problem until Yosemite update. Any ideas please?

  • Screen enhancement of vl71 and ms66

    Hi All, I am facing a requirement of adding a new selection-option on the screen of vl71 and ms66. Is it possible to do that coz they are standard programs or I have to copy them into a new customizing program. Thanks.

  • Use of functions

    The use of functions - a function with other selects (eg. calculate availability of a part) - is slowing down our system when we do a select over our product file. Is there some kind of rule when functions should be used or when we should try to crea

  • Add Instance Subform content to textbox

    Hi all, There is sth I would like to do. I have a form which has a text field that is in a subform where you can add instances. No problem with pages etc. Now, I have created a text field where I would like all entries to be repeated as plain text po