Configuring separate axis velocity/acceleration within a vector space

Is there a way to separately configure axis velocity/acceleration when using vector space motion control? My axes motivation are very diverse and I can not simply use a vector velocity/acceleration.

I guess that your application should not use Vector configuration then. The purpose of Vector Spaces is to group axes and define vector moves, the board will calculate each axis parameters in order to achieve the vector move.
If you require different velocity and acceleration per axis you might want to try to make up your own Vector algorithm in which for the eyes of the board you are treating each axis independently, but in your software you are actually grouping them. That is, you will configure each axis by its own, and you can do multi-starts and multi-stops. The Position/Velocity/Acceleration will be calculated by your own algorithm.
Good luck!
Nestor.
Nestor
National Instruments

Similar Messages

  • Configuring a third axis on vector space to perform a tangential following

    Is there some kind a function call/mode in flexmotion library to configure a third axis in a vector space to perform a tangential following (ie to remain tangent to the trajectory of the other two axis)?

    Tulio,
    Thanks for the explanation. This makes perfect sense.
    The Flexmotion driver does not have any built in function to perform this type of motion, however it would be relatively straightforward to implement this for contour moves. You could set this up as a 3 axis contour move. Based on the list of X,Y coordinates, use a simple difference equation to get the slope of the trajectory at each point. Convert this slope to rotation in counts and use these values for the third axis (cutter angle). This could be implemented with just a couple VIs or lines of code with negligible processing overhead or you could even use just a spreadsheet. I have attached below a spreadsheet that shows an example of using a difference equation (centra
    l difference) to get cutter positions based on X,Y trajectory data.
    Cheers,
    Brent R.
    Applications Engineer
    National Instruments
    Attachments:
    Tangent_Following.xls ‏18 KB

  • Need right value to Load/Read Velocity Using Input/Return Vectors

    I have a servo motor with a encoder feedback of ( 4,000 counts per revolution ), maximum velocity of 6,000 rpm ( 100 rps ). I need to create 3 moving profiles with stroke time of 0.25 mm/sec, 1.0 mm/sec, and 25 mm/sec. I would like to use either Load Velocity VI or Load Velocity in RPM VI whichever is easy to set velocity, distance, and read position of my axis. More, I would like to be able to use onboard variables to set distance, velocity, and read position of the axis using input/return vectors, but I don't know how to set the right values. Do I need a conversion or multiplier number to get the right value?
    Any help would be greatly appreciated.
    Carlos D' Garcia.

    Carols –
    There is a simple vi on how to do vector moves at the following link (I also attached the file below):
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DF9956A4E034080020E74861&p_node=DZ52480&p_source=External
    To have your axes move at different rates, you will have to replace the single ‘Load Velocity in RPM.vi’ that is wired to the Configure Vector Space.flx with three separate Load Velocity RPM.vi’s each with an axis constant (or control) wired to their axis input and the max velocity you want. This way, you will set the maximum velocity for each axis rather than all three at once.
    Best of luck with your project! Let me know if you have further questions with this.
    Marc C
    National Instruments
    Applications Engineer
    Attachments:
    Three-Axis_Vector_Move_with_Position_Monitor.zip ‏29 KB

  • Using a class within a Vector

    ok,
    I writing a bank program where a user types in a string which is then broken into tokens. The tokens are separated using .nextToken( ) and the first token is used to determine what command the user wants to perform.
    My problem is that I am trying to place a class that Ive created within the vector and I cant seem to be able to get the tokens into the right place or retrieve them when they are needed.
    Here is what I have so far, ps I am very new to java.
    Project3Functions func = new Project3Functions();
    Vector vect = new Vector();
    do
    String firstLine = func.getLineInput();
    StringTokenizer tok = new StringTokenizer(firstLine," ");
    String hold = tok.nextToken();
    if(hold.equals("newAccount"))
    int index = Integer.parseInt(tok.nextToken());
    vect.setSize(index);
    vect.add(index, new Account());
    vect.add(index, Account.firstname = tok.nextToken());
    vect.add(index, Account.lastname = tok.nextToken());
    System.out.println("a new account was created");
    public class Account
    static String firstname = "";
    static String lastname = "";
    I am trying to create a new Account in the position <index> within the vector but I dont think Im referencing firstname and lastname correctly. Also how would I get firstname and lastname out of the vertoc to print them on the screen?
    Please someone help me.

    Your first problem is that you are defining firstname and lastname as static in your Account class. This means that no matter how many new accounts you create, there will only be one firstname and lastname, which are shared between them. their value will be whatever you set them to most recently.
    I think I know why you think you did that, however, and that leads to your second problem. You got complaints from the compiler because you tried to use Account.firstname to set firstname, etc. This only works for static variables. With your code, you are adding three new items to your vector for each new account you create, and you are adding them all to the same index. The last one wins! The other two die.
    Make your Account variables non-static and change the adding code:vect.add(index, newAcct = new Account());
    newAcct.firstname = tok.nextToken();
    newAcct.lastname = tok.nextToken();You should also take care that you only vect.setSize(index); when vect.size() < index; otherwise, if you have items up to 10, and then add an item at 6, items 7 through 10 will be irretrievably lost.
    Doug

  • Invoice Layout configuration for a specific customer within a sales org.

    Hi,
    I have a situation where the invoice layout need to be configured for one particular customer within a sales org in a different style from rest of the customers.
    Could someone let me know how to do it please.
    Thanks.
    Best regards,
    Srikrishhna

    By u201Cinvoice layoutu201D, I assume you mean layout of the print output.  If so, then
    u2022     Set up a new output type as a copy of your standard output type.  Assign an access sequence containing customer. 
    u2022     Add the new type to your active output determination procedure and assign an appropriate requirements routine (if any). 
    u2022     Assign a layout set (smartform, sapscript, adobe, etc.) that meets your customeru2019s requirements. 
    u2022     Maintain the condition record.
    And away you go.
    Regards,
    zKen

  • Cannot find a Vector within a Vector

    Yo. Another noob askin about elements within a Vector.
    I'm working on a OOP project in BlueJ. First time doing so, so my code is still kinda procedural (with many listeners in the same document, etc etc)
    I'm creating a simulation of a 7-a-side football game. I have stored the players of each team into a vector (e.g Vector 'Chelsea' would contain 7 player objects).
    I've only created three teams for simplicity, and stored these three Vectors into another Vector called 'teams'.
    (the whole purpose of storing them in vectors btw, is so I don't have to pass many different player objects as arguments -
    i can just send the vector, and extract them within the Listener classes)
    I'm now in the new class (Start_game) and i've passed the vector to the class.
    When I use the statement:
                     if (teams.contains(Arsenal))
                                  +some code+
                     }I get the error message: cannot find variable 'Arsenal', when I try to compile the program.
    Here's the code for the first class:
    * Write a description of class MainWindow here.
    * @author (your name)
    * @version (a version number or a date)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.Vector;
    import javax.swing.BoxLayout;
    public class Choose_player
        String t_chosen1;
        String t_chosen2;
        TextArea playerinfo1;
        TextArea playerinfo2;
        Vector teams = new Vector();
    //    Vector Arsenal = new Vector(4); // this will store Player objects with "Arsenal" in their team variable
        Vector Arsenal = new Vector(4);
            Player Adebayor = new Striker();
            Player Walcott = new Striker();
            Player Fabregas = new Midfielder();
            Player Denilson = new Midfielder();
            Player Gallas = new Defender();
            Player Eboue = new Defender();
            Player Lehmann = new Goalkeeper();       
    //    Arsenal.insertElementAt(Adebayor, 0);
    //    <Player>Arsenal</Player>.addElement(<Player>Adebayor);
        // learn collections - BIG TYME - refer to java site (url is in txt file)
        Vector Chelsea = new Vector(4); // this vector will store the Player objects whose team variable
                                        // contains the String "Chelsea"
            Player Drogba = new Striker();
            Player Anelka = new Striker();
            Player Lampard = new Midfielder();
            Player Phillips = new Midfielder();
            Player ACole = new Defender();
            Player Terry = new Defender();
            Player Cech = new Goalkeeper();
    //        int w = Chelsea.Size();
        Vector ManU = new Vector(4);    // this vector will store the Player objects whose team variable
                                        // contains the String "ManU"
            Player Rooney = new Striker();
            Player Tevez = new Striker();
            Player Giggs = new Midfielder();
            Player Ronaldo = new Midfielder();
            Player Ferdinand = new Defender();
            Player Brown = new Defender();
            Player Sar = new Goalkeeper();
        public void mainfalse(String t1, String t2)
            this.t_chosen1 = t1;
            this.t_chosen2 = t2;
            Frame m_frame = new mainframe("Select Captain", t_chosen1, t_chosen2, teams);
            m_frame.setSize(1200, 700);
            m_frame.setVisible(true);
        class mainframe extends Frame
            Vector teams;
            public mainframe(String title, String t_chosen1, String t_chosen2, Vector teams)
                super(title);
                this.teams = teams;
                setLayout(new FlowLayout());
    //            setLayout(new GridLayout());
    //            setLayout(new CardLayout());
    //            setLayout(new RelativeLayout());
    //            setLayout(new BoxLayout(m_frame, - FINISH EDITING BoxLayout statement
    // -------- ADD PLAYERS TO VECTOR -------- //           
                Arsenal.addElement(Adebayor);
                Arsenal.addElement(Walcott);
                Arsenal.addElement(Fabregas);
                Arsenal.addElement(Denilson);           
                Arsenal.addElement(Gallas);
                Arsenal.addElement(Eboue);           
                Arsenal.addElement(Lehmann);           
                Chelsea.addElement(Drogba);
                Chelsea.addElement(Anelka);           
                Chelsea.addElement(Lampard);
                Chelsea.addElement(Phillips);           
                Chelsea.addElement(ACole);
                Chelsea.addElement(Terry);           
                Chelsea.addElement(Cech);
                ManU.addElement(Rooney);
                ManU.addElement(Tevez);           
                ManU.addElement(Giggs);
                ManU.addElement(Ronaldo);           
                ManU.addElement(Ferdinand);
                ManU.addElement(Brown);           
                ManU.addElement(Sar);
                teams.addElement(Arsenal);
                teams.addElement(Chelsea);
                teams.addElement(ManU);
    // --------------- FIRST TEAM - CAPTAIN SELECTION ----------------      
                java.awt.List playerList1 = new java.awt.List(5);
                // CREATES A BOX WITH A LIST OF TEAMS (it can view 5 before needing a scroll bar)
                // (full specification needed when declaring -
                // java confused with List in 'awt', and list in 'util'.
                if (t_chosen1.equals("Arsenal"))
                    playerList1.add("Adebayor");
                    playerList1.add("Walcott");
                    playerList1.add("Fabregas");
                    playerList1.add("Denilson");
                    playerList1.add("Gallas");
                    playerList1.add("Eboue");
                    playerList1.add("Lehmann");
                } // if the chosen team is Arsenal, display chosen teams to be Arsenal players
                else if (t_chosen1.equals("Chelsea"))
                    playerList1.add("Lampard");
                    playerList1.add("Drogba");
                    playerList1.add("Anelka");
                    playerList1.add("Wright-Phillips");
                    playerList1.add("Cole");
                    playerList1.add("Terry");
                    playerList1.add("Cech");
                } // if the chosen team is Chelsea, display chosen teams to be Chelsea players
                else if (t_chosen1.equals("Manchester United"))
                    playerList1.add("Ronaldo");
                    playerList1.add("Rooney");
                    playerList1.add("Tevez");
                    playerList1.add("Giggs");
                    playerList1.add("Ferdinand");
                    playerList1.add("Brown");
                    playerList1.add("Sar");
                } // ditto
                add(playerList1);
                playerList1.addItemListener(new p_list_Listener1(playerList1));
                // add itemListener to 'playerList' object
                // - pass playerList object to listener to use getSelected() method
                playerinfo1 = new TextArea(10, 38);
                add(playerinfo1);
    // --------------- SECOND TEAM - CAPTAIN SELECTION ---------------- - same as above, for team2
                java.awt.List playerList2 = new java.awt.List(5); // CREATES A BOX WITH A LIST OF TEAMS (it can view 5 before needing a scroll bar)
    // add "Adebayor" as a selectable Captain for the Arsenal team
                if (t_chosen2.equals("Arsenal"))
                    playerList2.add("Adebayor");
                    playerList2.add("Walcott");
                    playerList2.add("Fabregas");
                    playerList2.add("Denilson");
                    playerList2.add("Gallas");
                    playerList2.add("Eboue");
                    playerList2.add("Lehmann");
                // add "Lampard" as a selectable Captain for the Chelsea team           
                else if (t_chosen2.equals("Chelsea"))
                    playerList2.add("Lampard");
                    playerList2.add("Drogba");
                    playerList2.add("Anelka");
                    playerList2.add("Wright-Phillips");
                    playerList2.add("Cole");
                    playerList2.add("Terry");
                    playerList2.add("Cech");
                // add "Christiano Ronaldo" as a selectable Captain for the Manchester United team           
                else if (t_chosen2.equals("Manchester United"))
                    playerList2.add("Ronaldo");
                    playerList2.add("Rooney");
                    playerList2.add("Tevez");
                    playerList2.add("Giggs");
                    playerList2.add("Ferdinand");
                    playerList2.add("Brown");
                    playerList2.add("Sar");
                add(playerList2);
                playerList2.addItemListener(new p_list_Listener2(playerList2));
                playerinfo2 = new TextArea(10, 38);
                add(playerinfo2);
    // ------ CHOICE MENU & TEXTFIELD - CHOOSE PLAYER TO SHOW ATTRIBUTES IN TEXTFIELD - TEAM 1 ---------
                Choice p_choice1 = new Choice();
                // new dropdown menu - choosing which player's info to display
                p_choice1.add("-- Choose player to display info --");
                if (t_chosen1.equals("Arsenal"))
                    p_choice1.add("Emmanuel Adebayor"); //Striker
                    p_choice1.add("Theo Walcott"); //Striker
                    p_choice1.add("Cesc Fabregas"); //Mid
                    p_choice1.add("Denilson"); //Mid
                    p_choice1.add("William Gallas");//Def
                    p_choice1.add("Emmanuel Ebou�");//Def
                    p_choice1.add("Jens Lehmann");//Keeper
                else if (t_chosen1.equals("Chelsea"))
                    p_choice1.add("Didier Drogba");//Striker
                    p_choice1.add("Nikolas Anelka");//Str
                    p_choice1.add("Frank Lampard");//Mid
                    p_choice1.add("Shaun Wright-Phillips");//Mid
                    p_choice1.add("Ashley Cole");//Def
                    p_choice1.add("John Terry");//Def
                    p_choice1.add("Petr Cech");//Keeper
                else if (t_chosen1.equals("Manchester United"))
                    p_choice1.add("Wayne Rooney");//Str
                    p_choice1.add("Carlos T�vez");//Str
                    p_choice1.add("Ryan Giggs");//Mid
                    p_choice1.add("Christiano Ronaldo");//Mid
                    p_choice1.add("Rio Ferdinand");//Def
                    p_choice1.add("Wes Brown");//Def
                    p_choice1.add("Edwin van der Sar");//Keeper
                add(p_choice1);
                TextField nameField1 = new TextField("", 30);
                add(new Label("Name"));
                add(nameField1);
                TextField ageField1 = new TextField("", 30);
                add(new Label("Age"));
                add(ageField1);
                TextField teamField1 = new TextField("", 30);
                add(new Label("Team"));
                add(teamField1);
                TextField speedField1 = new TextField("", 30);
                add(new Label("Speed"));
                add(speedField1);
                TextField defenceField1 = new TextField("", 30);
                add(new Label("Defence"));
                add(defenceField1);
                TextField accuracyField1 = new TextField("", 30);
                add(new Label("Accuracy"));
                add(accuracyField1);
                TextField positionField1 = new TextField("", 30);
                add(new Label("Position"));
                add(positionField1);
                Vector fields1 = new Vector(8, 2); // PASS TO CHOICE LISTENER
                fields1.add(nameField1);
                fields1.add(ageField1);
                fields1.add(teamField1);
                fields1.add(speedField1);
                fields1.add(defenceField1);
                fields1.add(accuracyField1);
                fields1.add(positionField1);
                p_choice1.addItemListener(new ChoiceListener(fields1, teams, p_choice1, t_chosen1));
                // pass the teams vector to variable, to:
                // 1) create players
                // 2) call methods to show their different attributes in each field
    // ------- CHOICE MENU & TEXTFIELD - CHOOSE PLAYER TO SHOW ATTRIBUTES IN TEXTFIELD - TEAM 2 ---------           
                Choice p_choice2 = new Choice();
                p_choice2.add("-- Choose player to display info --");
                if (t_chosen2.equals("Arsenal"))
                    p_choice2.add("Emmanuel Adebayor"); //Striker
                    p_choice2.add("Theo Walcott"); //Striker
                    p_choice2.add("Cesc Fabregas"); //Mid
                    p_choice2.add("Denilson"); //Mid
                    p_choice2.add("William Gallas");//Def
                    p_choice2.add("Emmanuel Ebou�");//Def
                    p_choice2.add("Jens Lehmann");//Keeper           
                else if (t_chosen2.equals("Chelsea"))
                    p_choice2.add("Didier Drogba");//Striker
                    p_choice2.add("Nikolas Anelka");//Str
                    p_choice2.add("Frank Lampard");//Mid
                    p_choice2.add("Shaun Wright-Phillips");//Mid
                    p_choice2.add("Ashley Cole");//Def
                    p_choice2.add("John Terry");//Def
                    p_choice2.add("Petr Cech");//Keeper
                else if (t_chosen2.equals("Manchester United"))
                    p_choice2.add("Wayne Rooney");//Str
                    p_choice2.add("Carlos T�vez");//Str
                    p_choice2.add("Ryan Giggs");//Mid
                    p_choice2.add("Christiano Ronaldo");//Mid
                    p_choice2.add("Rio Ferdinand");//Def
                    p_choice2.add("Wes Brown");//Def
                    p_choice2.add("Edwin van der Sar");//Keeper
                add(p_choice2);
                TextField nameField2 = new TextField("", 30);
    //            nameField1.setText("Here, you store the name");
                add(new Label("Name"));
                add(nameField2);
                TextField ageField2 = new TextField("", 30);
                add(new Label("Age"));
                add(ageField2);
                TextField teamField2 = new TextField("", 30);
                add(new Label("Team"));
                add(teamField2);
                TextField speedField2 = new TextField("", 30);
                add(new Label("Speed"));
                add(speedField2);
                TextField defenceField2 = new TextField("", 30);
                add(new Label("Defence"));
                add(defenceField2);
                TextField accuracyField2 = new TextField("", 30);
                add(new Label("Accuracy"));
                add(accuracyField2);
                TextField positionField2 = new TextField("", 30);
                add(new Label("Position"));
                add(positionField2);
                Vector fields2 = new Vector(8, 2); // PASS TO CHOICE LISTENER
                fields2.add(nameField2);
                fields2.add(ageField2);
                fields2.add(teamField2);
                fields2.add(speedField2);
                fields2.add(defenceField2);
                fields2.add(accuracyField2);
                fields2.add(positionField2);
                p_choice2.addItemListener(new ChoiceListener(fields2, teams, p_choice2, t_chosen2));
                // pass the teams vector to variable, to:
                // 1) create players
                // 2) call methods to show their different attributes in each field
    // --------------- add START GAME button ----------------           
                Button c = new Button("Start Game");
                add(c);
                c.addActionListener(new startgameListener(teams));
    // --------------- WINDOW CLOSER LISTENER ----------------
                addWindowListener(new WindowCloser()); // no object relation - you are adding a listener to the FRAME
    // --------------------- p_list_listener1 - listener for playerList1 ------------------
        class p_list_Listener1 implements ItemListener
            java.awt.List playerslist;
            public p_list_Listener1(java.awt.List playerslist)
                this.playerslist = playerslist;
            public void itemStateChanged(ItemEvent evt)
                String sth = playerslist.getSelectedItem();
    // ----------- PLAYER BIO'S ------------ //
    // ---- ARSENAL:
                String adebayorBio = "Emmanuel Adebayor (born 26 February 1984 in Lom�) is \na Togolese " +
                                    "football player of Nigerian descent who \ncurrently plays for Arsenal.";
                String walcottBio = "Theo James Walcott (born 16 March 1989 in \nStanmore, London) is an " +
                                    "English footballer of Caribbean \ndescent renowned for his pace, who " +
                                    "currently plays for \nArsenal, having signed there from Southampton on" +
                                    " 20 January 2006.";
                String fabregasBio = "Francesc Cesc F�bregas Soler (born 4 May 1987 in Arenys \nde Mar, " +
                                    "Catalonia, Spain) is a Spanish footballer \nwho plays as a central " +
                                    "midfielder for Arsenal in the \nEnglish Premier League and for the" +
                                    " Spanish national team.";
                String denilsonBio = "Den�lson Pereira Neves, known as Den�lson (born on \nFebruary 16, 1988 " +
                                    "in S�o Paulo, Brazil) is a Brazilian \nfootballer who usually plays as" +
                                    " a midfielder. He plays for English \nside Arsenal and is currently the" +
                                    " captain of \nthe Brazil under-20 national team.";
                String gallasBio =  "William Gallas, (born 17 August 1977 in Asni�res-sur-Seine), \nis a French" +
                                    " international footballer of Guadeloupian \ndescent who currently plays for " +
                                    "and captains \nArsenal in the English Premier League.";                   
                String eboueBio = "Emmanuel Ebou� (born June 4, 1983 in Abidjan, C�te d'Ivoire) \nis an Ivorian " +
                                  "football player who currently plays for \nArsenal.";
                String lehmannBio = "Jens Lehmann (German, born November 10, 1969 in Essen) is an award-winning German football goalkeeper who plays for Arsenal and for the German national team. He was voted Best European Goalkeeper twice in his career, and he has been selected for three World Cup squads.";
    // ---- CHELSEA:        
                String lampardBio = "Frank James Lampard, Jr. (born 20 June 1978) is an \nEnglish football " +
                                    "player currently at Chelsea and \npreviously with West Ham United and Swansea City.";
                String drogbaBio = "Didier Yves Drogba T�bily (born March 11, 1978 in Abidjan, C�te d'Ivoire) is a footballer from C�te d'Ivoire who currently plays for Chelsea in the English Premier League.";                   
                String anelkaBio = "Nicolas Anelka (born March 14, 1979 in Versailles, France) is a French footballer who plays in the forward position.";
                String phillipsBio = "Shaun Cameron Wright-Phillips (born 25 October 1981 in Greenwich, London) is an English football player of Jamaican and Grenadian descent.";
                String coleBio = "Ashley Cole (born 20 December 1980, Stepney, London) is an English footballer of Barbadian descent. Cole plays left back for Chelsea and for the England national team.";
                String terryBio = "John George Terry (born December 7, 1980 in Barking, London) is an English professional footballer. Terry plays as a centre back and is the captain of Chelsea in the English Premier League and officially for the England national football team.";
                String cechBio = "Petr Cech (born 20 May 1982 in Plze?, Czechoslovakia, now Czech Republic) is a Czech international football goalkeeper who is currently contracted to English Premier League football club Chelsea F.C., for whom he has played since July 2004.";
    // ---- MANU:
                String ronaldoBio = "Cristiano Ronaldo dos Santos Aveiro, OIH (pronounced \n[k?i??ti?nu ?u?na?du])," +
                                    "(born 5 February 1985 in Funchal, \nMadeira), better known as Cristiano Ronaldo, is a " +
                                    "\nPortuguese professional footballer. He plays both for \nthe English Premier League club " +
                                    "Manchester United and \nthe Portuguese national team."; 
                String rooneyBio = "Wayne Mark Rooney (born 24 October 1985 in Liverpool, Merseyside) is an English footballer who currently plays for the English Premier League club Manchester United and the England national team.";
                String tevezBio = "Carlos Alberto T�vez (born on 5 February 1984 in Ciudadela, Buenos Aires) is an Argentine footballer who currently plays for Premier League club Manchester United. He was described by Diego Maradona as the 'Argentine prophet for the 21st century.'";
                String giggsBio = "Ryan Joseph Giggs OBE[1] (born Ryan Joseph Wilson on 29 November 1973 in Ely, Cardiff) is a Welsh footballer currently playing for Manchester United in the English Premiership, and formerly for the Welsh national team prior to his retirement from international football on 2 June 2007.";
                String ferdinandBio = "Rio Gavin Ferdinand (born 7 November 1978 in Peckham, London) is an English footballer of mixed St Lucian,and Anglo-Irish descent. He plays at centre-back for Manchester United in the Premier League and at the international level for the England national football team.";
                String brownBio = "Wes 'Baked Bean' Michael Brown (born 13 October 1979 in Longsight, Manchester) is an English football player who plays as a defender for Manchester United.";
                String sarBio = "Edwin van der Sar (born 29 October 1970 in Voorhout) is a Dutch professional footballer who plays as a goalkeeper. He is captain of the Dutch national team and plays club football for Manchester United in the English Premier League.";
    // --------- TEAM BIO'S DONE!!!!!! ---------- //           
                try
                    if (sth.equals("Adebayor")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(adebayorBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Walcott")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(walcottBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Fabregas")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(fabregasBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Denilson")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(denilsonBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Gallas")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(gallasBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Eboue")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(eboueBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Lehmann")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(lehmannBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
    // if CHELSEA TEAMS               
                    else if (sth.equals("Lampard"))  // if the user selects "Chelsea", show Chelsea's Bio
                        playerinfo1.setText("" + lampardBio);
                        playerinfo1.setEditable(false);                        
                        //t_chosen = sth;               
                    else if (sth.equals("Drogba")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(drogbaBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Anelka")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(anelkaBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Wright-Phillips")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(phillipsBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Cole")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(coleBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Terry")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(terryBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Cech")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(cechBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
    // if MANU teams
                    else if (sth.equals("Ronaldo")) // .... and so on and so forth
                        playerinfo1.setText("" + ronaldoBio);
                        playerinfo1.setEditable(false);
                    else if (sth.equals("Rooney")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(rooneyBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Tevez")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(tevezBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Giggs")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(giggsBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Ferdinand")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(ferdinandBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Brown")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(brownBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Sar")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(sarBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                catch (NullPointerException e)
                // if sth equals 'null', catch the exception and continue the program
        } // end class
    // --------------- p_list_Listener2 - listener for playerList2 ------------------
        class p_list_Listener2 implements ItemListener
            java.awt.List playerslist;
            public p_list_Listener2(java.awt.List playerslist)
                this.playerslist = playerslist;
            public void itemStateChanged(ItemEvent evt)
                String sth = playerslist.getSelectedItem();
    // ----------- PLAYER BIO'S ------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

    Ok. Here's my code at last. It comprises of three classes, each creating three different frames:
    Class 1:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    class class1
        public static void main(String[] param)
            Frame f = new TestFrame("test");
            f.setSize(600, 450);
            f.setVisible(true); // the first window is shown
    class TestFrame extends Frame
        public TestFrame(String title)
            super(title);
            setLayout(new FlowLayout());
            Button a = new Button("Click Me");
            add(a);
            a.addActionListener(new ButtonListener());
            addWindowListener(new WindowCloser());
        class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent evt)
                class2 c_instance = new class2();
                c_instance.mainfalse();
    Class 2:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.Vector;
    import javax.swing.BoxLayout;
    public class class2
        Vector teams;
        Vector Arsenal = new Vector(4);
            Player Adebayor = new Striker();
            Player Walcott = new Striker();
            Player Fabregas = new Midfielder();
            Player Denilson = new Midfielder();
            Player Gallas = new Defender();
            Player Eboue = new Defender();
            Player Lehmann = new Goalkeeper();
            // ONLY CREATING ONE TEAM FOR THE PURPOSE OF THE SIMPLIFIED PROGRAM
        public void mainfalse()
            Frame m_frame = new mainframe("class3", teams);
            m_frame.setSize(1200, 700);
            m_frame.setVisible(true);
        class mainframe extends Frame
            Vector teams;
            public mainframe(String title, Vector teams)
                super(title);
                this.teams = teams;
                setLayout(new FlowLayout());
                Arsenal.addElement(Adebayor);
                Arsenal.addElement(Walcott);
                Arsenal.addElement(Fabregas);
                Arsenal.addElement(Denilson);           
                Arsenal.addElement(Gallas);
                Arsenal.addElement(Eboue);           
                Arsenal.addElement(Lehmann);    
                teams.addElement(Arsenal);
    // --------------- add START GAME button ----------------           
                Button c = new Button("Start Game");
                add(c);
                c.addActionListener(new startgameListener(teams));
    // --------------- WINDOW CLOSER LISTENER ----------------
                addWindowListener(new WindowCloser());           
        class startgameListener implements ActionListener
            Vector teams;
            public startgameListener(Vector t1)
                this.teams = t1;
            public void actionPerformed(ActionEvent evt)
                class3 c_instance1 = new class3();
                c_instance1.gVector(teams);
    }*... and Class 3:*
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    public class class3
        Vector teams;
        public void gVector(Vector t1)
            this.teams = t1;
            Frame main = new mainframe("Main Window", teams);
            main.setSize(1400, 900);
            main.setVisible(true);
        class mainframe extends Frame
            public mainframe(String title, Vector t1)
                super(title);
                setLayout(new FlowLayout());
                addWindowListener(new WindowCloser());
                Vector teams = t1;
                JOptionPane.showMessageDialog(null, "Hello and WELCOME to The FIRST, annual StickMan Footy!");
                if (teams.contains(Arsenal))
                    int t = teams.indexOf(Arsenal);
                    Vector Arsenal = (Vector) teams.elementAt(t);
                // getName() is a method declared in the Player class
                // the Player class is the superclass of the Striker class
    /*            if (teams.contains(Adebayor))
                And my error message after trying to compile Class 2, is "cannot find symbol - variable Arsenal".
    ........... help.
    Shax

  • Bug of configure x-axis N9030A VXA Labview

    I am using a PXA N9030A from Agilent, and measuring VXA Analog demodulation. I am running the driver(Agilent X-Series(VXA).lvlib) installed by "Find Instrument Drivers" in Labview 2013, When I set the X-scale manually, I got -221 error "Settings Conflict", however no errors if set the X Scale to "Auto". I checked the sub-VI----"Configure X-Axis.vi" recalled by Agilent X-Series(VXA).lvlib. And I found the sub-VI didn't send COUP 0 to PXA when I set X Scale Coupling "disabled". As you may know in most of the configuration of PXA, if you want to set parameters manually, you have to set the Auto to "0" meanwhile. This bug has been fixed at my side by writing "COUP 0" before writing other parameters as the attached. It works well if you want to set "Auto 1". Of coz you can combine the string together with other commands if you like. PS: First time posting here, hope this can help others who will use this sub-VI shorting debug time. Cheers
    Attachments:
    Bug of X scale.jpg ‏171 KB

    Thank u for ur advice.
    I had the driver installed by Labview on my PC and I haven't realized there was a driver download page on NI untill you told me.
    I found it and submitted the feedback just now.

  • Motion and Vector Space Question

    I have an x-axis stage and a y-axis stage with 2 different leadscrew pitches, i.e.: one table has a 5 turns per inch leadscrew and the other has a 50 turn per inch leadscrew. Consequently, the stepper motors attached have to operate at different speeds (10x difference) in order for the tables to have the same velocity. I have this accounted for in the axis configuration settings in the NI MAX explorer. When I am configuring automated moves in LabView and set up a "vector space" composed of the two axis, it seems that the motors operate at the same speed and ignore the MAX settings. I thought that after intializing the controller, the current axis settings would be carried over and applied through the vector space and to the actual move
    (a 2D move made in Motion Assistant). Am I missing something? Do I need to load the velocity for each axis with a flexmotion VI somewhere in the code? I'd like to command the motrs to move at 2 different speeds so the tables move at the same velocities. Any comments would be appreciated. An abbreviated sample of some of the code is attached. Thanks. ROB
    Attachments:
    sample.vi ‏39 KB

    Rob,
    you should be able to adjust the pitch of the leadscrews by setting the stepper steps per revolution and/or the encoder steps per revolution settings in MAX accordingly (in your configuration these settings should differ by the factor of 10 for your two axes)
    In your application you then have to use the Load Velocity in RPM.flx and the Load Accel/Decel in RPS/sec.flx in order to get the same resulting velocities on both axes. If you do it like this you still have to account the factor of 10 for your target position calculations.
    I couldn't find out if you have proceeded like that in your application as the vi you have attached is missing a crucial subvi.
    If you are using a four axes board like the PCI-7344 or the PCI-7334 there is another option:
    You
    could use a third axis that acts as a master for one of your axes (I would prefer the axis with the 5 inch per leadscrew). Your real axis has to be configured to follow the master axis by a factor of 1/10. In your application you configure a vector space for the master axis and the axis that is not configured as slave. Your physical signal connections need to be done to this axis and the slave axis.
    Please examine the LabVIEW gearing examples for more information.
    In this case you should enter the same values for stepper steps per revolution and/or the encoder steps per revolution in MAX for both axes as the pitch adjustment is done by the gearing.
    The advantage of this method is that now you can set the same velocities, accelerations and even target positions for both axes and you never again have to account the pitch factor.
    Best regards,
    Jochen Klier
    Applications Engineering Group Leader
    National Instruments Germany GmbH

  • Capture a vector space

    i want to capture a vector space (axis1&2),but when configure buffer ,the problem occur(see figure uploaded error -70006)..How should I modify in my procedure ?I am sure the board Id is configured right and the triggers are input correctly.

  • How to setup breakpoints in a vector space?

    Hi,
    How to setup breakpoints in a 2D vector space in NI 7344 and check for them using flex_read_breakpoint_status_rtn?
    Thanks.

    Hi,
    Is Office Communicator something to do with the Word, Exel and Powerpoint Office Package ?
    What sort of Screen Names or IDs do you use with that ?
    If these are MSN/Live accounts names then it can be made to work for Text Chats but not Video or Audio Only chats
    10:38 PM      Friday; April 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Vector Space Model implementation

    Hi,
    Does anybody know where I can find a java implementation of "vector space model"? Or simply a java program to extract keywords from an HTML page?
    Actually I don't know if this is the write forum to pose this question!
    Edited by: Marziye on May 28, 2008 10:55 PM

    You can take a look at the Apache Lucene project. It should be possible to extract keywords from documents with it. Anyway, it is not that hard to implement the vector space model yourself!

  • Position, Velocity, Acceleration From Single Encoder, With TDMS Logging

    I'm still a fairly new user when it comes to Labview.  I started to feel comfortable enough to check out TDMS data logging and I'm kicking myself for not using it earlier.
    That said, I am currently reading angular position from an encoder, and estimating it's velocity and acceleration from the sampling rate & encoder resolution.  I'm using an FGV to do all the calculations and I've fine-tuned it to be as accurate as I would like.
    What I would like to do is implement TDMS logging that records position, calculated velocity and acceleration with the Log and Read option of TDMS.  I'd like these to be synchronized with the encoder reads, and I would like them to be handled by a single DAQmx Read vi.  As far as I can see though, you can only read the position information from the encoder.  I tried to drill down into the DAQmx Read.vi to create a modified version so that I could eploit the TDMS logging, but the subvi uses a call library function vi that currently is beyond my abilities. 
    I've been in MAX and I can't create any additional outputs for velocity and acceleration.  It seems like MAX takes enough information to create approximations from the sampling clock and resolution of the encoder.  Why doesn't it (or if it does, how do I implement it).

    What hardware are you using for reading the encoder? I have recently completed a similar project where the encoder was connected to a counter that was triggered by the counter increasing, so that it would only read on new positions, this worked reasonably well and seems like it should work well for your case.

  • Issue configuring DAD on HTTP Server within 10g App Server

    This time with a sensible subject...
    I am trying to configure the HTTP Server within 10g Application Server with a DAD pointing to an instance hosted on the same server. However whenever I apply the DAD settings and re-start the server I am told the DAD is down. I have tried many permutations of the connection string all without success. Has anyone else encountered a similar problem and can suggest a resolution. I am carrying out the same steps as I would for a 9i HTTP Server and can only think it is a difference for 10g App Server.

    Reviewing the mod_plsql services page, it says 'Module Loaded No'. I have reviewed the httpd.conf and oracle_apache_conf files and both suggest that mod_plsql should be started but this is obviously not the case.

  • Configuring Separate Wikis for Different Domains

    Hello:
    I've been trying to configure Lion Server to host several different domains on the same IP.  Configuring the virtual hosts settings using the Server App seem to handle this just fine.  What I'm confounded by, however, is how to have each site/domain have its own separate Wiki content.  No matter which domain I browse to, I can still see all of the wiki content on the server.  For my purposes, it's imperative that the Wikis from each of my sites not be visible to the others.  Has anyone figured out how to do this?  Perhaps there's an easy way to get this done, but it's anything but obvious to me.
    Insights are most appreciated.  Thanks.

    kigrant:
    To be able to publish each site to its own folder you'll have to split your current domain file into 3 files. I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process.
    This lets me edit several sites and only republish the one I want.
    OT

  • Looking to configure a Late payment process within Collections

    I am looking to implement a follow-on late payment process within the Collections Management process for past due invoices.  Has anyone done this before and if so any considerations or challenges to the process?  Basically as invoices fall in arrears the specialist would have the ability to create a debit memo request in reference to the late invoice for a percentage of the open amount.  This would be within the Process Receivables tab.  It would go through an approval process and as approved would become a debit memo for the "late payment" with reference to the debit memo request. 
    Any thoughts?

    I would look at what you can achieve in the standard FI-AR Interest process.
    I dont believe there is functionality in Collections Management for this. One of the main processes is to not update FI-AR from Collections Management.
    You do have the ability to add function buttons into Collections Management (Process receivables) after Enhancement Package 5

Maybe you are looking for

  • Reconciliation account  defaluted automatically in Customer master XD01

    HI When we are trying to create customer master in XD01/FD01, the reconciliation account is automatically showing 155230, and when we tried to change to our reconciliation account even after saving customer master, it is again going default to 155230

  • My Pearl 8100 is not recognized by my Windows 7 computer and Desktop SW 6.0

    I cannot get my newly installed desktop software (v6.0) to detect my Pearl 8100 when I connect it through USB.  Upon the first software installation, it will recognize and sync once but after disconnecting and reconnecting, it will not detect.  I hav

  • Stiff Battery cover for Lumia 520

    Today I configured my first Lumia 520 and it was an 'interesting' experience. I have 2 complaints: 1. Whilst the battery cover adds a nice feel to the phone, it is stiff and very difficult to peel off. 2. The online instructions provided for peeling

  • Not available to make invoices with older dates

    hello experts i am interested in modifying the SBO_SP_TransactionNotification function by not allowing the store to make an invoice with older date. for example, i dont want to give them the opportunity to make a new invoice by changing the date of t

  • Complete steps of RoadMap UI element in webdynpro

    hi all,      Can some one tell me the complete steps of how to implement RoadMap UI element in webdynpro. Thanks in advance.