Is there a way to run a For Loop independen​tly within a While Loop in LabVIEW 2013?

In my program I would like to run a For loop inside of a While loop, and have them run independently, at their own execution rates.  As a test, I wrote a simple VI with a While loop with 1 second timing, and into this I inserted a For loop with 3 second timing.  I created indicators for both iteration terminals.  Upon running the VI, I found the While loop waits for the For loop to run N times before the While loop executes again.  I also found that sometimes the first iteration of the For loop will end at 1 second rather than 3 seconds, and the STOP button to terminate execution of the While loop does not always work.
Solved!
Go to Solution.

ksinks wrote:
Thanks, how would you synchronize the loops?  I have gone through the Getting Started exercises and manual.
Why would synchronization matter? Did you want them to run independantly at their own speed or not?
Regardless, there's a synchronization pallette with functions for this, as Occurance.
Other solutions include a common loop counter and a case structure executing every X'th iteration, or having the faster loop send a queue or event every X'th loop that controls the slower loop.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • Is there a way to run a program designed for PC on my Mac?

    I would like to use the Firearms Management System offered by one of my suppliers on my Mac but the only operating system shown to use is with is Windows. Is there a way to run it on my iMac?

    Sure, many:
    (Borrowed from Kappy)
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • Is There a Way to Run a Redo log for a Single Tablespace?

    I'm still fairly new to Oracle. I've been reading up on the architecture and I am getting the hang of it. Actually, I have 2 questions.
    1) My first question is..."Is there a way to run the redo log file...but to specify something so that it only applies to a single tablespace and it's related files?"
    So, in a situation where, for some reason, only a single dbf file has become corrupted, I only have to worry about replaying the log for those transactions that affect the tablespace associated with that file.
    2) Also, I would like to know if there is a query I can run from iSQLPlus that would allow me to view the datafiles that are associated with a tablespace.
    Thanks

    1) My first question is..."Is there a way to run the
    redo log file...but to specify something so that it
    only applies to a single tablespace and it's related
    files?"
    No You can't specify a redolog file to record the transaction entries for a particular tablespace.
    In cas if a file gets corrupted.you need to apply all the archivelogs since the last backup plus the redologs to bring back the DB to consistent state.
    >
    2) Also, I would like to know if there is a query I
    can run from iSQLPlus that would allow me to view the
    datafiles that are associated with a tablespace.Select file_name,tablespace_name from dba_data_files will give you the
    The above will give you the number of datafiles that a tablespace is made of.
    In your case you have created the tablespace iwth one datafile.
    Message was edited by:
    Maran.E

  • Is there a way to run Motion and Final Cut Pro on Separate Machines?

    Is there a way to run Motion and Final Cut Pro from the same Final Cut Studio license on separate machines? We hadn't realised when we bought Final Cut Studio that it wouldn't allow this. Our editor doesn't use motion, and while I mainly use After Effects on our motion graphics machine, I was wanting to try using motion for some particle effects. Unfortunately, it won't let me open it while Final Cut is running on our editor's machine. I can understand not letting two copies of same application run under the same serial number at the same time, but it would be nice to be able to use both programs that we own concurrently. At very least it would be good to warn you that this isn't possible in the product description, not in some fine print license agreement once you have already bought the software.
    -Matt

    I do not know of any software, in any platform that can operate from the same license over a network simultaneously.This is the exact reason for the existence of Volume Licensing. If for example a project ran in each one of the included applications from different sources that were not an active network, I doubt you would have a problem.Like, doing a project at work and geting the outcome with the Powerbook at home...Sorta!

  • Is there a way to run Internet Explorer on a Mac mini with mountain lion?

    I need to access a professional website that only works with IE (don't get me started on THAT) I need to do billing using this site so need to have full functionality.  Is there a way to run IE on my mac mini with mountain lion?

    The key takeaway here is that yes, you can access Windows 7 (and IE 9) from OS X Mountain Lion.
    The crucial question is about your workflow. If you need concurrent access to both Windows 7 and Mountain Lion, then the Bootcamp solution included with Mountain Lion would not be the right choice. You would need one of the virtualization solutions.
    If you need helpdesk support from a paid product, rather than entirely from a community forum, then the latest Parallel's Desktop or VMware would be a matter of choice, with Parallel's the better decision at this point. Either of these products are under $100, in addition to the cost of a Windows 7 license. You may need the Windows 7 installation media as an .ISO file, rather than on DVD. Check requirements.
    By example, I use Oracle's VirtualBox (free) on Mountain Lion, with a Windows 7 Home Premium 64-bit guest. The interactive and network performance of this Windows guest are more than adequate on my 2011 mini. I assigned 3 GB memory and 2 of 4 processor threads to the Windows 7 guest. I also restricted guest CPU use to 80%. VirtualBox is installed on my SSD, but the Windows guest is on an external HDD. That is not a default configuration. There are multiple choices for display; from full-screen 1920x1200 (mine) to an isolated resizeable window, to seamless integration with OS X. The Apple keyboard, bluetooth devices (trackpad/mouse), and printer all are recognized. I also have a shared OS X folder with VirtualBox, and copy/paste integration.
    I use VirtualBox as it meets my support (forum) and functional requirements.
    Best wishes,

  • Is there any way to run abap program in dialog process with process chain?

    Hi.
    I just want to run custom abap program in every 30min.
    so I made process chain and connect abap program.
    but it returns NOTHING when background running.
    the program has ABSOLUETLY no problem when it's running DIALOG process.
    custom program is modified from sap standard program for my use.
    so complicated and hard to read that I cann't figure out what's problem in backgound job and even hard to debug in background process.
    is there any way to run abap program in dialog process in every 30 min.?
    or call BSP page or call function.
    any solution will be helpful that excuting PROGRAM or FUNCTION or BSP PAGE in schedule job and should running dialog process.
    thanks.
    Lee.

    Hi,
    did you try using sm36 transaction?
    1Give these values in Gereral data
    Create one sample job "SAMPLE JOB"
    Priority "A"
    Execu target - Your application server
    2Click start conditon
    schedule according to ur requirements.
    3.Click Step button
    Give your ABAP program name.
    fill variants if it has any variants.
    if it is useful assign points
    Regard,
    Senthil Kumar.P

  • I forgot my password and email Forgot your private cloud small my daughter and I can not use the device jewelery Is there another way to run the machine?

    I forgot my password and email Forgot your private cloud small my daughter and I can not use the device jewelery Is there another way to run the machine?
    I hope there is a solution to this problem note that I can not use the iPad now

    Your question makes no sense and I'm not sure if you typed very quickly and autocorrect went nuts on you, or if you are not a native English speaker and Google Translate didn't work properly. If you are saying that you forgot the passcode to unlock the iPad, follow the instructions here.
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • Is there any way to run Classic on an Intel mini running Tiger?

    Due to space limitations, I'm having to retire my old faithful Powermac 6500. It's hard to believe that it's 10 years old. It's running OS8.6, and can run OS9 even though it seems slow and memory intensive.
    Is there any way to run Classic mode on my Intel Core Duo mini? It's hardly a matter of life and death, but I still have several older Mac-based games like Railroad Tycoon II and Myst that I enjoy, and they won't run on the newer mini.
    If space wasn't a problem, I would keep the old machine running just to play games, but it's not possible now.
    Any assistance would be appreciated.
    Thank you,
    -Bill

    The only way is to install (free) emulator programs such as BasiliskII or SheepShaver.
    I have both installed, though I only use them to run older programs to rescue old data from obsolete formats.
    Installing and configuring them is not trivial, unfortunately.
    Links here:
    http://basilisk.cebix.net/
    http://gwenole.beauchesne.info/projects/sheepshaver/
    I don't know if either is suitable for the kind of games you want to play. Graphics is typically where emulators fall behind. But again, I have no experience with those games.

  • Is there a way to run an earlier version of OSx on mavericks

    I have some hardware from work that can only run on OSX.6 or lower, but my mac has OSX.9.  Is there a way to run OSX.6 on my machine to accomodate the work hardware?

    If your computer shipped with Lion or above, no, except for running Mac OS X Server inside a product such as VirtualBox, Parallels Desktop, or VMware Fusion. Note that an emulated OS is unlikely to work with that component; the same thing which allows it to boot(no direct access to hardware), probably will prevent it from using the device.
    (113360)

  • TS2446 I have window xp is there another way to run and install the icloud

    I have windows xp is there another way to run and install the icloud

    Your question makes no sense and I'm not sure if you typed very quickly and autocorrect went nuts on you, or if you are not a native English speaker and Google Translate didn't work properly. If you are saying that you forgot the passcode to unlock the iPad, follow the instructions here.
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • Is there a way to run a 2005 PreSonus Firebox(with the firewire) to a mid-2011 iMac 0SX 10.7.2? It says its no longer supporting Power PC? Anything I can do without spending more money on new equipment or a new computer? Please help me.

    Is there a way to run a 2005 PreSonus Firebox(with the firewire) to a mid-2011 iMac 0SX 10.7.2? It says its no longer supporting Power PC? Anything I can do without spending more money on new equipment or a new computer? Please help me.

    Nevermind, I got it working.
    I ended up extracting the new vob within MPEG Streamclip, which gave me an m2v and an aiff audio. I multiplexed those two back together in FFMpegX which gave me a complete VIDEO_TS folder with BUP and IFO files I needed.

  • Is there a way to run a external ssd with my mid 2011 iMac hdd in a raid configuration and basically have a fusion drive

    is there a way to run a external ssd with my mid 2011 iMac hdd in a raid configuration and basically have a fusion drive

    A Fusion Drive is not a RAID; it's a CoreStorage logical volume group. While it's technically possible to do as you suggest, there would be little or no benefit from it.

  • I was recently burglarized and lost a bunch of Apple products. Is there a way to get receipts for items purchased with my apple id?

    I was recently burglarized and lost a bunch of Apple products. Is there a way to get receipts for items purchased with my Apple ID?

    Yes if you go to http://store.apple.com/ on the top right under the search it will say "Account" or your first name. You will click or tap that and you will click "check order status" sign in. After you do that in the middle by the order date and number it will say "print invoices" and as long as your item(s) have been ship you will be able to see and print your invoice receipts. you can view items purchased in the last 18 months.

  • Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice

    Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice.
    I'm fixing a Numbers document that I use in business daily that's become overly complicated, but while I want to clear/delete a number of cells in it to clean it up, I'm not sure if those cells are being used as source for other formulas on the page. I don't have to open all my formulas one by one to see if that cell is in there, do I?! That'd be a huge amount of work if I wanted to eliminate say 10 cells to search each formula on the page to see if it is in there or watch all the cells when I delete that cell to see if the numbers change! There's got to be an easier way! Right click doesn't seem to be any help.
    I don't want to damage my daily tool to make it cleaner and reorganize it. Is there really no way to do a reverse look-up of which formulas a particular cell is in?! Any time I click on a formula it highlights all the CELLS in that formula. Why can't I (or can I?) do the reverse and see all the FORMULAS that contain a particular cell?
    As a Numbers document ages or gets used frequently, you can sometimes forget which cells are tied to which formulas. You just look for the results of your formulas. Would be a nice thing to be able to do. Thoughts? Work-arounds? Answers?

    Answer would be no unless application provided such feature. Numbers does not as far as I know.
    Note that even if you have complete list of formulae used in a table, identifying formulae referencing any given cell is not simple.
    E.g., cell T20 is referenced not only in
    =T20+1
    but also in
    =SUM(T)
    =SUM(20:20)
    =SUM(S19:U22)
    =OFFSET(S1,19,1,1,1)
    =INDIRECT("T"&(10*2))
    In order to identify such formula, we have to actually evaluate it to see if it references the given cell. Especially such formula as OFFSET() and INDIRECT() may not be found by static parser because their parameters can be dynamic.
    Sorry to be the bearer of bad tidings.
    H

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

Maybe you are looking for

  • Invoice Payment Error

    Hi Guys, I am facing the following issue. We are posting a vendor down payment in F-48. We are trying to process the open items in F-58 and when we are posting, we are getting the following error. "Deferred Tax : Post Invoice and Payment Seperately $

  • Error while  adding records in user defined table

    Dear all,                 I am adding a record in user defined table using   .add() method. the code is given below. while adding it raises the following error "-1[Microsoft]  [SQL Native Client] [SQL Server] Conversion failed when converting the nva

  • Error in importing install_root.xml

    Hello Experts, We are installing Sourcing 7.0 system on Windows 2008 CE 711 with oracle 11.2.0.1DB. While importing install_root.xml file from DBIMPORT we are experiencing error in the step 'Install Platform System Data' The error is AssociatedAttrib

  • Check Duplicate invoice

    Hi everyone, Generally the system currently uses the keys to check for duplicate invoice in FB60 ( vendor number, invoice date, invoice number and invoice amount. MIRO only checks for three keys (vendor number, invoice number, and invoice date). Is t

  • Error entering decimal values

    I am entering a fee value on a contract template (Oracle Lease Management) in the amount of 11.70 and I'm getting an error telling me that "11.70 is not a valid number. Please re-enter". It works in one of our other test environments. So, wondering i