Unable to put a timed structure in a parallel for loop, error -808

If I try to place a Timed Structure in a Parallel For Loop, the TS needs a different structure name per instance to prevent collisions. However, setting the Structure Name node  to something unique per instance doesn't work, I get error -808. Have I missed something?
Thoric (CLA, CLED, CTD and LabVIEW Champion)

That got me thinking - something to do with the number of compiled parallel instances.
Indeed, the compiler creates a number of parallel instances of the for loop in the compiled code (in my case 8), and uses the number requested at the Parallel Instances terminal (just under the Iterations terminal), which is set to 2. Therefore the compiler has created 8 instances of the Timed Structure, each in its own for loop instance, but they all have the same defined Structure Name. When launched, there is an immediate conflict because they can't share the same name, and error -808 is launched before the set Structure Name function can change it. Hence the error still shows when requesting only one instance, because the other seven still exist.
I guess this means you can't have Timed Structures (or Timed Loops for that matter too) in a Parallelised For Loop?
Thoric (CLA, CLED, CTD and LabVIEW Champion)

Similar Messages

  • Case Structure Nested in a For Loop

    I have two pumps. I want one pump to be running and the other pump to be off. Then as soon as the first pump stops I want the other pump to start. I'd like this process to repeat as many times as I want. The code I have now uses a case structure inside a for loop. When the iteration is odd it is false and even is true this determines what case is carried out. Right now I have a code that can turn on one pump, stop it, and immediately start the second. However, after the second pump stops the first one does not start again. I've changed the number of iterations and I can't seem to get the process to continue. The program keeps running but the pumps stop doing anything. Attached is a file of my code as well as two image files (one showing true case and other showing false) of the same code.
    Attachments:
    Test Code 1.vi ‏31 KB
    Case if True.png ‏37 KB
    Case if False.png ‏35 KB

    Your code has an inner while loop that checks for the status of the pump.  Since you set up a target volume before the while loops start, I assume that it is what the status checks to determine when to stop the while loop.
    When the the second iteration ends, has the volume for the first pump changed at all?  If it is still the same, then the status is still at the target which means it will immediately stop after starting.  You may also want to put some small wait statements inside the inner while loops so that the status isn't checked as fast as the CPU will allow it to run eating up CPU cycles.

  • Timed structure for output in producer consumer data acquisition

    Hello LabVIEW community,
    I have a bit of a problem.  I am writing a program that is primarily for data aquisition but has a few control features as well.  I need the program to aquire and write several channels of data at a relitively high speed.  The program does this fine ( in the top 3 loops fo the program).  I need the program to also send a seires of two output signals in response to a particular condition.  When a certain channel registers a value of above a specified number, I need an output channel to write an anologue signal for 225 seconds and then a signal of a differnt value to the same channel untill the condition occurs again (not for several hours).
     I put this action in a timed structure inside of a case structure. The case structure and timed structure are inside of a second consumer loop.  I have no idea if this is ligitimate.  This event takes much longer than any of the other loops which run at 1 or 2 seconds. When I exicute the program with "highlight exexutuion" this longer (case/ timed ) loop never executes. I asssume this has to do with the mismatch in time scales of this loop and the other loops in the program.  I also didn't really understand the help information on timed structures, so its possible that I just need better/ different inputs to the timed stuctures.  
    If anyone can see any obvious problem in the code or suggest a better way to do the output function I would really appreciate the help.  My code is attached.   
    Thanks,
    Jo

    I can't figure out how to fix your code, but I can point out the things I see wrong with it.
    1.  You are dequeueing elements from the same queue in the same loop.  In one you are not taking the element, and in parallel, you are taking an element.  I see that in your bottom two loops.  Why?  That code won't execute until the queue gets two elements in it.  And which dequeue gets it first and which gets it second is an arbitrary race condition.  So there is no certainly of order (first 4 vs. last 4 currents in the one loop), or which gets kept and which gets discarded (in the other loop.)
    2.  You are creating and/or clearing DAQ tasks in every loop iteration.  Tasks should be created before a loop, used inside the loop (read or write), then cleared once the loop is done.  Anything else is wasteful, time consuming, and could lead you to run out of resources.
    3.  You are using the STOP function which is pretty much like hitting the abort button on the toolbar.  No program should ever stop that way.  All loops should exit gracefully.
    4.  You have a data dependncy between your bottom two loops because of the boolean wire running from one to the other.  That bottom loop will only run once (if the value is True), or run forever (if the value is false).
    5.  Use of the dynamic datatype.  You are taking waveforms, converting them to a blue wire, then coercing them into another datatype such as just displaying a scalar in an indicator.  A lot of unnecessary conversions there.
    6.  Your thermometer indicators have a digital display you can make visible.  Then you won't need the separate numeric indicator to display the value.
    7.  For loop that runs only 1 time because of the constant wired to the N terminal.  Get rid of the For Loop.
    8.  Check your spelling.  The word "Temperatures" on the graph, and one instance of "distillate" is missing an "l".
    Until all of these problems are fixed, it is not worth talking about timing of timed structures.  Some of these problems were discussed in your other thread.  http://forums.ni.com/t5/LabVIEW/producer-consumer-missing-channels/m-p/3159757#M911255   But now it seems like you've made things even more complicated without fixing the basic problems.

  • HT1386 Unable to update due to apple icon stuck. Can't connect to iTunes due to unable to put in passcode

    Unable to update due to apple icon stuck. Can't connect to iTunes due to unable to put pass code into phone.

    Have a look at these threads:
    http://discussions.apple.com/thread.jspa?threadID=2572431&tstart=15
    http://discussions.apple.com/thread.jspa?messageID=12206661&#12206661
    I had the same problem. It appears that the servers chuck a hissy fit if you don't download your purchases in a timely fashion. I used the 'report a problem' feature in my iTunes account to contact customer support via email. They replied about 24 hours later, reset my download cue and the problem has now been resolved.
    Hope this helps you solve your issue.

  • I am unable to put new songs on my ipod

    I am unable to put new songs on my ipod. When I put new songs into my itunes, i see them just fine. I go to sync my ipod and it says "sync is complete" within seconds, so I know nothing has been synced. New playlists are also not showing up. Many of my default playlists show up multiple times(90s music, recently played, etc). I have the 30 gig ipod with video. There are about 20 gigs on it. Thanks.

    ok the manually manage music box was checked, I don't know how. That seemed to help. As long as I have you here perhaps you can help me with another problem that happens from time to time. My ipod likes to fall asleep when I'm syncing it. It goes to the apple icon on the ipod, stops syncing, and then starts back up again. The problem seems to go away when I restart the computer and/or itunes. I'll occassionally get an error message that says "the ipod "mullen's ipod can be synced. The required file cannot be found." Then I get the message at the top of the screen that says sync complete. In some cases it actually is synced! Any thoughts?

  • Hi guys have a problem with my ipod touch 4 gen i deleted my music and am now unable to put music on to my ipod. when i attache the ipod to itunes it says the music is still on my ipod any ideas thanks in advance.

    Hi guys have a problem with my ipod touch 4 gen i deleted my music and am now unable to put music on to my ipod. when i attache the ipod to itunes it says the music is still on my ipod any ideas thanks in advance.

    Do a reset of everything on your ipod. Then reconnect it and it should work.

  • PC/64/Windows 7/XIStandard recently installed/unable to put footer into document because I can't move to the bottom of the image when in footer application mode.  Display is at recommended 1920x1080.  Is there a solution or is it a flaw in the program?

    PC/64/Windows 7/XIStandard recently installed/unable to put footer into document because I can't move to the bottom of the image when in footer application mode.  Display is at recommended 1920x1080.  Is there a solution or is it a flaw in the program?

    Don't have a direct answer. But did you install the updates. They might resolve the problem.

  • When i log on to itunes it will tell me to review my account and when i do i click continue and it says my session has timed put and i have only been on for 2 seconds

    when i log on to itunes it will tell me to review my account and when i do i click continue and it says my session has timed put and i have only been on for 2 seconds

    Place the Device into Recovery mode...  See Here...
    http://support.apple.com/kb/HT1808

  • Unable to put youtube in full screen under nightly

    Hello, when I open a youtube screen under nightly I am unable to put any video in full screen. The full-screen icon does not work. Youtube works just fine (videos get in full screen mode) under IE or under Tor-browser but not under Nightly. I reinstalled my nightly, removed all the plugins but to no result and videos from other sites work juste fine in full screen.
    Could you helps me? Thank you.

    The Nightly version is intended for alpha- software testers, not for the general public. Since Nightly is updated daily, that could be a transitory problem which might be corrected tomorrow, or that could be something that will take awhile to fix.
    You might want to check the Builds threads over here to see if any other Nightly users have that same issue, and might have some suggestions.
    [http://forums.mozillazine.org/viewforum.php?f=23&sid=4830099dbc92b2104fde108ceef24770 MozillaZine Builds forum]
    ''Viewing the threads over there doesn't need registration, but if you want to post at MozillaZine you'll need to register there. ''

  • My screen is cracked and black how do i get my photos off of the phone if unable to put passcode in

    My screen is cracked and black how do i get my photos off of the phone if unable to put passcode in

    You don't not with a crack screen.

  • Unable to add field from structure maintanace opt for datasource(LBWE BI 7)

    Hi,
    while i try to add extra field (transaction:LBWE for data source(ex 2lis_02_itm)) from structure maintance option to add field from structure(MCEKKO) to res data source(MC02M_0ITM) , than it moves to left side but when make enter message comes that it will not populated in extrect structure(i.e in MC02M_0ITM OR RSA2),
    but when we try to add extra field other than with that structure maintanace form append structure option from that structure MC02M_0ITM than it comes in that structure MC02M_0ITM and also can see in RSA2.
    Than how can we use that structure maintanace option avialble for the res. data source in LBWE?
    Best regards,
    dushyant.

    It solved automaticaly,
    yes later i got that error entry still exit whic solved by deleting setup table and than try,
    thanks.
    one another problem: when i try to activate 0order_quan key figure for cube 0pur_c01 for data source 2lis_02_itm at update rulen by assignig source field for that key figure , i am unable to activate - its remain in warning symbol only and getting further message while check that Target unit and source unit for key figure Order quantity are different.
    Best Regards,
    dushyant.

  • HT1378 i am unable to put my ipod classic into disk mode. what do i do to reset/restore it?

    i am unable to put my ipod classic into disk mode. what do i do to get the red x tto go away and restore my ipod?

    imlockedoutofmyiphone wrote:
    I have looked at multiple websites; they all have the same instructions for putting your IPhone into recovery mode using ITunes.
    My computer was not downloading ITunes before, but I recently made it work. I turned my phone off, held the home button, plugged in the phone to the computer with ITunes already up. The little USB cord and ITunes logo showed up. The instructions said that a popup would say that ITunes had 'detected and IPhone in recovery mode', and from there I would be able to reset my phone. However, the popup never happens. I have tried this several times, and it's the same: I see the USB cable and ITunes logo on my phone screen, and in the corner of ITunes, a picture comes up of a phone with a little 'X' next to it. I clicked on the phone, on the X, but nothing works. The popup just never shows. I am unable to reset my IPhone because of it. I have not found any other way for me to reset my phone, since I didn't activate Find My Phone or ICloud.
    There is no icloud on an iphone 3, because you need IOS 5.0 or higher, the highest IOS is 4.2.1

  • Unable to put password in mail accounts

    I am unable to put the password in my mail accounts. It was working a couple of days ago but now does not have a password and as such cannot get mail.

    You might actually try just making a new folder, and dragging the emails into it (in Mail's sidebar).
    There is another way around this. In Mail's "File" window, select "import Mailboxes". Navigate to ~/Library/Mail folder, and select the accounts you want to import. Do this for each one (the folder to select will start with IMAP or POP). Then, Mail puts these in an "Import" folder on the sidebar in Mail. Now, disable the accounts.

  • Unable to put  Reason for Rejection for Return Sales Order

    Hi
    I am unable to put  Reason for Rejection for Return Sales Order.
    what may be the reason?
    Reg,
    Antaa21

    hi
    One of the possible reson could be, there is subsequent document created. Please check the VBFA table for document flow and see if there is any other document created for this line item, if yes then you have to reverse the same
    Check whether this field is maintained as DISPLAY only or not
    T-Code SE51(Screen Painter)
    Give Program Name SAPMV45A
    (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1
    and then select technical details)
    Screen Number 4441
    (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1
    and then select technical details)
    Select Attributes radio button.
    Go to Element list Tab. Inturn select Special Attribute tab in Subscreen.
    For Field Name "VBAP-ABGRU" Check what is maintained might be it is maintained as DISPLAY only.

  • I am unable to put photos from an incoming email into IPHOTO even after clicking on Add to I photo.

    I am unable to put photos embedded in incoming email into my IPhoto- even when I click on
    Save As and Add to I Photo. ANy suggestions? THanks.

    As a test launch iPhoto with the Option key held down and create a new, test library.  Try to import the photos from the mobile devices to test to see if the same problem persists. Does it?
    OT

Maybe you are looking for

  • How to I get iTunes to merge partial albums into a complete album?

    When I've brought a single before the album was out the album then lists all the tracks but not the single(s) already in itunes.  For example I have all tracks but track 3 is missing and displayed and played as a single and its missing if i play just

  • Memory Leak in Preview.app when switching Display Profiles

    I found a weird memory leak in Max OS X Preview.app, which manifests itself when Display profiles (color calbration) is change. I wonder if anyone else can reproduce my experience. 1. Open up "System Preferences" -> "Displays", switch to the "Color"

  • Find/Change function

    I used the Find/Change function to change a particular word's format from "regular" to "bold" and within a numbered list where the Find/Change function applied, it changed the font of the number to a different font not used anywhere in the document.

  • How to mapping domain tables

    Hi, I am new one to Kodo and have a question about how to mapping with FK of the domain tables. For example, the magazine table has a fk refering to publisher table. So, the Magazine object has mag_id (pk) and publisher (fk, object of Publisher). The

  • Fix It Tool for Offline PC

    Have downloaded Offline/Disconnected PC version of Microsoft Fix It Tool. When trying to run the program on that pc, the following error message appears: Troubleshooting cannot continue because an error has occurred. We're sorry, but the problem enco