Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7541557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:55:31+00:00 2026-05-30T07:55:31+00:00

I have a stacked sequence which runs 2 different tests continuously. Lets call them

  • 0

I have a stacked sequence which runs 2 different tests continuously. Lets call them test1 and test2. So it’s a 2 stage stacked sequence within a while loop. I have a button that says “Start Test1”, which jumps into the while loop and executes test1, test2, test1, test2, etc.
I want to add another button that says “Start Test2” which would start test2 first and then test1. So it would basically be changing the order of my stacked sequence to start executing test2 code first instead of test1 code (test2, test1, test2, test1, etc).

Is there an easy way to do this? Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:55:33+00:00Added an answer on May 30, 2026 at 7:55 am

    It has been a while since I used LabVIEW but here goes… I would try to replace the Stacked Sequence with a Case Structure. The Case Structure should have a Test1 case and a Test2 case; it would still be place inside of your while loop.

    The input to the Case Structure should be a 1 when you want to run Test1 first (or a 2 to run Test2 first). After Test1 is ran, it would output a 2 by feeding this value back to its input using a Shift Register in the while loop (shown here). Similarly, the Test2 case would output a 1 once it is done and feed this back via the Shift Register.


    Per Yair’s comment, my suggestion here is a common design pattern known as a State Machine, which, when drawn out, will look like a flow chart of your program. NI’s tutorial is written up here which in fact involves a case structure nested within a while loop. Hope it helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a a stacked bar plot using ggplot for which I'm trying to
I have a stacked bar graph to include in my paper, which is going
I have two horizontally scrolling UIScrollViews stacked vertically on top of each other within
I have a website that generates polaroid-like images stacked on eachother at different angles.
Basically, I have a listbox which contains a set of listboxitem (stacked horizontally). On
I have a stacked sequence and I want to duplicate a frame. However, when
I have three divs vertically stacked. Header, content and footer. All of them have
I want to draw horizontal stacked bar chart which will have two section. Is
I have two labels that are stacked. If I want a horizontal line between
I have a form that will multiple Panel controls stacked on top of each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.