A problem with delays in timed loops and DAQ

I am programming a simulation for nuclear rewetting for a visitor centre at my company in Switzerland. It involves heating a "fuel rod" and then filling the chamber with water. The pump automatically starts once the rod core reaches 750C. After this, a requirement stipulates that flow rate be checked to ensure the pump is operating at the necessary conditions. If it isn't, the heater must be shutdown to avoid, well... meltdown. However, we must allow 10 seconds for the pump to respond, while still allowing a DAQ rate of 10-100Hz.
The challenge is that I can't add a delay in my main loop else delay all acquisition, but I can't figure out how to trigger a peripheral loop (with DAQ for the single channel of checking flow) from the main loop, and when the peripheral loop determines if flow has initalised, respond back to the main loop with the okay.
I think much of my confusion is in the interaction of the loops and the default feedback nodes that labview is putting in willy nilly. Would the only solution be to have two 'main' loops that don't communicate with eachother but rather do the same thing while operating on different timing? Tell me if you want me to post the file (although its on an unnetworked computer and I didn't think it would be too useful).
Thanks+ Curran
Solved!
Go to Solution.

Here it is! It is not in any form of completion unfortunately.
So reading in the temp with NI9213 and watercolumn height with NI9215, we determine to turn on the pump with NI9472. NI9421 determines whether the pump is on (there is flow) and I must respond accordingly.
I have 3 scenarios similar to this one as well, so having redundant loops with different timing like I mentioned would be way to heavy. I think I may have though up of a solution? At the time the pump is initiated, we record the iteration and wait for a number of iterations that correspond to 10s to pass before fulfilling the pump shutoff requirement?
Attachments:
rewettin1.vi ‏15 KB

Similar Messages

  • Problem with two parallel While loops

    I have a serious problem with controlling two parallel While Loop. Here is the deal:
    I have written a VI to send a series of commands called Cycle through Serial Port to a custom hardware. One of these commands is setting motor pressure by sending it's command and changing it's voltage. After setting desired pressure I have to read and control motor pressure, again through serial port in a parallel loop. There is a Pressure Sensor in system and I can obtain current's motor pressure by sending a command and receiving pressure value. In the first While loop I send some commands to hardware including Pressure Setting Command trough a state machine. In the second While Loop I read pressure value and then decide to increase motor voltage or decrease  it. Now the problem is in communicating these two loops. In cycle after "Init" state when state reaches "Pressure 2 Bar" motor voltage will increase. Meanwhile I have to control this voltage in parallel While Loop. As you can see I used Local Variable to communicate between these two loops. The problem is that loops are not synchronized. Specially when I switch to "Pressure 3.8 Bar" state during cycle running control loop (second while) is still working based on "Pressure 2 Bar" state not 3.8 bar. Because of this motor pressure goes to 3.8 bar for a sec (becuase of  "Pressure 3.8 Bar" state) and comes back to 2 bar (because the second while still has not gotten that new state,most probably cause of all the delays in the loop)  and after couple seconds it goes back to 3.8 bar.
    I really don’t know what to do. Is there a way to fix this? Or I should consider a better way to do this?
    I went through Occurrence Palette but couldnt figure out how to embed that in the VI. 
    Sorry for my poor English. I attached VI and it's subVIs as a LLB file. I can explain more details if somebody wants. 
    Attachments:
    QuickStartCycle.llb ‏197 KB

    I make it a point to NEVER have a WAIT function inside a state machine.
    It sort of defeats the purpose, which I define as "Examine current state; decide whether you've met the conditions to advance to another state, then get out".
    For example, I have a single state machine VI controlling four identical instruments, via TCP connections.
    For some functions, that means issuing a command, waiting 60 seconds, then reading results.
    If I waited INSIDE the state machine, then it's tied up waiting on one device and cannot handle any others.
    Not a good plan.
    To handle this, I have a loop which calls the state machine.  After issuing the command, the state goes to "Waiting on Response", and there is a target time of 60 seconds from now.
    It's called over and over in that state, and each time merely compares NOW to the target time.  If NOW is past the target, then we read the results.
    the state machine can tell the caller when to call back; that's how I distinguish between an urgent need and nothing-to-do.
    By having the CALLER do the waiting, instead of the state machine itself, the state machine is free to handle another device, or do something else on the same device.
    You should be calling the state machine over and over and over anyway.  So, have the state machine "control the pressure" on every call, and THEN examine whatever state it's in.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • I have problem with delay in serial port

    I have problem with serial port. I have connected two computers by serial port and I need to create program in Labview for transfer strings using start bits and stop bits. My problem is that my program is working quite well ...when I press start bit it starts to concatenate strings and if i press stop bits it stops...this is the purpose of this program...but problem is that it working only with delay...and need that this program dont need delay, because it can only concatenating data depends on delay from start bit....I wana solved problem with delay...I dont want using delay process in my program, but allways when I try to delete this delay it stop works correct
    here is my program

    Ok this should be simple - if I understand you correctly.
    You have the VISA session initialized with read termination character enabled.  So reading the number of bytes at port is NOT the correct way to read from the port.  Set the read number of bytes to something large (say 4096) and the read will return as soon as a termination character is received (or timeout).
    You'll need to make sure the sending device is configured to send termination character on writes (you can set that with a VISA property node)  and that you are sending the correct termination character.  The default is 0x0A (newline).
    Jeff

  • Problem with Xsan 2.1.1 and Mac Os server 10.5.6

    Hi,
    We have a big problem with xsan 2.1.1 and Mac Os server 10.5.6.
    - We have one server, is a Open Directory Master, and also is a metadata controller of xsan2. The Volumes of xsan2 are shares via afp, and the clients (moreless 50) connect with server via afp.
    - We have some problems, one of them is:
    odm fsm [341]: XSAN FSS 'VolDocs [0] ' : Invalid inode lookup: 0x7f80000000007e0 markers 0x0/0x0 nextiel 0x0
    This message is always in the log. We stop the volume, and start cvfsck -wv, but dont have anything, how fix it??
    - Another problem is with AFP service, suddenly the service stop, and the error is :
    mds [58] (error) Server: Mach error queueing checkin to peer manager: (ipc /send) invalid port right.
    -What of the meaning of (ipc/send) invalid port right??.
    And the last error is:
    -com.appelAppleFileServer [347] MDSChannelPeerRequest: (ipc/rcv) timed out.
    Need Help please!.

    My configuration:
    - Master Directory:
    Hardware Configuration:
    Model: Xserve
    Processor: 2x2,8 Ghz Quad-Core Intel Xeon
    Memory 8 Gb
    Disk: 70,04 Tb
    Software:
    Kernel Version: 9.6.0
    System Version: Mac OS X Server 10.5.6
    Xsan 2.1.1
    Services: AFP, DNS, Open Directory RADIUS
    Status: connected Users: 37
    This server is the open directory Master and metadata controller of xsan2, but we have another server that is open directory replica and metadata controller of xsan2. The fisrt server have too many errors with afp, the service stop and the server is dead, and you must restart via terminal with the command sudo reboot. I dont know what happen, do you help me please?

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • Problems with creation of catalogue XPGrpwise and temporary

    Problems with creation of catalogue XPGrpwise and temporary files.
    I use GroupWise 8.01 and WinXP (SP2), OpenOffice 3.1.
    Why at opening files in Library, temporary files are not created in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\XPGrpwise, and created in catalogue C:\Documents and Settings\Jon Smith\My Documents. That causes problems. How to change a situation that worked as it is necessary.
    Catalogue XPGrpWise is created and leaves duly in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\.

    Cvetaev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • HT4009 Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I wan

    Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?

    Contact iTunes Store Support.

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Performance Problems with MS IE 6.0 and EP 7.0 (2004s)

    Hello,
    we have a problem with ie 6.0 webbrowser and EP 7.0 (2004s). When we open for example the theme editor in the ep-system-administration site we must wait with MS ie 6.0 webbrowser ~ 18s for the site opening. With firefox 2.0 we can open the theme editor with ~ 1s.
    Have/Had anybody the same problem? - Or is this a knowing problem with ie 6.0.
    We used for the network analyse the tool: httpwatch 3.2. We can see, that the ie 6.0 must wait into the all-time of 18sec. 13sec for opening the site: emptyhover.html.
    - Thanks in advance for a tip !
    Best Regards,
    Ralf

    Hello Ameya and hello Shao,
    we use the version SP12 NW 2004s. We have the this problems with a base application of portal: theme editor.
    We can see in the httpWatch 3.2 analysis tool, that the ie 6.0 load a much of cache files from the client webbrowser. Could it be this problem? - I red in this forum problems with the webbrowser-parameter: "Empty Temporary Internet Files folder when browser is closed"
    Thank you for your helping.
    Best Regards,
    Ralf

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Problem with installing Photoshop elements 9 and adobe support advisor

    Hi, I've received a graphic tablet with 2 programs: the first has been downloaded and works perfectly while the second, PSE9, has been giving me problems for at least a week!
    I downloaded it and now I have a winzip file full of strange things (one of this is set up exe which tells me that I have to install adobe support advisor) and two files which said 3DF.tmp and PSEP9(1).zip.download and if I try to click them they tell me that I have to find on the Net the program to open them because I can't. And I don't know which program is required.
    I tried a lot of times to download the adobe support advisor, I have enough space on my disc and my farewall is deactivated, but when the program begins I saw this annoyant message
    cpsid_82829s5 Missing installation file bootstrapper error occured
    with this code for a support from adobe 00-67325-032018052012
    I unistalled it and retried, but nothing.
    Please, I just want to use my tablet with the programs which are comprised in the package, why it's so difficult to download this damn photoshop elements 9????????????
    Thank you

    In the error message it doesn't tell me
    "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again,"
    neither "Installer failed to initialize. File not found. Please download Adobe Support Advisor to detect the problem."
    and I have enough space and I have Windows xp then I should be able to install it. I tried to unistall and install again the support advisor but nothing. I'm desperate.
    Messaggio originale----
    Da: [email protected]
    Data: 18/05/2012 22.20
    A: "Questionlady"<[email protected]>
    Ogg: Problem with installing Photoshop elements 9 and adobe support advisor
    Re: Problem with installing Photoshop elements 9 and adobe support advisor created by Jeff A Wright in Trial Download &amp; Install FAQ - View the full discussion
    Did you try the steps listed in http://helpx.adobe.com/creative-suite/kb/troubleshoot-error-messages-b ootstrapper-cs5.html which was identified by the Adobe Support Advisor?  If so can you please list each step and the result of those steps.  This will allow us to best advise you on your next steps.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4420419#4420419
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4420419#4420419. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Trial Download &amp; Install FAQ by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with QT 7.1.5 and Sorensen codec?

    Has anyone noticed a compatibility problem with Sorensen video 3 codec and Quicktime 7.1.5? This problem did not seem to exist in prior versions (hence have been asking how to reinstall previous version but seems impossible). Some of the earlier postings discuss software that may be designed with Sorensen codec... these may be the ones not functioning properly now (video no longer works). Does this sounds plausible?
    Mac Mac OS X (10.4.8)
    Mac Mac OS X (10.4.8)
    Mac   Mac OS X (10.4.8)  

    That may be true, Jack, but Edmund said that the movie played in QuickTime Player. So his problem is most likely not a bug in QuickTime, though I can't say for certain.
    And as I said above, I have no problem playing Sorenson-encoded content on my Intel-based Mac with QuickTime 7.1.5, so more details about your content and setup (including any third-party codecs you may have installed) so that people can determine what the difference might be between the content that plays and the content that does not, or what's different in the systems, would be helpful, I'm sure.

  • I have a problem with Safari: when it opens and I go on google, it opens a page that says: PLEASE UPDATE INTERNET EXPLORERE.   What should I do?

    I have a problem with Safari: when it opens and I go on google, it opens a page that says: please update internet explorer!
    What should I do?

    It's a scam. Have a look at this thread:
    https://discussions.apple.com/thread/6058094?tstart=0

  • I'm using mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts- I didn't have any problems with it before the upgrade and in safari I don't have this problem.

    Hello, I'm using Mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts… I didn't have any problems with it before the upgrade and in safari I have no problem with it. please help me- I don't like to use safari a my browser...

    elly903 wrote:
    Before commenting - I CANNOT install Mavericks because it'll mess up the versions of Filemaker Pro and Quicken that I use regularly...
    Quicken 2007 for Intel (Snow Leopard, Lion, Mt. Lion and Mavericks) for $15:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    It will input your Quicken PPC data file directly if it was Quicken 2005 through 2007.  If older you need Quicken 2006 or 2007 PPC first to convert your data file; and this update must be done BEFORE you upgrade to Mavericks:
    http://quicken.intuit.com/support/help/patching/quicken-2006-manual-updates--mac -/GEN82200.html
    Filemaker Pro PPC (in this case 7) running in Snow Leopard Server installed into Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]
    Snow Leopard Server: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)
    This solution allows you to run your Photoshop Elements in Mavericks concurrently with Filemaker Pro PPC.  Mavericks is a free download.

Maybe you are looking for