Can I exit a FOR loop before it has completed its iterations?

Or is there a way to easily slave a while loop to an array input? I essentially need to search an array for a specific entry. Non of the built in VI's will search the array the way I need to do it. I tried wiring the array to a while loop and searching each element, but if the match is never found, the while loop never returns. Is there a setting on a while loop to force it to return if an input array completes?
The For loop will work, but it forces me to step through the entire array each time and I have to play games to ignore values after I have found and set the one I need.
Thanks for any help
Chris

Hello –
I am attaching a very simple example program to show what Alberto and Dennis explained (or at least what I understood their approach would be, please apologize if I misunderstood).
Another option is to use the Search 1D Array function, located in the Functions >> All Functions >> Array subpalette.
Hope this helps.
SVences
Applications Engineer
National Instruments
Attachments:
Example.vi ‏29 KB

Similar Messages

  • How can I repeat a for loop, once it's terms has been fulfilled???

    Well.. I've posted 2 different exceptions about this game today, but I managed to fix them all by myself, but now I'm facing another problem, which is NOT an error, but just a regular question.. HOW CAN I REPEAT A FOR LOOP ONCE IT HAS FULFILLED IT'S TERMS OF RUNNING?!
    I've been trying many different things, AND, the 'continue' statement too, and I honestly think that what it takes IS a continue statement, BUT I don't know how to use it so that it does what I want it too.. -.-'
    Anyway.. Enought chit-chat. I have a nice functional game running that maximum allows 3 apples in the air in the same time.. But now my question is: How can I make it create 3 more appels once the 3 first onces has either been catched or fallen out the screen..?
    Here's my COMPLETE sourcecode, so if you know just a little bit of Java you should be able to figure it out, and hopefully you'll be able to tell me what to do now, to make it repeat my for loop:
    Main.java:
    import java.applet.*;
    import java.awt.*;
    @SuppressWarnings("serial")
    public class Main extends Applet implements Runnable
         private Image buffering_image;
         private Graphics buffering_graphics;
         private int max_apples = 3;
         private int score = 0;
         private GameObject player;
         private GameObject[] apple = new GameObject[max_apples];
         private boolean move_left = false;
         private boolean move_right = false;
        public void init()
            load_content();
            setBackground(Color.BLACK);
         public void run()
              while(true)
                   if(move_left)
                        player.player_x -= player.movement_speed;
                   else if(move_right)
                        player.player_x += player.movement_speed;
                   for(int i = 0; i < max_apples; i++)
                       apple.apple_y += apple[i].falling_speed;
                   repaint();
                   prevent();
                   collision();
              try
              Thread.sleep(20);
              catch(InterruptedException ie)
              System.out.println(ie);
         private void prevent()
              if(player.player_x <= 0)
              player.player_x = 0;     
              else if(player.player_x >= 925)
              player.player_x = 925;     
         private void load_content()
         MediaTracker media = new MediaTracker(this);
         player = new GameObject(getImage(getCodeBase(), "Sprites/player.gif"));
         media.addImage(player.sprite, 0);
         for(int i = 0; i < max_apples; i++)
         apple[i] = new GameObject(getImage(getCodeBase(), "Sprites/apple.jpg"));
         try
         media.waitForAll();     
         catch(Exception e)
              System.out.println(e);
         public boolean collision()
              for(int i = 0; i < max_apples; i++)
              Rectangle apple_rect = new Rectangle(apple[i].apple_x, apple[i].apple_y,
    apple[i].sprite.getWidth(this),
    apple[i].sprite.getHeight(this));
              Rectangle player_rect = new Rectangle(player.player_x, player.player_y,
    player.sprite.getWidth(this),
    player.sprite.getHeight(this));
              if(apple_rect.intersects(player_rect))
                   if(apple[i].alive)
                   score++;
                   apple[i].alive = false;
                   if(!apple[i].alive)
                   apple[i].alive = false;     
         return true;
    public void update(Graphics g)
    if(buffering_image == null)
    buffering_image = createImage(getSize().width, getSize().height);
    buffering_graphics = buffering_image.getGraphics();
    buffering_graphics.setColor(getBackground());
    buffering_graphics.fillRect(0, 0, getSize().width, getSize().height);
    buffering_graphics.setColor(getForeground());
    paint(buffering_graphics);
    g.drawImage(buffering_image, 0, 0, this);
    public boolean keyDown(Event e, int i)
         i = e.key;
    if(i == 1006)
    move_left = true;
    else if(i == 1007)
         move_right = true;
              return true;     
    public boolean keyUp(Event e, int i)
         i = e.key;
    if(i == 1006)
    move_left = false;
    else if(i == 1007)
         move_right = false;
    return true;
    public void paint(Graphics g)
    g.drawImage(player.sprite, player.player_x, player.player_y, this);
    for(int i = 0; i < max_apples; i++)
         if(apple[i].alive)
              g.drawImage(apple[i].sprite, apple[i].apple_x, apple[i].apple_y, this);
    g.setColor(Color.RED);
    g.drawString("Score: " + score, 425, 100);
    public void start()
    Thread thread = new Thread(this);
    thread.start();
    @SuppressWarnings("deprecation")
         public void stop()
         Thread thread = new Thread(this);
    thread.stop();
    GameObject.java:import java.awt.*;
    import java.util.*;
    public class GameObject
    public Image sprite;
    public Random random = new Random();
    public int player_x;
    public int player_y;
    public int movement_speed = 15;
    public int falling_speed;
    public int apple_x;
    public int apple_y;
    public boolean alive;
    public GameObject(Image loaded_image)
         player_x = 425;
         player_y = 725;
         sprite = loaded_image;
         falling_speed = random.nextInt(10) + 1;
         apple_x = random.nextInt(920) + 1;
         apple_y = random.nextInt(100) + 1;
         alive = true;
    And now all I need is you to answer my question! =)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    package forums;
    import java.util.Random;
    import javax.swing.Timer;
    import javax.imageio.ImageIO;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class VimsiesRetardedAppleGamePanel extends JPanel implements KeyListener
      private static final long serialVersionUID = 1L;
      private static final int WIDTH = 800;
      private static final int HEIGHT = 600;
      private static final int MAX_APPLES = 3;
      private static final Random RANDOM = new Random();
      private int score = 0;
      private Player player;
      private Apple[] apples = new Apple[MAX_APPLES];
      private boolean moveLeft = false;
      private boolean moveRight = false;
      abstract class Sprite
        public final Image image;
        public int x;
        public int y;
        public boolean isAlive = true;
        public Sprite(String imageFilename, int x, int y) {
          try {
            this.image = ImageIO.read(new File(imageFilename));
          } catch (IOException e) {
            e.printStackTrace();
            throw new RuntimeException("Bailing out: Can't load images!");
          this.x = x;
          this.y = y;
          this.isAlive = true;
        public Rectangle getRectangle() {
          return new Rectangle(x, y, image.getWidth(null), image.getHeight(null));
      class Player extends Sprite
        public static final int SPEED = 15;
        public Player() {
          super("C:/Java/home/src/images/player.jpg", WIDTH/2, 0);
          y = HEIGHT-image.getHeight(null)-30;
      class Apple extends Sprite
        public int fallingSpeed;
        public Apple() {
          super("C:/Java/home/src/images/apple.jpg", 0, 0);
          reset();
        public void reset() {
          this.x = RANDOM.nextInt(WIDTH-image.getWidth(null));
          this.y = RANDOM.nextInt(300);
          this.fallingSpeed = RANDOM.nextInt(8) + 3;
          this.isAlive = true;
      private final Timer timer = new Timer(200,
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            repaint();
      public VimsiesRetardedAppleGamePanel() {
        this.player = new Player();
        for(int i=0; i<MAX_APPLES; i++) {
          apples[i] = new Apple();
        setBackground(Color.BLACK);
        setFocusable(true); // required to generate key listener events.
        addKeyListener(this);
        timer.setInitialDelay(1000);
        timer.start();
      public void keyPressed(KeyEvent e)  {
        if (e.getKeyCode() == e.VK_LEFT) {
          moveLeft = true;
          moveRight = false;
        } else if (e.getKeyCode() == e.VK_RIGHT) {
          moveRight = true;
          moveLeft = false;
      public void keyReleased(KeyEvent e) {
        moveRight = false;
        moveLeft = false;
      public void keyTyped(KeyEvent e) {
        // do nothing
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        //System.err.println("DEBUG: moveLeft="+moveLeft+", moveRight="+moveRight);
        if ( moveLeft ) {
          player.x -= player.SPEED;
          if (player.x < 0) {
            player.x = 0;
        } else if ( moveRight ) {
          player.x += player.SPEED;
          if (player.x > getWidth()) {
            player.x = getWidth();
        //System.err.println("DEBUG: player.x="+player.x);
        Rectangle playerRect = player.getRectangle();
        for ( Apple apple : apples ) {
          apple.y += apple.fallingSpeed;
          Rectangle appleRect = apple.getRectangle();
          if ( appleRect.intersects(playerRect) ) {
            if ( apple.isAlive ) {
              score++;
              apple.isAlive = false;
        g.drawImage(player.image, player.x, player.y, this);
        for( Apple apple : apples ) {
          if ( apple.isAlive ) {
            g.drawImage(apple.image, apple.x, apple.y, this);
        g.setColor(Color.RED);
        g.drawString("Score: " + score, WIDTH/2-30, 10);
      private static void createAndShowGUI() {
        JFrame frame = new JFrame("Vimsies Retarded Apple Game");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(new VimsiesRetardedAppleGamePanel());
        frame.pack();
        frame.setSize(WIDTH, HEIGHT);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args) {
        SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              createAndShowGUI();
    }Hey Vimsie, try resetting a dead apple and see what happens.

  • Stopping output tasks properly before exiting a For-loop

    Hi,
    I've been having some trouble exiting a For-loop conditionally. The problem is that when the loop is stopped conditionally (a button is pressed) the DAQ (NI USB 6353) outputs get stuck to whatever value they were in. I tried stopping the DAQ Assistant output task (1 sample on demand)  before exiting the loop but that didn't solve the problem. Should this perhaps be done one iteration before exiting the loop or can it be done in the same iteration round?
    What would be the "right" way to exit a for loop with output tasks so that the output signals would be 0V after exiting? I know that I could "force" feed the DAQ Assistant with 0V control before exiting but in this case that would be quite difficult...
    Any ideas? Help is appriciated.

    Yes, I get it... However at this point I don't think that's an option.
    Would this kind of solution work? ( I am not able to test all possible solutions in the real system which is why I would like to get a confirmation first)
    The idea is to connect the output of the "Or" port to the "Stop" -ports of the DAQ Assistants in the loop.
    Edit. Will the output automatically go to 0V if I just stop the task? I am not really sure about this.
    Thank you.
    Attachments:
    exit-loop.jpg ‏8 KB

  • How to terminate or exit a for loop when the user clicks on stop button

    Actually my problem is to stop a loop when i click on stop button.
    example:i have two buttons 'start' and 'stop'
    in start buttom i wrote a for loop as
    dim i as integer
    For i=1 To 100000
    print i
    Next
    when i click on start buuton it prints 'i' value up tp 100000.
    my question is when i click on 'Stop' button the for loop has to terminate or Exit from the  loop and should stops the execution.
    Is it possible to termianate or Exit the 'for loop'
    PS.Shakeer Hussain
    Hyderabad

    I am unable to stop the loop and application not at all allowing to Press the Stop button.
    It seems like Hung, any advise ?
    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
            btnStop.Enabled = True
            btnSelectFile.Enabled = False
            btnStart.Enabled = False
            btnStop.Focus()
            Dim strFileName As String = txtFileName.Text.ToString
            Dim strLineText As String
            If System.IO.File.Exists(strFileName) = True Then
                Dim objReader As New System.IO.StreamReader(strFileName)
                While objReader.Peek() <> -1 And stopclick = False
                    strLineText = objReader.ReadLine()
                    MsgBox(strLineText, MsgBoxStyle.Information)
                    Application.DoEvents()
                    Thread.Sleep(My.Settings("strDelay") * 1000)
                    'System.Diagnostics.Process.Start(My.Settings("strFireFoxLocation"), strLineText)
                End While
            End If
        End Sub
        Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
            stopclick = True
            btnSelectFile.Enabled = True
            btnStart.Enabled = True
            btnStop.Enabled = False
        End Sub
    Raman Katwal
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Can I use a for loop to add anonymous ActionListener objects?

    I have a setListener() method that has the following inside:
    for(int k = 0; k < buttons.length; k++)
        buttons[k].addActionListener(new ActionListener()
            public void actionPerformed(ActionEvent e)
                g2.setColor(colors[k]);
    }I have a JButton array and a Color array and I was hoping I could add them quickly in one shot rather than manually adding an anonymous ActionListener 9 times (I have 9 components). It tells me I need to make k final for an inner class and when I tested it by removing the for loop and keeping k as a final integer, it works. Is there a medium such that I can achieve what I want more or less while respecting Java's syntax?
    Any input would be greatly appreciated!
    Thanks in advance!

    s3a wrote:
    The local variable exists on the stack for as long as the method is executing. Once the method ends, that variable no longer exists. The newly created object, however, can continue to exist long after the method has ended. So when it's referring to variable X, it cannot refer to the same X as the one in the method, because that variable may no longer exist.Sorry for picking on little details but I am still not fully satisfied.
    Earlier I questioned if the local variable changed, but now let's say that that variable no longer exists at all, why does that even matter if the inner class copied the value and is keeping it for itself? What do you mean? The variable that existed in the method ceased to exist when the method ended. The inner class, however, can continue to live on, and can continue to refer to what we see as the same variable. However, it obviously can't be the same variable, since, in the world of the inner class, it still exists, while in the world of the method, it does not.
    This is completely independent of whether the variable changes or not. Regardless or whether the variable changes we still need two copies--one that goes away when the method's stack frame is popped, and one that lives on as long as the inner object does.
    Then, because there are two copies, the designers decided that the variable has to be final, so that they wouldn't have to mess with the complexity of keeping two variables in sync.
    That explanation leads me to believe that there is no copy and that there is some kind of "permanent umbilical cord" between the inner class and the local variable.Wrong. There has to be a copy. How else could the inner class keep referring to it after the method ends?
    Also, does marking it as final force it to be a permanent constant "variable" even if it's not a field "variable"? Or, similarly, does making a "variable" final make Java pretend that it is a field "variable"?Making a variable final does exactly one thing: It means the value can't change after it's been initialized. This is true of both fields and locals.
    As for the "pointless" byte-counting, I really don't see how it's confusing unless you're an absolute beginner. If I see somebody using a byte, I assume they have a real reason to do so, not pointless byte-hoarding. Then when I see that it's just a loop counter, I wonder WTF they were thinking, and have to spend some time determining if there's a valid reason, or if they're just writing bad code. Using a byte for a loop counter is bad code.
    I could then ask, why are people not using long instead of int and saying that that's using int is too meticulous?Part of it is probably historical. Part of it is because at 4 bytes, and int is exactly on word on the vast majority of hardware that Java has targeted since it came out. 8-byte words are becoming more common (64-bit hardware) but still in the minority.

  • @reference0 must be defined error message when creating parameters in for loop before SQL insert query

    I need to parameterise the query in the for loop, but VS2013 keeps telling me that @reference0 must be defined.
    Any reason why this keeps happening?
    var dbConnect = new DbConnect();
    var cmd = new MySqlCommand();
    dbConnect.OpenConnection();
    var query =
    "INSERT INTO booking (operator_id, plot_id, postcode, datetime, stops, " +
    "mileage, price, passengers, name, note, phone, status, reference) " +
    "VALUES (@operator_id, @plot_id, @postcode, @datetime, @stops, " +
    "@mileage, @price, @passengers, @name, @note, @phone, @status, @reference);";
    for (var i = 0; i < _waypointList.Count; i++)
    query +=
    @"INSERT INTO waypoint
    (booking_id, sequence, address, lat, lng, reference)
    VALUES
    ((select id FROM booking WHERE reference=@reference" + i + @"),
    @sequence" + i + @",
    @address" + i + @",
    @lat" + i + @",
    @lng" + i + @",
    @reference" + i + ")";
    cmd.Parameters.AddWithValue(("@reference" + i), _reference);
    cmd.Parameters.AddWithValue(("@sequence" + i), i);
    cmd.Parameters.AddWithValue(("@address" + i), _waypointList[i]);
    cmd.Parameters.AddWithValue(("@lat" + i), _lat);
    cmd.Parameters.AddWithValue(("@lng" + i), _lng);
    Console.WriteLine(query);
    cmd = new MySqlCommand(query, DbConnect.Connection);
    cmd.Parameters.AddWithValue(("@operator_id"), _operatorId);
    cmd.Parameters.AddWithValue(("@plot_id"), _plotId);
    cmd.Parameters.AddWithValue(("@postcode"), _postcode);
    cmd.Parameters.AddWithValue(("@datetime"), _datetime);
    cmd.Parameters.AddWithValue(("@stops"), _stops);
    cmd.Parameters.AddWithValue(("@mileage"), _mileage);
    cmd.Parameters.AddWithValue(("@price"), _price);
    cmd.Parameters.AddWithValue(("@passengers"), _passengers);
    cmd.Parameters.AddWithValue(("@name"), _name);
    cmd.Parameters.AddWithValue(("@note"), _note);
    cmd.Parameters.AddWithValue(("@phone"), _phone);
    cmd.Parameters.AddWithValue(("@status"), Status);
    cmd.Parameters.AddWithValue(("@reference"), _reference);
    cmd.ExecuteNonQuery();
    dbConnect.CloseConnection();

    reason :>
    for (var i = 0; i < _waypointList.Count; i++)
    query +=
    @"INSERT INTO waypoint
    (booking_id, sequence, address, lat, lng, reference)
    VALUES
    ((select id FROM booking WHERE reference=@reference" + i + @"),
    @sequence" + i + @",
    @address" + i + @",
    @lat" + i + @",
    @lng" + i + @",
    @reference" + i + ")";
    cmd.Parameters.AddWithValue(("@reference" + i), _reference);
    cmd.Parameters.AddWithValue(("@sequence" + i), i);
    cmd.Parameters.AddWithValue(("@address" + i), _waypointList[i]);
    cmd.Parameters.AddWithValue(("@lat" + i), _lat);
    cmd.Parameters.AddWithValue(("@lng" + i), _lng);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Can User Exit works for Settlement Rule in Maintenance Order creation?

    Dear Experts,
    I have this situation where I tried to create an Internal Maintenance Order via IW31 for multiple equipments from different functional location (different cost centers) using the Object List.  However, the settlement rule has a problem to pull out as there's no Equipment in the reference object. That's the reason, I'm looking at the User Exit which I understand the IWO10027, can do the work.  Since I'm new to User Exit, can I enhance the settlement rule by the following condition.
    The costs spent on each equipment will be used as a basis of calculating the weightage (via equivalence no) for the settlement rule.
    Can it be done that way?
    regards,
    Abraham

    Sanjay,
    This data can be checked in the following user-exits:
    COZF0001: Change purchase req. for externally processed operation
    COZF0002: Change purchase req. for externally procured component
    PeteA

  • Can we have a for loop/ the loop control construct in an etext template?

    Hi All,
    Can we have a loop control construct in etext templates?
    I have to print a remittance advice of only 11 invoices per page only. How can I do this?
    Your help in this regard is really appreciated.
    Rgds,
    Kiran Panditi

    Hi Ravi,
    Do you use SharePoint Designer 2007?
    Have you tried to use sequence approval workflow with participants in serial order?
    http://office.microsoft.com/en-001/sharepoint-designer-help/understand-approval-workflows-in-sharepoint-2010-HA101857172.aspx
    If you use SharePoint Designer 2013, there is an "loop" operation available you can take a look.
    http://prasadtechtactics.blogspot.in/2012/07/sharepoint-designer-2013-workflows-part_24.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • GREP: How can I place a (for example) "*" before and after bold text with GREP?

    Hi there.
    I have a string of text as such:
    I want to use GREP to insert a "*" (asterisk) before and after each bold part. Can I do that with GREP?
    (if asterisk is a problem, I can use a different character)
    Any help would be appreciated.

    Hi Schmaltzkopf,
    try this:
    Have fun

  • How do I exit a For Loop? Just Kidding! VISA and LVRT and App

    Builder/Installer. Hi,
    I am using LV6i and App Builder. I built a little program using the
    VISA Config, Read Write, and Bytes at Serial port vi's.
    I attached the build file also for ref.
    [Image]
    When built using the option to include the run time engine then
    installed on a laptop, I get an illegal operation in lvrt.dll.
    I have tried to install VISA on the laptop but this makes no difference.
    I am new to VISA so any help is appreciated.
    Thanks in advance for any help.
    [See first answer for additional information]

    [Attachment(s) for question]
    Attachments:
    Simple_Terminal.bld ‏2 KB

  • How can I stop a timed loop in the middle of its cycle?

    Hello all,
    I'm creating VI that will gather data from a series of thermocouples and outputing that data to a graph as well as to a spreadsheet file.
    The sampling rate for each channel needs to be independent and variable. That is, they want to increase the sampling rate to 1/sec during temperature transitions, and then 1/10minutes (for example) when saturated.
    I was going to use a menu ring for the user to select the sampling rate (1 second to 15 minutes, with 7 different rates in between) and then, using a case statement, select the value of how long the 'wait (ms)' should wait in each loop.
    This kind of works with one major problem. If the user currently has the sampling rate set to 15 minutes, th
    en wants to switch it to 1 second, it can take up to 14:59 for the 'wait(ms)' to finish waiting on the 15 minute wait before it switches to the faster sampling rate.
    Is there a way to stop a 'wait(ms)' in the middle of its wait cycle? Or is there a better way of doing this?
    Thanks in advance for your help.
    Dave Neumann
    [email protected]

    "Neumannium" wrote in message
    news:[email protected]..
    > Hello all,
    >
    > I'm creating VI that will gather data from a series of thermocouples
    > and outputing that data to a graph as well as to a spreadsheet file.
    >
    > The sampling rate for each channel needs to be independent and
    > variable. That is, they want to increase the sampling rate to 1/sec
    > during temperature transitions, and then 1/10minutes (for example)
    > when saturated.
    >
    > I was going to use a menu ring for the user to select the sampling
    > rate (1 second to 15 minutes, with 7 different rates in between) and
    > then, using a case statement, select the value of how long the 'wait
    > (ms)' should wait in each loop.
    >
    > This kind of works with one maj
    or problem. If the user currently has
    > the sampling rate set to 15 minutes, then wants to switch it to 1
    > second, it can take up to 14:59 for the 'wait(ms)' to finish waiting
    > on the 15 minute wait before it switches to the faster sampling rate.
    >
    > Is there a way to stop a 'wait(ms)' in the middle of its wait cycle?
    > Or is there a better way of doing this?
    Instead of using the wait ms.vi you could use 'tick count' at the beginning
    of the loop and then have an inner loop that keeps checking the 'tick count'
    until time minus time > time to wait.
    You will need to figure out how to handle the case where the millisecond
    timer wraps from 2^32-1 to zero. That should not be too difficult.

  • I can not upgradethe iso for  my ipod touch 3 generation its says the version is 4.2.1 and theres no need to upgrade ... why i can not up grade it? thank you

    please.. can you tel me how can i up grade my ipod touch ios 4.2 to 5.1 ''?? thank you

    Only 3G and 4G iPods can go to iOS 5. See:
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • Can't launch installation for CS4. "Setup has encountered an error and cannot continue. Contact Adobe Customer Support for assistance."

    I got a new macbook pro with mac ox 10.9.4 and couldn't launch the installer for CS4. The setup error message was "Setup has encountered an error and cannot continue. Contact Adobe Customer Support for assistance." Any idea you have would be greatly appreciated. Thank you,

    I checked the earlier log file. It seemed recorded with error and fatal, when I first experienced with the message titled. Please see the messages below.
    Moreover, after running a cleaner program, there was no error and fatal message in a log file.
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    729 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    727 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    725 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    3 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    1 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 11:53:16 2014 ERROR
    [       0] Sat Aug 16 11:53:16 2014 ERROR
    [       1] Sat Aug 16 11:55:50 2014 ERROR
    [       1] Sat Aug 16 11:55:50 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 11:55:50 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 11:55:50 2014 ERROR
    [       0] Sat Aug 16 11:55:50 2014 ERROR
    [       1] Sat Aug 16 11:57:07 2014 ERROR
    [       1] Sat Aug 16 11:57:07 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 11:57:07 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 11:57:07 2014 ERROR
    [       0] Sat Aug 16 11:57:07 2014 ERROR
    [       1] Sat Aug 16 11:57:54 2014 ERROR
    [       1] Sat Aug 16 11:57:54 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 11:57:54 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 11:57:54 2014 ERROR
    [       0] Sat Aug 16 11:57:55 2014 ERROR
    [       1] Sat Aug 16 12:03:05 2014 ERROR
    [       1] Sat Aug 16 12:03:05 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 12:03:05 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 12:03:05 2014 ERROR
    [       0] Sat Aug 16 12:03:05 2014 ERROR
    [       1] Sat Aug 16 20:18:35 2014 ERROR
    [       1] Sat Aug 16 20:18:36 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 20:18:36 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 20:18:36 2014 ERROR
    [       0] Sat Aug 16 20:18:36 2014 ERROR
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    748 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    746 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    744 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    742 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    740 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    738 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    736 Error rolling back command ARKCreateDirectoryCommand
    [       1] Sat Aug 16 20:41:43 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 20:41:46 2014 ERROR
    [       0] Sat Aug 16 20:41:46 2014 ERROR
    [       1] Sat Aug 16 20:42:27 2014 ERROR
    [       1] Sat Aug 16 20:42:27 2014 ERROR
    [       1] Sat Aug 16 20:42:27 2014 ERROR
    JavaScript processing failed with error:
    [       1] Sat Aug 16 20:42:27 2014 ERROR
    721 Error rolling back command ARKRegisterApplicationsCommand
    [       1] Sat Aug 16 20:42:27 2014 ERROR
    [       0] Sat Aug 16 20:42:28 2014 ERROR
    [       1] Sat Aug 16 11:53:16 2014 FATAL
    [       1] Sat Aug 16 11:55:50 2014 FATAL
    [       1] Sat Aug 16 11:57:07 2014 FATAL
    [       1] Sat Aug 16 11:57:54 2014 FATAL
    [       1] Sat Aug 16 12:03:05 2014 FATAL
    [       1] Sat Aug 16 20:18:36 2014 FATAL
    [       1] Sat Aug 16 20:41:43 2014 FATAL
    [       1] Sat Aug 16 20:42:27 2014 FATAL

  • DVR stops recording before show has completed

    I occasionally record a PBS TV show from my computer to my DVR box. When I watch the recorded show, the recording stops before the show has ended and I miss the ending of the program I have recorded.

    brorrell wrote:
    I occasionally record a PBS TV show from my computer to my DVR box. When I watch the recorded show, the recording stops before the show has ended and I miss the ending of the program I have recorded.Comcast has no control over when networks start or stop shows...  you can begin the recording earlier and stop it later if you so desire.... -=Ray=-

  • When i start firefox, it automatically does a search for I-play and displays an icon for I-play when firefox completes its loading. I dont want the i-play search to be done, but dont know how to get rid of it.

    I downloaded and installed the I-play program from their website, but then decided i didnt want it, and uninstalled it through windows 7 program and features. The I-play search issue began at the same time I installed the program, but didnt go away when i uninstalled the program

    To get rid of Bing Search Window..............
    Click on View tab / Tools and un-check 'Search' (alias for 'Bing')

Maybe you are looking for