How to program a loop to turn on or off

Hi all

I have the same code in two while controlling the four lights of loops. I use a case structure in each loop to pass two conditions (condition A and condition B).

Provided that A light 1 LED in the first loop and LED 2 in the second

Condition sitchecs B on 3 LED in the first loop and 4 LED in the second.

Each case selector receives a numeric value of a waveform.

OK, here's what I would ideally reach.

Have an On / Off button (or similar) connected to a terminal of two loops loop condition

If the button is enabled, loop stops 1 and 2 runs in a loop.

If the if off button loop 2 stops and loop a restarts... IE, I want the button to turn on and off the curls with the running program

Thank you

Greg

You can't do what you want unless there is a larger structure around all of this, but it is easier to make everything advises RavensFan. Unless there is more problem than what you told us, it's easier to have a loop that does two things that both loops that do one thing each.

Mike...

Tags: NI Software

Similar Questions

  • "How can I get Windows ' function Turn on or off ' to answer?

    When I open the tour function turn on or off the menu in Windows 7 Ultimate, nothing appears in the box that opens. What can I do?

    Microsoft has published an article in the knowledge base for this problem

    http://support.Microsoft.com/kb/931712

    If the problem is not resolved, you can try the methods in this article

    http://www.Raymond.CC/blog/fix-blank-or-empty-list-in-Vista-turn-Windows-features-on-or-off-optionalfeaturesexe/

    CheckSUR running results not additional problems, but I can't tell if the registry changes suggested works for Windows 7.

  • How to manage what programs open when I turn on my Mac

    How to manage what programs open when I turn on my Mac

    System Preferences > users and groups > Login. Unlock the padlock (bottom left), select the item you want to remove, and then click the sign less.

  • How to program a simple relay ON / OFF manually?

    Hi all

    Can someone tell me please how to program a simple relay ON / OFF using DAQ assistant? The user must be able to select

    which relay it wants ON / OFF...

    In fact, I want to turn on / off a MOTOR using the relay...

    I think he should be using outputs digital, but I'm sure about the hands-on...

    Can someone please suggest.


  • How to run a loop for 1 hour

    Hi all

    I am very new to labview and its components. I want to program a loop running for an hour.

    In fact, I would like to make it more user-friendly, by asking the operator to enter it here how long to run the code.

    Can someone offer me please how to do this?

    Please excuse me if I entered the wrong forum...

    Something like that

  • How will I know that I turned on Windows Defender?

    original title: Windows Defender?

    How will I know that I turned on Windows Defender?

    Hello, welcome.

    If please, go to the flag in the task bar and click on it, click Open Action Center, expand the chevron of security, spyware / malware protection-click see installed antispyware programs and you'll see it there. Don't forget that you have an antivirus, I'd say you Microsoft Security Essentials to http://www.microsoft.com/security_essentials/ , just click on this link. Note that if you install MSE, it will turn off Windows Defender by default.

    Kind regards.

    itconcerned

    PS - Give your feedback, please.

  • How to end a loop using hits/keypress in applescript?

    the value dFolder to '~/Desktop/screencapture/ '.

    the shell script ("mkdir - p" & dFolder)

    the value I 0

    the value x for the shell script 'date + %m %d - hour %M %S %Y' as string

    repeat 10 times

    define a shell script ("screencapture gif t - x" & dFolder & i & x & ".gif") as string

    Try

    say application "Image events".

    the value this_image to Open one

    this_image scale size 10

    Save this_image

    end say

    end try

    delay 3

    the value i to i + 1

    end Repeat


    Sample applescript with a screencapturing loop.

    Problem: How to end the loop using the key combination or keycode?

    Problem: How to end the loop using the key combination or keycode?

  • How do you turn CSA emails off

    How do you turn CSA email off?

    Go to each of the areas that you do not want to receive email from and click the button in the upper right corner. If you run the ad-blocking software, you may need to temporarily disable.

    If you wish, you can instead click here and completely turn off notifications by e-mail.

    (142951)

  • How to create a loop for an audio book?

    How to make a loop audiobook?  I saw him, but I'm not...  Or how to find a multitasking screen removed?

    Hello Mebing08,

    Thank you for using communities Support from Apple!

    Your question, it looks like you are looking for a repeat function in iBooks while you listen to an audiobook. If this is correct, it has no function of repetition in iBooks. I suggest you; However, take a look at the following article for more information on the functions of iBooks provides while you listen to an audiobook.

    Listen to an audiobook - iPhone

    See you soon!

  • How the program e-mail later in compare with Google GMail, especially in the treatment of spam or are both about the same?

    How the program e-mail later in compare with Google GMail, especially in the treatment of spam or are both about the same?

    Firefox does not include an email client. You ask about the suite Seamonkey? Seamonkey support options are here: http://www.seamonkey-project.org/community

  • How to turn the camera off when I get the picture?

    How to turn the camera off when I get the picture?

    How to turn the camera off when I get the photo I do my iphone 6 mute and when I get the picture give sound

    Some countries do not allow phones take pictures of silent.  iPhones sold in these countries do not allow the sound picture to shut up.

  • How to program my remote to work with a Bose Solo?

    I can't get it work using the typical method. Help!

    So I called Apple and they tell me that a Solo of Bose 10 is not compatible with the new AppleTV.  I don't know that I think that recital was compatible with the old AppleTV.  Anyone has an idea on how to program the Apple TV remote to control the volume of the Bose Solo 10?  Thanks in advance.

  • How to make the button to set the properties of auto-scale one of the Axes on the graphical indicator so I can turn on or off when I press on it. In the Labview web UI designer

    How to make the button to set the properties of auto-scale one of the Axes on the graphical indicator so I can turn on or off when I press on it.

    I need to change the adjustment vaguely Autoscale property for my graphic indicator. Can someone help me please.

    Thank you!

    Hello

    I have confirmed that there is currently no way programmatically enable/disable autoscaling for axes on the LabVIEW graphical indicator generator of the user Web interface. We noted this to possibly be implemented in the future; Sorry for the inconvenience.

  • How to program the pci-1429

    Hello

    My name is Mohammad khader and I'm with GWENAEL, we just bought the PCIe_1429 and I would like to know:

    1_ how that program us, are we to verilog, c or lapview only

    2 - the jury has fpga to program?

    3. can we have the Schematic of the Board so we can understand it

    4 - my goal is to image recognetion, we connect the card with a digital camera, take photo, and be able to recognize it, a suggestion how this can be made using this card?

    Thank you very much for your help, I really enjoyed.

    Khader

    Assalamou Aleikom Khader,

    If you read the manuals provided by Ajmal, you would see that to enter a request, you must install the Vision Acquisition accompanied by your capture card software.

    You can capture images using either NI LABVIEW, NI LabWindows/CVI or Visual Studio.NET via IMAQdx APIs provided with image acquisition.

    If you want to image processing, you can consider using murin Module NI Vision at the same time in the previous language that you choose. You can also find in the link posted a vision resources kit which is a good start in the development of machine vision applications.

    Screenshot

    It will be useful.

    See you soon

  • How to program the keypad to Boolean?

    I would like to press any keys on my keyboard and have this button turning on and off a LED. How can I do this?

    Thank you


Maybe you are looking for

  • Face time on iphone 7

    Hello Before buying the new iphone 7 or 7 and I want to know that the two devices have face time or not? Thank you

  • For some reason my photos are not appear on any Web site; no idea why?

    When the photos should be, regardless of the site, it is simply an empty space. It has been ongoing for one episode a week. Also, I'm a dunce of the computer, so hope to receive some answers type "answers for Dummies." Thank you!

  • Settings tab and options

    I am baffled by the sudden difficulty settings tabs options so windows is displayed correctly, and I don't understand all the explanations of the article. I noticed to use POGO who suddenly when you try to open a game in spades, the window does not o

  • MS Office has stopped working on Satellite C660

    Its the family version premium which was pre installed when bought last November.Everything has been great so far. I have not added any new software and tried to reinstall to factory settings but no luck. error message reads as follows: Cannot be ope

  • I have two partitions of hard drive Macintosh - why?

    Do you know why I have a Macintosh HD and a score of Macintosh HD2 beside windows, when I start the Boot Manager? Carbon Copy clone has it, or even Boot Camp? It must be some sort of a recovery partition. According to me, than he has ever been visibl