Can anyone fix this vi

The right button is not working in this vi. Can anyone fix it??
Attachments:
Boolean grid.vi ‏21 KB

He is using LV 2009. If he wouldn't, opening the VI in newer versions would create the *-symbol in the end of the VIs name showing that there are unsaved changes. Looking into the VI settings >> General >> List unsaved Changes would reveal the original version.
To answer the question:
The VI has too many unnecessary local variables and lacks in a proper architecture. You do not have a timing in your loop leading to 100% CPU load at a single core. Please look into the State Machine (Video and Exercise here) or the UI Event Handler for further info (event handler only with LV FDS oder PDS).
Additionally, your algorithm for shifting the active LED is no good. I cannot give you any useful information on a solution since it is not clear how the move should look like (what happens if LED is shifted out of the 3x3 array in any direction? Does it appear on the opposite side in the same column/row or does it shift to another one?)
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • I installed LabVIEW 5.1 on an XP machine and some of the VI's, such as fit to curve, do not have icons. Instead, they have a ? where the icon should be, and they cannot be inserted into my VI's. Can anyone fix this?

    I am using a Dell Inspiron I8100 Laptop with Windows XP Home and am running LabVIEW 5.1 in Windows 95 compatability [I also did so for the install to get rid of the "wrong os" message]. I am able to use nearly all of the functions, but a few of them did not make the transition to my machine. I cannot use some of the VI's contained in the Mathematics sub-palette, I cannot use some of the demos, and it is really setting me back. Instead of an icon for the Mathematics>>Curve Fit sub-palette I get a ? in an icon-sized box that says Curve Fit for it
    s description. Can anyone fix these broken links?
    Attachments:
    LabView.bmp ‏2731 KB
    labview2.bmp ‏2731 KB

    From your discussion I have seen that you try to use LV 5.1.
    It seems that 5.1.1 will work correct. The difference is that 5.1.1 is compatible with Win 2000 and 5.1 is not. This can by a issue.
    Another thing I have seen under Win2000 is the rights a user has. Since you use XP Home there should be no restrictions to the user of the machine. One thing to take into account is do you install and use LV as the same user?
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Can anyone fix this.??please help.

    i want to learn how to program games in java and i found a good tutorial on 1javast.com on making a space invaders applet. i can get the code to compile but the applet doesnt work properly. does anyone have any ideas? here is the code.
    import java.awt.image.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.awt.*;
    public class Game extends Applet implements Runnable, MouseMotionListener, MouseListener
    BufferedImage bufferdImg;
    Graphics2D bufferdImgSurface;
    Thread gameThread;
    int width=400, height=400, MAX=50, speed=10;
    int currentX[] = new int[MAX];
    int currentY[] = new int[MAX];
    int step=0, // Number of movements left/right
    direction=1, // Current left/right direction (0=left, 1=right)
    shipX=width/2-10, // Current player X possition
    shipY=height-45, // Current player Y possition
    mbx=-10, // The mouse position after mouse down, sets the_
    mby=-10, // enemy bullet position to this.
    randomShoot=0, // Used to work out which enemy is shooting
    health=50, // The players health
    BNUM=10, // Number of bullets
    playing=0; // Are is the game playing (0=Playing, 1=Paused, 2=Game Over, 3=Win)
    int bX[] = new int[BNUM]; // Bullet X pos.
    int bY[] = new int[BNUM]; // Bullet Y pos.
    int ebX[] = new int[BNUM]; // Enemy Bullet X pos.
    int ebY[] = new int[BNUM]; // Enemy Bullet Y pos.
    long start=0, // Frame start time
    tick_end_time, // End frame time
    tick_duration, // Time taken to display the frame
    sleep_duration; // How long to sleep for
    static final int MIN_SLEEP_TIME = 10, // Min time to sleep for
    MAX_FPS = 20, // Max frame rate.
    MAX_MS_PER_FRAME = 1000 / MAX_FPS; // MS per frame
    float fps=0, // Current frame rate
    dist; // Distance between 2 points
    public void start()
    Thread gameThread = new Thread(this);
    gameThread.start();
    public void init()
    currentX[0]=0;
    currentY[0]=0;
    int row=10, // Current Y position
    col=10, // Current X position
    count=0; // How many circles have been drawn
    //set the co-ordinates for each circle
    for(int i=0;i<50;i++)
    count++;
    currentX=col;
    col+=25;
    currentY[i]=row;
    if(count==10)
    row+=25;
    col=10;
    count=0;
    addMouseMotionListener(this);
    addMouseListener(this);
    for(int i=0;i<BNUM;i++)
    bX[i]=-10;
    bY[i]=-10;
    ebX[i]=0;
    ebY[i]=height+10;
    public void run()
    while(true){     // Starts the game loop
    start = System.currentTimeMillis(); // Sets the current time
    // Are we playing or is the game over?
    if(playing==0)
    step++;
    for(int i=0;i<MAX;i++)
    if(step>15)
    if(direction==1)
    direction=0;
    else
    direction=1;
    step=0;
    for(int j=0;j<MAX;j++)
    currentY[j]+=speed;
    if(direction==1)
    currentY[i]+=speed;
    else
    currentX[i]-=speed;
    for(int i=0; i<BNUM;i++)
    if(bY[i]<=0)
    bX[i]=mbx;
    bY[i]=mby;
    mbx=-10;
    mby=-10;
    bY[i]-=speed;
    for(int i=0;i<MAX;i++)
    for(int j=0;j<BNUM;j++)
    if(!(bY[j]<=0))
    dist=(int)(Math.sqrt(Math.pow((currentX[i]+10)-bX[j],2)+
    Math.pow((currentY[i]+10)-bY[j],2)));
    if(dist<=20)
    bY[j]=-50;
    currentY[i]=-500;
    for(int k=0;k<MAX;k++)
    randomShoot=(int)(Math.random()*MAX);
    if(currentY[randomShoot]>=0)
    for(int i=0;i<BNUM;i++)
    if(ebY[i]>=height)
    ebX[i]=currentX[randomShoot];
    ebY[i]=currentY[randomShoot];
    break;
    //shooting the alien bullets
    for(int k=0;k<MAX;k++)
    randomShoot=(int)(Math.random()*MAX);
    if(currentY[randomShoot]>=0)
    for(int i=0;i<BNUM;i++)
    if(ebY[i]>=height)
    ebX[i]=currentX[randomShoot];
    ebY[i]=currentY[randomShoot];
    break;
    for(int j=0; j < BNUM; j++) {
    if(!(ebY[j]>=height)){
    dist = (int)(Math.sqrt(Math.pow((shipX+10)-ebX[j],2) + Math.pow((shipY+10)-ebY[j],2)));
    if(dist <= 20){
    ebY[j]=height+10;
    health-=10;
    for(int i=0; i < BNUM; i++){
    if(ebY[i] < height) {
    ebY[i]+=speed;
    if(health <=0)
    playing=2;
    int count=0;
    for(int j=0; j < MAX; j++){
    if(currentY[j]<0)
    count++;
    if(currentY[j]>=340)
    playing=2;
    if(count==MAX)
    playing=3;
    } else { }
    repaint(); // Redraw the screen
    public void paint(Graphics g)
    update(g);
    public void update(Graphics g)
    Graphics2D g2 = (Graphics2D)g;
    // Set the background color.
    bufferdImgSurface.setBackground(Color.black);
    // Clear the applet.
    bufferdImgSurface.clearRect(0, 0, width, height);
    bufferdImgSurface.setColor(Color.green);
    //(X pos, Y pos, Width, Height)
    for(int i=0; i < MAX; i++)
    bufferdImgSurface.fillOval(currentX[i], currentY[i], 20,20);
    // Draw the read ship (a square)
    bufferdImgSurface.setColor(Color.red);
    bufferdImgSurface.fillRect(shipX, shipY, 20, 20);
    for(int j=0; j < BNUM; j++){
    bufferdImgSurface.setColor(Color.yellow);
    bufferdImgSurface.fillOval(bX[j], bY[j], 5,5);
    bufferdImgSurface.setColor(Color.blue);
    bufferdImgSurface.fillOval(ebX[j], ebY[j], 5,10);
    // Draw a bottom line to our window
    bufferdImgSurface.setColor(Color.red);
    bufferdImgSurface.drawString("_________________________________________________________",0,375);
    if(playing==1)
    bufferdImgSurface.drawString("PAUSED", width/2-10, 390);
    else if(playing==2)
    bufferdImgSurface.drawString("****Game Over****", width/2-10, 390);
    else if(playing==3)
    bufferdImgSurface.drawString("****You Win!****", width/2-10, 390);
    for(int i=0; i < health; i++)
    bufferdImgSurface.drawString(" |", (2*i), 390);
    // Draw the buffered image to the screen.
    g2.drawImage(bufferdImg, 0, 0, this);
    public void mouseMoved(MouseEvent e) { shipX=e.getX()-5; }
    public void mouseDragged(MouseEvent e) { shipX=e.getX()-5; }
    public void mouseClicked(MouseEvent e) {
    mbx=e.getX();
    mby=shipY;
    public void mousePressed(MouseEvent e) {
    mbx=e.getX();
    mby=shipY;
    public void mouseEntered(MouseEvent e) { playing=0; }
    public void mouseExited(MouseEvent e) { playing=1; }
    public void mouseReleased(MouseEvent e) { }

    this doesn't come close to compiling

  • My ipod had a little rain damage and screwed up but later on fixed it and was fine. Later on that day the connect to itunes screen popped up and when i connected it it said "your ipod has a passcode" and then says try again. can anyone fix this?

    Yeah everything is in the question so plz hep me....

    Quinten,
    It will erase all of the information on your ipod. When was the last time you synced your ipod? If recently you should be able to recover most of your files. If not you will only be able to have the files since you last synced it to your computer. Can it sync it ignoring the passcode? If so try that. If none of these work you may just have to plainly restore it or put it in recovery mode.
                                                                          Thank you for choosing Apple!
                                                                               MH, an Apple expert

  • Can anyone fix this issue? It is both on my home and office computer anf from online blogs it seems to be a large problem for many. Exc in ev handl: Error: Bad NPObject as private data!

    Exc in ev handl: Error: Bad NPObject as private data!

    Disable "McAfee Site Advisor" extension which was just updated to 3.4.0, which probably took it out of the addons block list.
    * "Ctrl+Shift+A" > find McAfee Site Advisor and use "Disable", and then restart Firefox.
    * Do a Google Search no problem
    * It seems that if you re-enable Site Advisor again, and restart Firefox you are okay. At least you know where to look if you get the error again or Google searches slow down.

  • Can anyone fix this simple actionscript

    if (_root.ball._currentframe == 44) {
    gotoAndPlay("lv2");
    why doesnt it work?

    I'm afriad I'm not too sure what the problem is. But I'd
    attach the script as a movie script to the ball movieclip.
    Then add an onEnterFrame event and place the if statement
    inside. I'd possibly suggest that the if statement is only being
    called once, rather than being called every time a new frame is
    entered, so it will never evaluate as true.
    Hope that helps

  • All the sudden my iPod shuffle no longer shows up in my devices on my computer nor does iTunes show it?  Why would this happen? How can i fix this? Anyone know?

    All the sudden my iPod shuffle no longer shows up in my devices on my computer nor does iTunes show it?  Why would this happen? How can i fix this? Anyone know?

    Start with the "Shuffle not recognized" section in this Apple support document.
    http://support.apple.com/kb/TS1412#q2
    B-rock

  • TS2755 When I try to send an imessage to my husband using my new 5c it sends the message back to my phone and not to my husband. However i am able to so far send a message to anyone else! How can i fix this?

    When I try to send an imessage to my husband using my new 5c it sends the message back to my phone and not to my husband. However i am able to so far send a message to anyone else! How can i fix this?

    I am having the same problem and I have tried everything to fix it. Are there any solutions?

  • Thanks for a stealth fix - can anyone confirm this actually happened?

    When the Yoga 2 Pro was released I received an error message about an unauthorized power supply when using with my energizer xpal external battery.  It was only a nuisance since the battery continued to work.  After this last power update I have not seen that message at all and my laptop continues to work well while on the external battery.  Can anyone confirm this was an undocumented fix?

    I know they fixed an error message when using other power supplies in the bios when they released the latest (11/7 I think) bios update.

  • My Iphone updated today with new IOS 6.1 and while doing that it has sync my phone number with my wife number in the same cloud that we have hence we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings

    My Iphone5 updated today with new iOS 6.1 and while doing that it has sync my phone number with my wife number in the same icloud due to which we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings etc
    Thank you

    My Iphone5 updated today with new iOS 6.1 and while doing that it has sync my phone number with my wife number in the same icloud due to which we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings etc
    Thank you

  • When I copy/paste a paragraph from a PDF doc, it pastes with no spaces between words. How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue.

    When I copy/paste a paragraph from a PDF doc (onto Facebook status bar, for example) it pastes with no spaces between words.  I.e: "The manhadajugofcoolwaterand offeredmeadrink." How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue. I'm new to Apple so any help will be much appreciated. Thanks!

    I can't speak about this occurring with FaceBook since I don't use FaceBook, but I see the same type of thing when I copy and pasted from websites. It doesn't always happen and I cannot find any particular set of circumstances under which it occurs or does not occur.
    I am merely responding to let you know that it happens to me as well and I have seen no way to correct it. I'm not so sure that there is a way to correct in in that it may have something to do with how the original text is formatted in the PDF or on the website and how it eventually "fits" into the text field or the area in which it is pasted.

  • Can anyone explain this behavior and tell me how to fix it?

    Using NetBeans 6.5 on Windows, Glassfish v2.1
    I have a JSF application with a page that has a tab set.
    On one of the tabs I have a panel with company information.
    One of the components on the page is an InputText field with the value bound to a session bean variable.
    The tab also has an Add button.
    Here is what the JSP looks like for the input text and button components
       <h:inputText binding="#{MainPage.companyNameTF}" id="companyNameTF" readonly="#{SessionBean1.readOnlyFlag}"
       <h:commandButton action="#{MainPage.mainAddBtn_action}" disabled="#{SessionBean1.disableEdit}" id="mainAddBtn"
            style="font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; left: 425px; top: 380px; position: absolute; width: 75px" value="Add"/>
         This is all plain vanilla stuff and I would expect that when the Add button is pushed, the session bean property would be filled with
    the value entered in the input text field.
    In the java code for the page, I have a method to process the Add button push.
    Originally, it just called a method in the session bean to check that a value was entered in the input text field by checking the bound
    session bean property.
    For some reason, that was not getting filled and I was getting either a null or empty string rather than the value in the text field.
    I added some checking in the method that processes the Add button push so I could check the values in the debugger.
    Here is a sample of that code:
        public String mainAddBtn_action() {
            String s = sb1.getCompanyName();
            s = (String)this.companyNameTF.getValue();
            s = (String)this.companyNameTF.getSubmittedValue();I check this in the debugger and NONE of the variants that I have listed have the value that was entered into the text field.
    The submittedValue is null and the others are empty strings (that is what they were initalized to).
    This is all pertty straight forward stuff and I am at a loss to explain what is happening.
    Can anyone expain this behavior, and, most important, how can I force the values to be present when the Add button is pushed.
    I have never experienced this problem before, and have no clue what is causing it.
    Thanks.

    Basically, the component bindings are just being used in plain vanilla get/set modes.
    I set them to "" when I do a clear for the fields and they are set to a value via the text field.
    No other action other than to read the values via get to insert them into the database.
    And, I always use the get/set methods rather than just setting the value directly.
    This is what is so strange about this behavior - I have created dozens of database add/update/delete pages using this same model and have not had a problem with them - even in a tab context.
    Not a clue why this one is different.
    I did notice that I had an error on the page (in IE7, you get a small triangle warning sign when something is not right).
    I figured that might be the problem - maybe buggering up the rendering process.
    I tracked that down and do not get that anymore (it had to do with the PDF display I was trying to get working a while back), but that did not resolve the problem.
    I don't think there are any tab conflicts - none of the components are shared between tabs, but I will see what happens when I move a couple of the components out of the tab context.
    I noticed that it seems to skip a cycle. Here is what I can do.
    1) Fill in text fields and add a record - works fine the first time.
    2) Clear the text fields
    3) Enter new data in the text fields and push Add
    4) I get an error saying fields are blank from my data check process.
    5) Enter new data and push Add - the record is added with the new data.
    My work around is to not enter data in step 3 and just accept the error message in step 4, then go ahead and enter the real data in step 5.
    Very ugly, but it works every time.

  • When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder". How can i fix this?

    When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder. How can i fix this problem?

    Anyone can help to advice how to solve this issue ?

  • My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can i fix this without turning off iCloud?

    My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can I fix this without turning off iCloud?
    I am at a new office that uses Outlook (not Outlook Exchange) which does not sync with my mobile... I just got iCloud set up on my PC to sync my contacts, calendar, reminders, etc... The sync worked (not without flaws, but the other issues seem solvable... I think), so that i can now see all my appointments on both my phone and on my PC. The problem I am having is that iCloud moved all of my calendar items from Outlook into iCloud calendar and now when I send out meeting/calendar invites the recipients may accept them, but the meeting does not get added to their calendar. This is a huge problem and may mean that i need to turn off iCloud.
    Does anyone know how to fix this?
    Thanks!

    I am replying to my own post here as I seem to have fixed the problem.
    I do have some calendars that are shared. Some of those are shared with users who have time zone support turned on. So i activated time zone support on my iphone, then deleted my icloud subscription. I then signed in to icloud again and voila... problem solved.
    It is a weird one as the other calendar views were always fine and when you opened an event that appeared in the wrong day (on list view), the correct date of the event was shown in the information...
    one more bug in a complicated system I guess

  • "Error: Could not complete your request because it is not a valid Photoshop document." How can I fix this on a mac?

    I was working on a project and I closed it after saving and closed photoshop. Then later when I came to make another adjustment to my PSD I opened the file and it said "Could not complete your request because it is not a valid Photoshop document." How can I fix this? I didn't shut off my mac while saving it. Someone please help

    Okay, I just talked to the person that originated the document.
    When this usually happens to me, it's because I've done something stupid like saved a .jpeg as a .psd. So that's what I tried. I tried a few other extensions as well, so I thought that it was not an extension problem. Well, the originator told me it had originally been a TIFF, which was the ONE FILE EXTENSION I DIDN'T TRY. :\
    Anyway, that fixed it. Usually this error indicates either a corrupt file or the wrong extension, just in case anyone ever digs this convo up later.

Maybe you are looking for