Timed loop running parallel with Queues

I was wondering if it is possible to have a Producer/Consumer Pattern with a timed loop that is not just executed when it is called by the queue or from the Producer Loop, but also executes the timeout after a given time.
Thanks in advance, Oliver
Attachments:
example.png ‏42 KB

lol
thank you Norbert great advice
I was so focused on wanting to use a Timed Loop that I totally forgot about the dequeue TimeOut
cheers Olli

Similar Messages

  • How do I run one vi that has a continuous loop in parallel with other vi�s

    I am currently attempting to run one vi that has a continuous
    loop in parallel with other vi’s.  When I
    run the program it hangs up in the continuous loop vi and does not execute any
    other steps in the program.  The loop vi
    is for temperature checking, control and recording once it reaches a certain temperature
    gradient.  The other vi’s are for other functions
    like pressure readings and flow rates, for example.
    Where am I going wrong and what can I do to fix this
    problem.  Thank you for your time and
    help.

    Here is a zip file with the vi in question.  The
    spraycooling6 and the TempStep5 both run fine alone but when I add the TempStep
    to the Spraycooling6 it only runs the TempStep and hangs up the program.
    I'm new to LabView and know that the code is probably not optimized for some
    functions.  In addition, this is still a work in progress for me so this is
    not the final vi.  Again, thank you for you time and input I
    appreciate it.
    Attachments:
    Spraycooling6.zip ‏137 KB

  • Running parallels with windows xp. want to upgrade my Quickbooks to 2013, but it will not recognize the disc.  Help!

    running parallels with windows xp and OS X Lion.  Trying to upgrade my Quickbooks on the windows side to the new 2013 version.  The windows side does not even recognize the disc.  What am I doing wrong?

    S that QB edition is only for windows 8. It won't run on any earlier version of windows.
    Looking at the QB 2013 system requirement it runs on XP.
    http://support.quickbooks.intuit.com/support/articles/INF21187
    So the version of windows is not your problem. Your problem is the virtual machine is not se to use the mac dvd drive. Have you looking into the machine settings. Not windows settings, the virtual machine settings. Make sure it is set to connect the mac dvd drive to the virtual machine.
    A good place to start would be the parallels help system. Not the windows help system.

  • Xserver Cluster running Parallels with Win2003 Guest OS

    does anyone have any experiance with this ? I dont believe that Parallels is cluster aware, however I am not completely sure of the actual operation of the OSX cluster environment. if the cluster is truely Grid Engine from sun , then I have my answer, however if the OS runs as one monolythic server rather than MPP channels, then what I am planning will work. any insite on this would be tremendously helpful.
    you might ask why I would want to do such a thing. lets just say it's a love hate relationship with Bill, or we could call it the Peace Button on a Marine's Flack Jacket, .. "I guess I'm just trying to make a statement about the duality of man"
    Or maybe I am just trying to create a flawless Windows Environment...{hehe}

    Your "stream of consciousness" writing is rather hard to understand.
    To answer your question... no Parallels is not cluster aware. It actually can only really pass one CPU core through right now.
    VMWare Fusion beta does support Windows 2003 Server and multiple CPUs, but it's in beta. But you'd get 4 CPUs at least.

  • I operate MacBook Pro w latest version of OS Maverick.  Also run Parallels with VM of XP.  Bought Win 8.1 Pro w DVD.  The DVD does't mount and eventually says the DVD is blank.

    How do I get MacBook to recognize the DVD and permit Parallels to create a new Virtual Machine using the W 8.1 Pro DVD?

    Question for Parallels documentation, forum, their own FAQ and Knowledge Base.
    Even Windows on Mac support for Boot Camp has instructions, Boot Camp Assistant will create a flash drive (no one is using DVDs).
    http://www.apple.com/support/bootcamp
    This forum does not deal with MacBook Pro, but with Mac Pro (tower)
    http://forum.parallels.com/forumdisplay.php?58-Parallels-Desktop-for-Mac

  • Running Parallels with Bootcamp

    Hey guys. I was really wondering whether i should buy Parallels or just use Bootcamp. I was going to play some games on my new MacBook Air so i just thought of Bootcamp, but somebody told me that you could install Parallels and Bootcamp. I could experience both worlds! Cool!
    Anyways, here are my questions. I hope you can answer them!
    1. If i read correctly, i heard that you can use Parallels based on your bootcamp partition. Am i correct?
    2. Does that mean i only have to install Windows once? And i can only have one part of my hard drive used for Windows, instead of 2 if i use Parallels and Windows separatly?
    3. So basically, whenever i use Parallels based on my bootcamp parition, am i using Windows basically on bootcamp at the same time? (please tell me if you want to understand what i'm saying, i might not be clear here)
    4. So when i use Parallels do i have all the stuff that i will have on my Bootcamp parition? Like all my files and games and whatnot?
    Thanks!

    1. yes
    2. yes
    3. yes
    4. yes
    Read the instructions for doing this on the Parallels or Fusion site. Both explain how to do this.

  • Share cluster data between 2 timed loops

    What is the best and safest way of sharing cluster data between 2 timed loops running. I could use locals, but that is risky, would shared variables work better? All I need to do is modify a couple of datatypes in a cluster that both threads use.
    Thanks...

    You could go the LVOOP route and create a singleton object. The object can be passed to parallel tasks an dsince it is singleton they will all share the same value. Ue of a DVR inside the object would allow you to have a single copy of the data. Your class would also give you the necessary accessors for reading/writing data.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Timed Loop timing source - Control Loop From Task is too slow

    I'm trying to make a Timed Loop run at a period of 2 ms, with an analog input task running at 50 kHz as timing source. The input analog signal is scaled and fed into a synchronised analog output task on the same multifunction DAQ board. Using the built-in 1 kHz or 1 MHz clock as timing source for the Timed Loop works great, except for a slight time lag between the loop and my AI/AO tasks which over time becomes unacceptable because my task will be running for up to an hour. However, when I use the DAQmx Create Timing Source: Control Loop From Task vi to create a timing source, everything slows down and the fastest loop time I can get is around 20 ms. Any suggestions to get around this would be highly appreciated!
    System: LabVIEW RT 8.0 with DAQmx 8.0 running on an NI PXI-8186; NI PXI-6251 used for analog input.

    You're welcome!
    You can build an array, and if your data is not hugh (100's of MB) this may be the easiest solution. However, we aways suggest implementing the Producer/Consumer Architecture. Keep the PID in the Producer loop, but move the File IO to the Consumer. Also, it  appears that your instrument uses some form of serial communication, so that could cause lags in your system....
    What is your application about in general, what performance are you hoping for, etc?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • Timed loop inside a flat sequence not terminatin​g

    Inside a while loop there is an event structure.  Inside that there is a flat sequence.  On one of the frames there is a timed loop that quits after so many iterations.  The timed loop finishes but the flat sequence doesn't execute the next sequence.  What am I not doing right?

    First, you have too many local variables.  This could be leading to race conditions.
    I think you have a couple problems in the use of event structures.  It is a bad idea to put any long running code inside an event case.  It will prevent the Event Structure from handling any other events in the mean time.  You have several timed loops running that in that one sequence frame.
    But the bigger problem is the next sequence frame.  You have a while loop that only ends once all the queues are empty.  Can you guarantee that all the queues get emptied?
    You have laid out the code very neatly, but you have used a lot of odd things in there.  (Number to boolean array, to cluster, to unbundle the cluster to individual indicators.)  Why not just go from Boolean array to and index array function.  No need for the intermediate cluster conversion.  Why not set up the indicators as an indicator array and just write to them directly.
    The code is so much intertwined between when queues are created, filled, emptied, destroyed, events happen...  And this is all multiplied by at least 4 times for each camera.  And there are 4 major event structures going on.  This is a very ambitious project for an inexperience LabVIEW user.  You need to step back, get one thing working right, and design so that you can scale the architecture upward.  Many of the structures you have essentially duplicated and belong in subVI's.

  • Controlling processor on the timed loop

    Controlling attributes of a Timed Loop does not seem very straight forward to me! I experience crashing my VI very often when my Timed Loops are featured with controlled period and sometimes processor and offset on their next iterations. Of course there are queues between the Timed Loops, too. Not yet sure of the cause of the frequent crash!

    Hi Siamak,
    Good Morning and I hope your well today. Thanks for your post.
    I have seen you have received no support so far.
    Can I ask if you have carried out any further troubleshooting of the issue? Have you got a simple example peice of code which reproduces the crash? 
    If you think its your wide application - how have you design it? 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Priority limits on a timed loop

    Hi,
    With reference to the value of priority in a timed loop, the help says that this value must be between 1 and 65,535.
    Anyone know what these limits are referred?
    Thanks for your time...
    Solved!
    Go to Solution.

    amflores wrote:
    Hi,
    With reference to the value of priority in a timed loop, the help says that this value must be between 1 and 65,535.
    Anyone know what these limits are referred?
    Thanks for your time...
    Timed loops run in a dedicated execution system at a priority above high priority but below "Time Critical"  if there is more than one timed loop running the timed loops priority value is used to signal the OS which loop should get the larger amount of processor time. The lower the number the higher the priority requested.  Some OS's even respect that number.  Some do their own scheduling anyway. 
    Jeff

  • Is it better to run parallels alone or bootcamp?

    I had an older MBP and at first i was running bootcamp alone with my autodesk inventor software. Then i happened to buy and install parallels and everything ran perfect!
    Within the last week I upgraded to a new MBP with a faster processor and twice the ram. This time I did not run boot camp, just installed parallels alone... Now my inventor software is lagging and seems much slower to respond to commands. If i partition my drive with bootcamp and run parallels with it will it speed things back up? I am new to the parallels software so I'm not sure what would be the best choice. I just know I love using parallels, makes my life much easier when things run up to speed..

    New computer means your Windows OS needs to be prepped or a new install - new hardware = new activation license.
    Using a partition gives you option to dual boot. Also you are not using a VM image file which is limiting.
    Most people want to run 3D and processor/graphic intense software natively rather than in a VM but if Parallels suits you, fine.
    Were you using Parallels 10 and 10.10 before? I think you should upgrade to the new version as the older versions of Parallels are not optimized for Yosemite which also plays a big role and another reason it is sluggish.
    I believe in clean install - any OS, whether Mac or Windows, the end result is a more stable, faster, performs better with fewest possible bugs or glitches.
    When you used Boot Camp you also had to install Boot Camp Apple drivers for 'that' Mac which might still be there, but missing the drivers for your newer rMBP too.

  • How to pause and restart a timed loop in Labview

    I am trying to pause and then restart a timed process (series of stepd that happen at precise times), which is implemented using a timed loop.
    I was wondering if anybody out there can give me a hint.
    Thanks

    Roxanne,
    Well, it's not exactly a "pause", but here's a way to stop and re-start your Timed Loop.
    See the attached example in LV2010.
    A While Loop and a Queue are used to allow you to start and re-start the Timed Loop.
    The "Stop Timed Structure" vi is used to stop the Timed Loop.
    Releasing the Queue stops the While Loop when you end the program.
    Note that the example is very similar to the NI template "Producer/Consumer Design Pattern (Events)". (File>>New)
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    timed loop.vi ‏39 KB

  • Parallels with XP on a mac OSX server

    Can I install and run Parallels with XP pro on a macPro running OS X server without issues? Is this a no-no, or is it being done?? Just wanted to ask before condidering the purchase. Any feedback?

    There are services out on the internet that offer cross-platform checking of websites.
    One that I know of is http://www.browsercam.com
    Give them a try.
    -Gregg

  • Performing a regulation with two loops in parallel

    Hi,
    I'm using two loops running in parallel to make the regulation of a voltage through the automatic control of a motor. In the first loop I read all the time which is the value of my actual voltage. There's also a subVI inside this loop that looks if the voltage is within the specified limits and if not, calculate in which direction and which is the optimal speed of the motor to continue regulating in order to achieve the desirable value. The actual voltage, the direction of the motor and the actual speed are stored in a global variable.
    On the other side I have a loop with a machine state that at the beginning initializes my motor (I control it with serial communication) and it's reading the direction and speed glob
    als and sending this information always to the motor until the first loop detect that our regulation has finished, and the machine state of the second loop stops the motor, and close the serial port.
    In both loops I have a Wait(ms) command, 250ms in the first one (every voltage acquisition needs about 210ms) and 100ms in the second one (I just wrote this times without no idea, just to try them).
    The thing is that this program is working most of the time perfect, BUT for some reason from time to time the subVI get hanged and I have to kill LV. I don't know if my problem comes from the timing in the loops or maybe because in some cases I'm writing and reading to one of the globals at the same time and I get a collapse. Could somebody help me? If I need some kind of semaphores or syncronization issues, could you send me an example? I'm using LabVIEW 7.0.
    Thanks in advance,
    Angel

    The technique you are using is called a functional global variable, and it's generally better programming practice than using a normal global variable. The only potential problem I see is if you are concerned about loosing data. If you just want to send the current values to the motor then you are fine, but if you need to send a command to the motor every time the values are updated then you should consider using a queue. With the functional global you still have the possibility of changing the value in the first loop twice before the second loop ever sees it, or reading it twice in the second loop before the first has had a chance to update it. If this situation wouldn't be a problem then you should be just fine.
    Regards,
    Ryan K.

Maybe you are looking for

  • XSLT Auto-mapping in 10g

    Hi All, I am working on XSLT in 10g(10.1.3.4), Also I would like to use auto-map option available in Jdev. currently mapping is done as below, <ProductName> <xsl:value-of select="ProductName"/> </ProductName> But I would need each node encapsulated w

  • Activation of sub-totals button in ALV grid

    hi experts Execute the module pool program BCALV_GRID_DEMO .in the o/p screen - how to activate the subtotals button explicitly.

  • Issue with sys_connect_by_path

    Hi all, Let me preface this post with I'm new to Oracle, using 10g, and mostly a self taught SQL person so it's not my strong suit. The overall goal is I'm trying to find folders within an area of our document management system that haven't been touc

  • How to view BIW  data in XML format

    hi guys ...              just wondering if it is possible to view BIW data in XML format ,if yes how .                     I am looking to pass this  XML formatted data in to another server. venkat

  • .PDF on Internet Exploder

    I am unable to figure out how to get .PDF's to show up in Internet Exploder 5.0 and 5.5. Although the doc says the "icon in the upper left corner" was fixed in 5.01, I am still having problems. Netscape 4.75 works fine with no configuration whatsoeve