Simulation loop inside subVI inside a simulation loop

First of all, let me just say, I've got to hand in my work in 24 hours so please any help will be appreciated.
I've got a simulation loop inside a subVI inside a simulation loop. If I give the inner loop enough time to run, i.e make its duration smaller than the time step of the outer simulation loop. Shouldn't everything run smoothly? Or is this just a no-no with labview?
Thank you

Hi VicMackie,
This help file on the properties of the Simulation Loop is likely to help you out.
I believe from you posts that you're wanting the loop to run every second.
Therefore you want to check "Synchronize loop to timing source" and set your 1kHz clock or set a 1kHz <reset> so that it'll reset on every invocation of the loop. From your post, I understand that you've already done this.
As the period is in milliseconds, for a period of a second you'd want to set your period to 1000 milliseconds, which is the default (1000).
I'd recommend leaving the step size at the default for now and just modifying the Timing Parameters tab to confirm whether the loop will execute every second if you set the period to 1000.
Best wishes,
Tori
Student

Similar Messages

  • Last value from a loop and values inside the loop

    Hi
    Sorry about the confusing heading above, but its late at night and better words do not occur to me rightaway. Let me explain my situation.
    I have a single instrument (a voltage source) that is being swept from one value to another for an experiment. It has three VI's : 1. enable o/p. 2. Set a voltage output level. 3. diable o/p.
    I am using the error in and error out pins of instrument vis to properly sequence operations. I connect the error out pin of VI 1 to the error in pin of VI 2. Each of these errors is a cluster of three values.
    When I try to wire the error out from VI 2 inside the loop to VI 3 outside the loop, the wiring breaks as I am then trying to connect an array (a 1 dimensional n member array of error outs) to a single error in pin. Trying to connect it to an array outside the loop is obviously the same. (I am making an assumption here - while the loop is running, I do not need to make certain of the sequencing of operations by putting a feedback node on VI 2 - that would mean something quite different in any case.).
    So, how do I pass the last value (in this case, the error out cluster from the last stage) to error in pin of VI 3 ?
    I have read that it might be possible using shift registers. I am quite new to LabVIEW. A somewhat detailed description of what I need to do would be nice.
    Thanks.

    Hello,
    There are basically two options:
    Handle the errors outside the for-loop
    Handle the errors inside the for-loop
    For you solution 1 is the easiest achievable, after the for loop use the 'Merge Errors' VI this will change the 1d-array into a cluster. The downside is that if an error occured later states of the loops don't know this
    Solution 2 uses the shift register you mentioned. To use this you have to right-click on the right hand-side tunnel of the error wire (where it leaves the for-loop) and select shift register, sequentially your mouse pointer changes into an downpointed arrow, click on the entry tunnel on the left of the for-loop. What happens is that an error in the for loop is remembered into the next iteration (use execution highlighting to watch these)
    Here is some code:
    A good start might be:
    The link to the LabVIEW Learning Center is here
    Ton
    Message Edited by TonP on 09-25-2006 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏5 KB

  • Execution conflict between a SubVI and a while loop

    Hi,
    I have wired the conditional terminal of a while loop with a boolean control. The same boolean control is responsible to terminate a SubVI (not inside the while loop) which also contains a while loop (I am using a reference to the control here). When I first use the boolean control, the SubVI is being terminated, but the while loop in the main VI is not. In order to terminate the main VI, I have to use the boolean control once more. In order to avoid that, I created a "status"-indicator within the SubVI, which is set to true once the SubVI is terminated, and wired that from outside the main VI's while loop to its conditional terminal. Of course, now the while loop does only execute once the subVI transmits the status value.
    The thing is, I want both the while loop to execute before the status value is being transmitted (so, only the conditional terminal is supposed to wait for the value) and use the boolean control only once in order to terminate the VI.
    Any ideas?

    Ok.  I kind of expected to see this.
    First of all, change the "Control: Mouse Down" event into "Control: Value Change".  DO NOT USE  A LOCAL VARIABLE!!!  Wire the result straight out to the termination terminal.  You want something like this:
    Your writing to a local is a race condition.  The control was read before you wrote to it.  Therefore the loop was going an extra time around.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Stop loop.png ‏13 KB

  • Time loop problem when add a parellel subvi in another time loop

    I have four time loops in parellel, they work find
    without any problem. However when I add a third party
    Vi as a subvi in parellel inside a another time loop.
    The first four time loops start working eraticly.
    Is there any way I can make them work independently
    time wise. There is no data transfering between any
    of the loops

    Hello
    The VI with the timing loop is set to cycle once every second, and all it does
    Is turn on a boolean light indicator off and on every second. It has a boolean
    inverter connected to the shift registers of the loop. Its priority is set to Normal.
    The third party VI interacts with a spectrometer hardware. The spectrometer measures
    The amount of light and transform the data collected by the spectrometer into digital information, which is then passes to LabView. LabView then compares the sample information to a reference measurement and displays the processed spectral information.
    The timing loops of the main VI is manually set by me the user.
    The timing loops would loose its sequence; the loops would run normal for a couple
    Of cycle the
    n either run fast or run slow. If I take out the third party subvi everything
    Runs fine
    I am using windows XP with LabView 7.1
    Attachments:
    Dr_Grady_Solinoid_HM_3.vi ‏129 KB
    USB2000_SUBVI.vi ‏238 KB

  • While loop in subVI

    Hello
    I have a doubt about using while loops in VI and subVI. I have a VI, with two loop that are executed in parallel, and stoped with the same button, by using property nodes and references. One of the while loop executes a subVI.
    If the Block Diagram of the subvi there is a while loop covering all the code, it's the same to put it in the main VI with another while loop, or it's not necessary?
    it's the same if this subVI has a while loop covering itself that if the subvi doesn't have this while loop because the loop is in the same VI?
    Thank you very much

    Hello,
    I hope I understood you correctly... In general, it's better to use sub VIs to organize and modularize your code. So, if you can separate part of the code into a sub VI, do it.
    And if your main VI is calling the sub VI in a loop, the sub VI executes every iteration of the loop. So, you do not need a loop in sub VI, normally. But it depends on what exactly you are trying to do.
    Use the Execution Highlight mode (the light bulb on the diagram toolbar) to see how the code gets executed, and make changes accordingly.
    Regards,
    Khalid

  • How to stop execution in while loop without stopping execution of other loops in the same vi

    HI
    I am quite a novice in Labview.
    I have a problem in my project. I used a while loop inside my vi to build an array of ten values along with other loops. Then I used a stop button to stop manually the while loop. But it seems like the loop doesn't stop in the middle of the array building and so other loops in the vi doesn't work until the while loop finishes building the array and as soon as while loop execution is over, the complete vi stops. But all that I wanted was to build the array using the shift register along with the control to stop building array anytime. And not to stop execution of other structures when the while loop finishes.
    Can anyone help me?
    Rahul

    Hi Rahul,
    Modified ur Vi to work with single button.
    But the subtract case is not in any loop.
    So, once both the loops stop, the subtract case will execute only once. Depending on state of subtaract boolean at that time, corresponding case will be executed and the Vi will stop.
    so think of a logic where u can put this also in a new loop.
    Or you can also incorporate it in one of the two loops and pass the other loop's data to it.
    Let us know how you will proceed in this regard
    I am posting your VI as well a VI with my modifications VI in Labview 7.0 so that Thomas can give his suggestions too
    Plus, always keep a time delay in your while loops.
    Oh sorry, the "arrayinouttestnewfinal.vi" is the modified vi
    Regards
    Dev
    Message Edited by devchander on 01-10-2006 06:15 AM
    Message Edited by devchander on 01-10-2006 06:19 AM
    Attachments:
    arrayinouttestnewfinalnew4.vi ‏59 KB
    arrayinouttestnewfinal.vi ‏63 KB

  • GB won't open- This is what I get... Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser

    Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser.  Then I get this message...
    Instrument Library Invalid
    GarageBand Ecpects a valid instrument foledr in /Libraty/Application Support/GarageBand
    Please choose a valid instrument Library folder or quit and re-install GB
    Any solutions?

    Is this a new installation of GarageBand or has it worked before on the same computer?
    Or have you transferrred your GarageBand from a different computer?
    The error message is saying, that your GarageBand installation is incomplete. There are essential foldrs missing in your system library. 
    Check, if indeed both folders are missing or if only the permissions are set incorrectly.
    Your system library (the folder "System" directly on your system drive) should have the following folders inside the folder "Audio", and they need to be readable by the system and by administrators.
    And in the folder /Library/Application Support there should be the Instrument Library.
    If these folders do not exist (or no longer exist), restore them from your backup-  If your GarageBand version is a new installation, the application may not hve been downloaded or installed completely, then reinstall GarageBand.
    What is your GarageBAnd version, and how did you install it originally?
    Regards
    Léonie

  • Loops are installed, but not in Loop Browser

    Hi All!!
    I have just bought the four (newly packaged) GarageBand Jam Packs. I was so impressed with the demo "song" Victory (Full), that I have decided to use those loops for a project I am working on.
    The "Victory" loops all play in the loop browser (all 137 of them) when I have "Victory (Full)" loaded for playback in GarageBand.
    But.......
    When I start a new project, the Victory loops are not available in the loop browser. This is rather perplexing for me.
    What do I need? I need to find a solution to see these loops and maybe others that are missing (but not missing).
    Thanks in advance for your help.
    Rodger GW

    Yes. The demo song is in D, and I have ensured that I have set the new song to be in D.
    I have also trashed the preferences, trashed the indexes, rebuilt the loop browser by dragging the loop folders from all sources (sources being those defined by the install script), and ensured that the Keyword Browsing is unckecked and I have reset the keyword layout.
    The only thing I have not done is the laborious task of importing each of the 137 Victory files into the the track window then translating each individual part as an Apple Loop. The reason for this is two fold: 1. I am on the lazy side of life and think there should be a quicker way; and 2. I have checked the other files contained in Library -> Audio -> Apple Loops -> Apple -> Jam Pack 4 - Symphony Orchestra are available in the loop browser under the Jam Pack 4 and the Loops Pull Down Menu.
    I am very unsure of the next thing to try.
    Rodger GW
    PS I have even tried to have those loops from the "Victory (Full)" file be selected as favorites. They now reside in Home -> Library -> Audio -> Apple Loops -> User Loops -> SingleFiles, but do not appear in the Favorites tab in the Loop Browser in any new project.
    Thanks in Advance,
    RGW

  • NAT outside to inside and inside to outside (in 8.4(2) version)

    Thanks a lot and i attached a diagram here
    Requirement:
    need to pass through traffic from outside to inside and inside to outside.
    I also attached a diagram with the ip 
    and also tell me one thing that natting is only for private to public or public to private.

    Hi,
    I think i replied on your post earlier as well.
    As per your query , you can NAT any kinds of IP(Public or Private) into any kind((Public or Private)).
    For Bidirectional traffic , you always need static NAT
    When you want Uni Directional Traffic , you can use Dynamic NAT/PAT.
    For the Inside to Outside Traffic , you can use this NAT:-
    object network LAN
    subnet 0 0
    nat (inside,outside) dynamic interface
    FOr Outside to Inside Traffic , you would only want access for certain Servers. Just like Internally hosted Web Servers
    For this , you can either use , Static PAT/NAT:-
    object network host
    host 10.10.10.10
    nat (inside,Outside) static interface service tcp 3389 3389
    access-list outside_inside permit tcp any host 10.10.10.10 eq 3389
    This will enable you to take the RDP access for your PC from the internet.
    Is this what you want ?
    Thanks and Regards,
    Vibhor Amrodia

  • Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    raise your I/O buffer and raise your Process Buffer Range.
    Logic Pro>Preferences>Audio>Devices>Coreaudio

  • HT201496 Hai there. I am facing trouble with my garageband apple loops.i don't see apple loops in my browser since quite some time i don't know what has happened to it and how it happened . i just wanted to learn some of basic things about music.can you h

    Hai there. i am having a trouble with the garage band apple loops to get into my macbook pro. . i had it some time back and i dont know where it has gone and how it get it back. is there anyone to help me to get the loops back into the browser . i will be grateful to you if some one can help me with it/ thanks.

    First check, if you do not accidentally have hidden or filtered your loops:
    Uncheck the "Filter for more relevant results" option in the Audio tab of the GarageBand Preferences.
    And the drop down menu on top of the Loop Browser should be set to "Loops", not to some Jam Pack or other collection.
    If you still don't see any loops, check if you have set your project to a special signature, like 9/8, for that no standard loops do exist.
    Then check, if any loops actually are installed in your system Library: Depending on your GarageBand version you should find the standard loops in the Audio folder of your system Library (Application Support > GarageBand):
        Your System Drive > Library > Audio > Apple Loops
    If the Loops are installed, but GarageBand does not show them, you need to rebuild your Apple Loops Index: See the FAQ for how to do it:
    Re-Index GarageBand's Loops
    This requires two steps:
    erase the old Apple Loops Index by deleting everything in
    Your System Drive > Library > Audio > Apple Loops Index
    and then rebuilding the Loops Index by dragging the folder containing all of your loops onto the Loop Browser in GarageBand.
    If no Loops are installed in your Library, you will have to restore them from your Backup.
    Regards
    Léonie

  • When I open Garage Band '09 it says" No Apple Loops found; There are no Apple Loops installed on your System. Please reinstall the Apple Loop Package".

    I have garage band '09 on my mac.  When I open garage band a little notice pops up saying "No Apple Loops found; There are no Apple Loops installed on your System. Please reinstall the Apple Loop Package"  I have followed the instructions on the apple web page and it didn't work.  I looked in all of the locations on my mac and all of the folders that should contain apple loops are empty.  Is there a way I can redownload the apple loops to my mac without buying garage band '11 or one of the jam packs????????????????

    swimmerT wrote:
    I have followed the instructions on the apple web page and it didn't work.
    without knowing what you did, it's impossible to guess what might be wrong
    swimmerT wrote:
    Is there a way I can redownload the apple loops to my mac
    no
    swimmerT wrote:
    without buying garage band '11 or one of the jam packs????????????????
    yes!!!!!!!!!!!!!!!!!!!!! reinstall GB 09:
    http://www.bulletsandbones.com/GB/GBFAQ.html#reinstallgb
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Question about NAT Inside Source, Inside Destination, and Outside Source

    I read the Cisco command references about "ip nat inside source", "inside destination", and "outside source", but couldn't have a clear understanding of how to associate the commands with "ip nat inside" and ip nat outside" configured for interfaces.
    Does "ip nat inside source ..." translation only happen on the interface configured as "ip nat inside"?
    Since NAT is a bidirectional action, what's the difference between "ip nat inside cource ..." and "ip nat inside destination ..."?
    I've never used "ip nat outside source ...". In what cases would it be needed?
    On an interface where there are NAT translation and also other actions such as policy map or IP Sec crypto map, would NAT happen before or after other actions?
    Thanks for help with any questions.
    Gary

    Hi Gary,
    The following documents may help you to understand some of the terminology:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094831.shtml
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094837.shtml
    Also, the following document has a clear explanation of the order of operations when using NAT:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080133ddd.shtml
    Hope that helps - pls rate the post if it does.
    Paresh

  • I need a MC to loop that is inside a MC...

    I would like play head of a movie clip to return to a certain frame of that clip so a MC inside it would loop. I now have: stop(); as the action.
    Thanks

    That is not a very clear description of what you have and what you want.  Can you provide a more detailed explanation?

  • Set a container element inside class to exit a loop

    Hi,
    I want to set a container element inside a class to exit a loop.
    The element is marked as import/export parameter and the binding from the task to the container exists as well.
    The loop has a condition  &finish& = X but I cannot exit the loop. Looks like the value gets never updated in the container.
    When i am using a container operation to set the element its working but i want to do this out of my method in the class.
    Is it not possible to change a container element inside a loop without using a container operation?
    Thanks,
    Christoph

    Hi,
    Using the container operation is a good method to solve the problem. But if you intend to do that in the method coding itself then you will have to have it as the export parameter of the method. You can view all the import and export parameters of a method by going to the Business Object Builder (SWO1) and then choose the method and click on the "Parameters" Button. Once you are done with the interface of the method use that method in the workflow builder as a task and in the binding there are two rows. One for the import that occurs just below the container elements and the export parameters appear below the import in a separate window. Make sure you have the binding set there too as this is where you can transfer the container elements back to the workflow container from the task container and it should work. Maybe you are missing that in the binding.
    Hope it helps,
    Sudhi

Maybe you are looking for

  • JSP page messes up when there is an error with one file.

    Good morning/afternoon/evening. I am not sure if this a JSP or error handling or XML type question and so I have posted here only. I have a JSP page that loads a series of XML files, the only problem is that if one file has incorrect syntax then the

  • HT204204 Error invalid number when trying to send a TXT message

    While trying to send someone a TXT on craigslist, I inadvertently sent a TXT to a 7 digit number. I received back the following message (Where <XXXXXXX> is the 7 digit number I tried to TXT). I'm using an iPhone 6 (brand new) with the latest iOS. Han

  • IOS 8 - FaceTime in Landscape (via HDMI Lightning)

    Hi, Since updating to IOS 8.0.2 (Using a 2 month old iPhone 5C), we have been unable to correctly use FaceTime on our television using the Lightning to HDMI adapter. The phone sits on a dock in a landscape position, and the phone's own display shows

  • How to I add credits and slogans at end of movie

    how to I add credits and slogans at end of movie?   also an intro   please

  • How can I change the new ical theme?

    I have downloaded the new Lion version and it comes with this really ugly ical leather theme...I want to change it back or just change it to something else....I have 6 different calendars since I am operating a salon and the new colours aren't as bri