Can you sort the "local variable" pick list?

My program has a lot of local variables. If I right click on a variable and click on "select item", a loooong list of all my local variables appears. They appear to be in the order in which they were created in my program.
Is there any way to modify the display to where the local variables appear in alphabetical order?
Amateur programmer for over 10 years!

The best solution is to not use a lot of local variables . Here is a neat trick to use local variables without having to use local variables . If you are using a state machine (case structure inside a while loop), create a cluster constant on the block diagram inside a state or case called "Local Defs". Inside the cluster, put constants for every local variable you will use. Label the constants like you would a local variable. Put a shift register on the loop border. Wire the cluster to the shift register on the right side. Do not initialize the shift register on the left side. In any case frame, you can wire from the left shift register into an unbundle or bundle to read or write to the Local. You never have to call the Local Defs state, the cluster will be defined because of the wiring. If using controls at many places, make a local constant for each control and have a state where the control is written to the local. Then you can read the local to use the value at any time. See attached vi for an example.
- tbob
Inventor of the WORM Global
Attachments:
StateMachineWithLocals.vi ‏45 KB

Similar Messages

  • Can you have a local variable to handle wfm information?

    I am very new to test stand. Can you have a local variable to handle wfm information?
    Also how do you use parameters? Do you need to have a parameter of the same name in the main sequence and subsequence?
    Thanks,
    Brian
    Electrical Engineer
    L3 Communication

    Hi Brian
    Parameters are one way you can pass data from a calling sequence to a subsequence. From the main sequence, right-click on your subsequence and select "Specify Module...". In the "Parameters" section of the dialog box, you should see any parameters that you have for your subsequence. You can then assign these subsequence parameters to have the same value as a parameter from the calling sequence, a local variable from the calling sequence, a constant, etc. In regards to your question about naming parameters, you do not need to have parameters of the same name in both the calling sequence and the subsequence, although you could have them be the same name.
    Russell G.
    NI Applications Engineering

  • In iTunes, podcasts are sorted in the library alphabetically. In Version 1.2.1, there is no order and there are duplicates.  Can you sort the library? and how do you remove duplicates of the same podcast (not episode)?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

  • How can you create a local variable from a boolean control?

    I want to create a local variable from a boolean control, but it says that boolean latch actions are incompatible with local variables, but I need a way to check this boolean control in two differents loops, how can I do it?

    "Graci" schrieb im Newsbeitrag
    news:[email protected]..
    > I want to create a local variable from a boolean control, but it says
    > that boolean latch actions are incompatible with local variables, but
    > I need a way to check this boolean control in two differents loops,
    > how can I do it?
    Use global variables.
    Compare them with a constant Boolean like F or T.
    The result is true or false and then you can use it in a Cae-Loop.
    Martin

  • How can you get  the public variables from object that extends JLabel?

    I'm using the mouseClickedListener method e.getComponent(); to get the component that is clicked on the sceen. The component i clicked is type "object" and extends a jlabel, and i really need to acces a variable from it. Heres the code i'm using-
    MouseListener listenerDown=new java.awt.event.MouseListener() {
            public void mousePressed(MouseEvent e){
                paintAll();
                mX=e.getX();
                mY=e.getY();
            public void mouseClicked(MouseEvent e) {
                Component c = e.getComponent();
                drawResizeBox(c);
                selected=c;
            public void mouseReleased(MouseEvent e) {
            public void mouseEntered(MouseEvent e) {
            public void mouseExited(MouseEvent e) {
    package javapoint;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.geom.Line2D;
    import java.awt.image.BufferedImage;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    public class object extends JLabel{
        public object(Rectangle rect,int id){
            idNum=id;
            Rect=rect;
            BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
            Graphics2D g = (Graphics2D) image.getGraphics();       
            g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.drawRect((int)rect.getX(), (int)rect.getY(), (int)rect.getWidth(), (int)rect.getHeight());
            Icon icon = new ImageIcon((Image)image);
            setIcon(icon);
            setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);
            mainFrame.slideArr[mainFrame.sIndx].add(this);
            setVisible(true);
            r=true;       
        object(Oval oval,int id){
            idNum=id;       
            setBounds(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            getGraphics().drawOval(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            o=true;
            setVisible(true);
        object(Line2D line,int id){
            idNum=id;       
            setBounds((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2()); //Not gunna work
            getGraphics().drawLine((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2());
            l=true;
            setVisible(true);
        object(Icon icon,int id){
            idNum=id;
            setIcon(icon);
            setBounds(50,50,icon.getIconWidth(),icon.getIconHeight());
            i=true;
            setVisible(true);
        void drawObject(object obj){
            if(r){
                Rectangle rect=obj.Rect;
                setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);          
                Rect=rect;
                BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
                Graphics2D g = (Graphics2D) image.getGraphics();           
                g.setColor(Color.red);
                g.drawRect(0, 0, (int)rect.getWidth(), (int)rect.getHeight());           
                Icon icon = new ImageIcon((Image)image);
                setIcon(icon);
            }else if(l){
            }else if(o){
            }else if(i){
        public boolean r=false;
        public Rectangle Rect;
        public boolean o=false;
        public Oval Oval;
        public boolean l=false;
        public Line2D Line;
        public boolean i=false;
        public Icon Icon;
        public JLabel label;
        public int idNum;
    }Edited by: ghostbust555 on Feb 12, 2010 2:14 PM

    ghostbust555 wrote:
    Well see the problem is i have an array of 200 objects.What does that have to do with anything? And if it does, why isn't it in the code you posted?
    I dont understand what you mean in your "Edit..." part. could you show some code/ explain farther? sorry if its a dumb question I'm still a bit of a novice at java.Yeah.
    object yuck = (object) e.getComponent(); // That's a cast.
    boolean yucksR = yuck.r; // Get the "r" variable from the object.

  • How can you sort an album that was released in 2007 but has 80s music on

    I have v8 of iTunes, almost completed all my tagging how I want it in iTunes for all my music
    I have a query though, I have a 80s, 90s smart playlist.
    I have recently got an album that was released in 2007, so the year in my library is 2007, however all the music on that album is from the 80s.
    So can you tag with 2 years, ie Album release date and song release (original date) or can you sort the album to show its songs from the 80s.
    Someone must have the same issue, especially from compilation albums
    please help
    cheers

    ahh, was hoping it may have had a "overall" year or album year release date.
    Man that means I gotta tag a lot of my music with the correct year now then, as the compilation albums I got all tagged form web with year released
    Whats the best way to get the year of the songs then please? is there an easy way? Ive got a lot of songs to do now
    cheers

  • Can you sort ibookshelf books by collections and list all of the books in each collection?

    can you sort ibookshelf books by collections and list all of the books in each collection?

    The collection changes a little by the criteria you use to view the books, and you can view them by Title, Author, and Category. So, yes, you can.
    The default view is Book view. On the upper right part of the page, you'll see four white blocks - that's the icon for book view. The icon on the right has three white lines; that's where you find Title, Author, and Category view. You can't create folders in any view.

  • How can I sort the words in a document into an alphabetical list?

    How can I sort the words in a document into an alphabetical list? Thanks!

    writer888 wrote:
    How can I sort the words in a document into an alphabetical list? Thanks!
    Copy the words to the Mac's clipboard (Edit menu> Copy)
    Paste into TextEdit 
    Next open the Edit > Find > Find window in Text Edit.
    Highlight a space between two words and Edit menu > copy, paste into the Find field
    Next create a return in the middle of your text and copy that and paste into the Replace field
    Click Replace All.
    Now Edit > Select All and Edit > Copy
    Open a Spreadsheet program with Sort ability and paste into the second column cell from the top
    place a "a" into the top column cell, select the entire colum
    Sort desending order
    Now if you need it out of spreadsheet format, then your going to need to copy just the data cells (not the entire column to avoid problems) and Paste "Special" as unformatted text into a word processing program
    If you need to get rid of the Returns, do the opposite you did in Text Edit, replace the Returns with Spaces
    A chore, but it's rare one needs to sort words into alaphabetical order.
    FYI, I used TextEdit and the free LibreOffice (Spreadsheet and Word Processing) for the above effects.

  • How can I sort the target list in debug form.

    If I want to select a procedure/function to debug it is very hard to find it if the package contains a lot of procedures. How can I sort the target list. I did not find anything in the preferences. Thanks.

    Sorry, can't be done. You can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    My suggestion (if you decide to request it): base the order in the dialog on the order inside the navigator tree (location in the source by default, but possible by name or type/name - see tree's context menu).
    Regards,
    K.

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • Can you limit the list of AirPlay devices seen on the iPad if multiple devices exist?

    We are setting up a school to use iPads, Apple Tvs and Projectors in classrooms.
    - Teachers are using iPads in classrooms and we are setting up wireless projection using AirPlay.
    - Each classroom has an Airport Express with a unique WiFi name.
    - Each classroom has a projector with an Apple TV mounted on it and each Apple TV has a unique AirPlay name.
    - An iPad and the AppleTV are the only two devices on each classroom’s wifi.
    - When a teacher wants to mirror iPad to the projector, we thought they would just see their own AppleTv (projector) but, I think because the underlying school network is the same in each classroom, the teacher sees every device in the school.
    Question:  If you have multiple AirPlay devices on the same network, can you limit the list that one sees on an iPad?
    And/or: Is there a way to set up the wifi differently so the teacher is not presented with a huge list of devices?

    I wish teachers like you would leave technology you don't understand alone. The fact you were allowed to plug-in "consumer grade" access points into a enterprise network says a lot about your lack of knowledge; next you want to turn all of these low end access points into routers!? Your going configure a unique SSID on every AP setup each device to only connect to that network? Do you have any consent of wireless networks? Management?
    It's teachers like you that bring down a network. Then you insult the very IT staff that work in a very thankless position in which most of their interaction occurs when something doesn't work.

  • Can you export the date and user to Excel that appears into a Comments field in a tracking list?

    Hi everyone,
    Can you export the date and user to Excel that appears into a Comments field in a tracking list?
    When i export a tracking list with a Comment field in the Content type, the screen where you enter the data for an item, the Comments field just export the text of the comment into the Excel file.
    In the Comments field appears also, besides the comment text,  the user and date from who and when the comment is added.
    Is there a way to export also the user and the date?
    Thanks
    Wim

    create another comment field that doesn't use 'appending', and through SP Designer change workflow keep
    updating that field with the new comments  (prepend the field with date/username/new comment). Hide the field on all forms, but put it in the view you need to export to Excel.
    Please refer few more links: Hope they will help
    http://www.nothingbutsharepoint.com/2009/04/16/versioning-append-changes-to-existing-text-view-entries-aspx/
    http://sympmarc.com/2011/02/07/showing-all-versions-of-append-changes-to-existing-text-in-a-data-view-web-part-dvwp/comment-page-3/
    https://mossipqueen.wordpress.com/2013/03/06/display-all-appending-field-entries-in-a-single-list-view/
    http://community.office365.com/en-us/f/154/t/278560.aspx
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How can you modify the displayed columns on a Related Information List?

    How can you modify the displayed columns on a Related Information List? For example, how could you add the "Type" column to the List of columns displayed for Service Requests when you are viewing the Contacts Detail page?
    Thanks

    I'd have to say I think this is one of the biggest flaws in the OnDemand system currently. The solution I have come up with is to create reports and put them in webapplets showing the data I want to show. I have then removed the standard Related Info List Objects and added weblinks to create new records as the button on the List object is also gone.
    Keep in mind that doing this does slow things down a little, so it may not work if you have a big user base.
    RWB.

  • Can you set up group distribution email lists in the IPAD 2?

    Can you set up group distribution emails lists in the IPAD 2?

    Yep, same request. Apple, get on that.
    Macbook 2Ghz, black, 2GB   Mac OS X (10.4.7)  

  • Can you change the date sort direction in Photos?

    In iPhoto I had my events sorted by date such that the most recent events came first (at the top) and within the events ordered the other way round, i.e. earlier photos at the top of an event. Can you control the sort order of events in the new Photos app to this degree?
    At the moment when I look at the events album that has been imported I can only seem to have the events sorted by name or in date order with the older events at the top.
    NB - Does anyone else think "Photos" is a really dumb name for the app when you consider trying to use any search engine to find information about it?

    when i changed the date forward.... like 20 years forward, it locked and i have to activate it but i cant :S

Maybe you are looking for

  • My mac pro says "It can't be synced because this computer is no longer authorised for purchased items that are on this iPad.

    But when I de-authorise and then re-authorise it says it's already authorised and then the same window pops up saying  "It can't be synced because this computer is no longer authorised for purchased items that are on this iPad. Battled all day. Remov

  • Creation of a excel file

    I am using my own context and for that I configure my server.xml file. by writing <Context path="/rcm" docBase="e:\rcm" reloadable="true" debug="0"/> Now I am using JXL API to create excel file dynamically. In my rcm folder there is a another folder

  • Numbers Shut Down Problem

    Hi, I am trying to use Numbers at my Mac Book Pro. Since yesterday I am receiving a shutdown problem of Numbers. While working the screen is freezing and than shutdown. Even if I open the file while entering a cell or trying to open a new sheet the N

  • Exporting Widescreen - It shouldn't be this difficult!

    Hello all, I really hope someone can help me here, I'm a long-term user of Premiere Pro yet I recently upgraded to CS4 with the new media encoder, and simple operations now seem impossible, in this scenerio - exporting a widescreen video...in widescr

  • BLANK SCREEN FOR STORE IN ITUNES

    I get a blank itunes store page in itunes on my imac. Have tried all of the troubleshooting suggestions on the web I can find. Please suggest what worked for you.