Does two timed loop work together? is it possible....

Hello
I use Crio in scan mode and have problem with timed loop.  I use two timed loop for two different PID loop. I need to get 1ms delay for PID loop. But When I two run realtime side with timed loop, only one of them work (when ı send command from host side). Is it possible to run two time loop 1ms. How can I configure each timed loop work together properly? (ı configured the each time loop as synchron scan enginee 1ms)
Both array are used for sinusoidal position data form host vi. I use time delay (1 ms) to make certain frequency with sample size(I adjust sample size for 1000 for 1 hz 500 for 2 hz).Each loop control  to position of servo system with PID. So I use two VI in my host side and I send two different sinus data with array. I tested with one timed loop it works vey well. But When I try it two time loop it dosent work.
Attachments:
RT TEK.vi ‏105 KB

Two loops in parallell is quite easy, you just need two unconnected loops. If there's a wire in between you get data dependency which means the 2nd loop will wait until the 1st one finishes.
Is that what happening to you? (I cant open the file)
/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

  • Who know the difference between the two Timed Loop structures in NI's examples named PAC Simulation.vi?

    My LabVIEW version is LabVIEW 8.0.
    When I look up the help document about Timed Loop, I find two examples about Timed Loop with the same file name and different file path.
    One is "labview\examples\general\plat-timedloopframes.llb\PAC Simulation.vi",
    and the other is "labview\examples\general\timedloop.llb\PAC Simulation.vi".
    The function of these two examples is almost the same. But they display different results when running. I debug them and find that the value of Actual Start [f] of these two timed loop is different. Its value is constand in one vi and increasing in another vi. But the configuration of these two timed loops is the same.
    Can anyone tell me the diffrence between these two timed loops?
    Thanks!

    After I posted this, I realized there was one more "Time" clock, namely the Time node on the Event structure.  How is this clock (which I will call ET, for Event Time) related to the Global Start Time (or GST) and the TimeStamp (TS)?
    ET represents time in milliseconds, using a U32.  The largest value that can be represented is roughly 4 billion, but there are more than 30 billion milliseconds per year.  Hence this "clock" cannot directly keep the same time as the GST or TS.
    However, on the PC, if you multiply the ET value by a million (thereby converting the time to nanoseconds) and compare this value to GST, you'll see they are basically the same.  Thus, on the PC, ET and GST are "in sync", but not in sync with TS.
    On a real-time PXI system, we already established that TS and GST are "in sync" -- what about ET?  Curiously, this does not seem to be synchronized with anything.
    A Word to the Wise -- when I originally added the Event structure, I synchronized it with the Timed Loop using a Value(Signalling) property node, which worked fine on the PC, but failed to fire on the PXI.  I'd forgotten that you can't use this trick on real-time systems, as they have no Front Panel objects, hence the implementation using Dynamic Events. 
    Attachments:
    TS GST ET VI.png ‏16 KB

  • How can I have two VI that works together?

    How can I mix two VI that work together ? Does it work with Flat Sequence Structure or something's?

    I've always wondered about that bracket-thingy, but I've been able to get along without it, so I don't worry about it any more.
    Why would you want to try to program a doubly-charged carbon ion (C++), anyway? It's just going to find an oxygen ion or aromatic ring to react with, no matter what you do. You're sure not going to steer it towards another cation without going to Fermilab or CERN (Yes, I understand they use LabVIEW there).
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Two while loops working in parallel at the same time

    Hello, how can I run a .vi with two while loops working in parallel at the same time? . I want that when I run a vi both can be activated o desactivate, but I can't get it. What can I do?
    Thanks a lot.
    Luz

    Here are some links for state machines.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/c7​4cec177a289dbd86256c4e00600196
    http://zone.ni.com/devzone/conceptd.nsf/webmain/8C​4EECACF084F8E986256802007B9186
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/137​47
    http://sine.ni.com/apps/utf8/niepd_web_display.dis​play_epd4?p_guid=B45EACE3DE6756A4E034080020E74861
    http://sine.ni.com/apps/utf8/niepd_web_display.dis​play_epd4?p_guid=B45EACE3E1E956A4E034080020E74861

  • Two timed loops separate but connected

    Hi,
    I have a simple Data Acquisition setup where I read 32 voltages, and write them to file.  I want my front panel to update the displayed voltages every 2 seconds, but only want the same values to be written to file every 5 minutes.
    I've tried nesting one timed loop in another, but the displayed values update at the same time interval as the write to file (Write-to-file loop nested in main timed loop). 
    I've also tried creating one timed loop for the display (2 second interval) and a separate timed loop for the write to file (5 min interval).  However, while the display updates, the write to file does not work.
    I just want two timers working simultaneously, but one gets data from the other after 5 minutes.
    Sorry if this is a repeat post, but I couldn't find answers elsewhere.
    Thanks in advance,
    Walter Kaminski

    Hello:
    You can use a single while loop an a couple instances of the Elapsed Time Express VI. You configure it to send you a boolean true when the time you specify elapses. Then configure one of them for 2 seconds and the other one for 300 (5 minutes). Use the output "Elapsed Time?" to control the selector of a case structure so that when the time elapses, the action you want executes.
    I attached a small example.
    Let me know if it helps.
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0
    Attachments:
    Time Intervals.vi ‏64 KB
    time invervals.JPG ‏38 KB

  • Two CalType not working together

    Hi,
       I have one pricing procedure. I have created two 971 & 981 routines (CalType) as per my requirements. The issue is that both the routines are not working correctly if they are assigned together is the pricing procedure. But if I assign any one of them only then they work work together.
      I tried putting the Break-Point in both the routines and found that the control is passed to the first routine i.e 971 only and not 981 when it's corresponding condition type is entered.
      I have activated both the routines nad executed the report RV80HGEN also.
      Kindly advise a solution. Thanks

    duplicate question... please ignore

  • Two Mini's Working together = More power?

    Hey, i bought a mac mini when they first came, and i recently have aquired another mac mini and have no idea what do to with it. Is there a way to connect the two mini's so they can work together as one computer? Im inexperienced when it comes to networking and connecting computers and such, but what options do i have with two mac minis? Thanks

    Oh yes lots of uses for a second Mini. The simplest thing to do is treat it as just more disk space. Share a folder.
    Do a google on VNC. It's the free version of Apple remote desktop. With this you can access one Mini from the other. One CRT/keyboard/Mouse and two computers
    Set up one Mini as an iTunes server and connect it to the stereo. Remove the monitor and control it remotel using VNC
    Other uses. Set up one as a webserver and/or router.
    If you use Gimp (or any other X11 program) for image editing then you can do the crunching" on one computer and the dispaly on the other.
    Experiment with Linux, it would run very well on a Mini

  • Timed loop works not well

    Hi,
    how can I get a digital signal shorter than 25 microseconds? I am using
    a RT-system, and I am using a timed loop with the internal clock, but I
    can't get it faster than 25 microsecs.
    Thanks
    Tim

    Tim,
    Sorry I don't know much about RT but you may find a better response to your questions if you post in the real time forum.
    http://forums.ni.com/ni/board?board.id=280
    Brian

  • How Do I get my two routers to work together?

    I have had a wrt300n 1.1 for years and it has worked wonderfully.  I have upgraded my cable to docsys 3.0 and I purchased a new modem and a D-Link825 dual band wireless router.  The problem I have is that the DIR-825 does not support xbox360 and WiFi for my droid.  The Dir-825 will not even accept the MAC address of my Droid.
    So,  can't  I use the DIR-825 for the gigabyte wan connection to the internet, disable the DHCP on the DIR-825 and use the WRT300n set up as the DHCP server use a cat5 cable to the D-Link and let the D-Link do everything else as far as the admin part of  the net goes?
    D-Link says they are working on the issues but who knows how long that will be.  I still have until the 30th of Sept to return the D-Link for a RMA.  So if you have any other suggestions as to a better router setup please let me know.  I also will be remotely administering this router and I want a secure connection through https for the remote.  I have tried using the Netgear WNDR3700 but the admin is very lowsy and not encrypted.  The access control is horrible.  I have a teenager that I have to restrict access to or they will stay up all night on her ipod and xbox.
    So fire away with any and all suggestions.  I have been a loyal Cisco fan for years because of the superior admin abilities of their wireless routers.  Additionally I have a MFC HP Printer I will use a Linksys sus4 printserver to or I may just get a wireless adapter for.  This was why I went to the DIR-825, they are the only WAP that had a usb capable of printing ant for a NAS.
    I am an MCSE so be as technical as you want, but I am not that familiar with the wireless admin.  I have looked at several more expensive routers but I am hoping to put together something more reasonbly priced than the $300.00 SOHO options.  Although that may be the direction I go.
    Thank You
    Joseph

    If you want to Cascade this both the routers to each other then you can follow this link and it will help you in cascading this both the routers.

  • How Rule works : Two rules not working together

    Hi All,
    I have a rule in my distribution model. But when i add another rule then the second rule works but first rule stops working.
    I want to know how to implement two Rules together. Say if i have two rules R1 and R2 in a distribution model.
    Then how to implement
    1.R1 AND R2  functionality --- means do filtering if it passes both the rules
    2.R2 OR   R2  functionality --- means do filtering if it passes any one of the rules or both the Rules
    Regards,
    Abhishek

    F1, F2 etc., are referred to the node attributes whatever you have selected in the distribution rule.
    While creating distribution rule, Second screen will be the selection of criteria fields (Node attributes) on which you want filter the data. These fields are referred by vinod as F1, F2 etc.,
    So, your data will be filtered based on the AND condition between the criteria fields used in a rule.
    So, In a specific rule AND condition will be used between the fileds.
    Between two or more rules, it will be OR condition to  filter the data.
    Regards,
    Siva.

  • How does two step verification work with an iPad?

    Two step verification seems to require an iPhone for the code - can it be set up for an iPad?

    Apple ID Two-Step verification FAQ
    http://support.apple.com/kb/HT5570

  • LabVIEW crashes in timed loops

    Hi,
    I'm running LabVIEW 8 on a
    Pentium D, 2 GB RAM, Windows XP sp2 with an ETS target Pentium 4, 256
    MB RAM. I have two timed loops in a sequence, so they do not execute at
    the same time. A similar sequence is on the target allowing me to make
    a state machine between both computers.
    The loops on the host
    simply update the GUI for the user have a large period of 45-ms. This
    makes the CPU usage virtually zero. Also, task manager tells me that
    LabVIEW on the host only uses 200 MB of memory, so I know that the
    computer is not running out of memory.
    When I run the multiple
    VIs, the host will randomly crash. It works about 9 times out of 10
    with no crashes. Windows will tell me that it (is sorry and) has to
    close LabVIEW on the host. The target side continues to run like
    nothing happened. When I click on the link requesting details, I get
    this information from Dr. Watson:
    AppName: labview.exe
    AppVer: 8.0.0.4005
    ModName: lvalarms.dll
    ModVer:8.0.0.6
    Offset: 00001df4
    I
    have narrowed it down and I know that it will only crash in the two GUI
    loops. Does anyone have any ideas about how to approach this problem?
    -J

    Recently, I have had similar problems with timed loops (LV8.0.1/W XP). According to NI's answer, this is linked to hyperthreading. Unfortunately, until now, my question if this incompatibility is a bug or not remains unanswered. Because my application is critical, I have replaced all the timed loops with while loops even if the crash didn't appear during a short test with disabled hyperthreading.
    Hope this solves your problem.
    Here is an extract of the exchange with JR Andrews from NI :
    04/04/06
    The preliminary investigation of the issue indicated that it may be due to hyperthreading (or having dual processors) and that disabling hyperthreading resolved the issue as a potential workaround. If you have the time and ability, I would be interested to know if you were seeing the issue on a hyperthreaded machine and if disabling hyperthreading does in fact resolve the issue for you. I can then pass that information on to the developer to assist them in fixing the issue.
    Regards,
    JR
    JR Andrews | LabVIEW Real-Time & PDA Product Support Engineer | 512-683-2820 
    05/04/06
    Even though your computers only have 1 processor, that processor may be using "Hyperthreading" to make it appear to the OS that there are 2 processors. You can check this by looking that Performance tab in the Windows Task manager or at the number of processors shown in the Device Manager. I've attached a screen shot of my system which is a single P4 processor which is hyperthreaded. Disabling the LV option for "Run with Multiple Thread" would probably not have any effect because to Timed Loops are always their own thread and that setting only applies to non-timed loop LabVIEW code. So I wanted to clarify that double check that your machine indeed does not have hyperthreading. To disable hyperthreading, you can go into the BIOS and you should be able to disable it. You can always go back and enable it again too.

  • Getting lightbox2 and a slider to work together

    I have a slider jQuery that I am trying to get to work with lightbox2 but either one (or vice versa) does not want to work together.
    My coding markup is,
    <link rel="stylesheet" type="text/css" href="../CSS/ilovestylesheets.css"/>
    <link rel="stylesheet" href="..CSS/lightbox.css" type="text/css" media="screen" />
    <script src="../jQuery/lightbox2.05/js/prototype.js" type="text/javascript"></script>
    <script src="../jQuery/lightbox2.05/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="../jQuery/lightbox2.05/js/lightbox.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="../jQuery/slider.js"></script>
    Any help on what to do?

    I have a slider jQuery that I am trying to get to work with lightbox2 but either one (or vice versa) does not want to work together.
    My coding markup is,
    <link rel="stylesheet" type="text/css" href="../CSS/ilovestylesheets.css"/>
    <link rel="stylesheet" href="..CSS/lightbox.css" type="text/css" media="screen" />
    <script src="../jQuery/lightbox2.05/js/prototype.js" type="text/javascript"></script>
    <script src="../jQuery/lightbox2.05/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="../jQuery/lightbox2.05/js/lightbox.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="../jQuery/slider.js"></script>
    Any help on what to do?

  • 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 in a subvi, one or the other runs but not both.

    I have a vi with two sub vis. Each sub vi contains a timed loop that updates a global variable. In the top level vi I read from each global and display its content. When I run the top level vi I see only one global counting but not both. If I start and stop the top level vi the sub vis take turns counting but they never both count. If I replace the timed loop with a while loop in each subvi then both count. If I move the two timed loops from their respective sub vis and place them in the top level vi then both globals show counting. Can any body explain what is going on.
    I'm using Labview 2010 SP1.
    Attachments:
    Test Of Timed Loop.zip ‏72 KB

    Never Mind!
    When I cloned the subvi I forgot to change the structure name of the timed loop. Placing an error indicator inside the subvi disclosed the error -808 (Error -808 occurred at an unidentified location. Possible reason(s):LabVIEW:  The given name is already being used by the following timed structure.).

Maybe you are looking for

  • How to fill a new field in communication structure KOMPAZD

    Hi, I have added a new field ZKNRZE to structure KOMPAZD. It should be filled with the partner payer (KOMK-KNRZE) How can I fill this field? Which user-exit do I have to use? Thanks and regards.

  • Motion Menus: Placeholder and button chaos

    I am working on a menu for my DVD which includes a video background with the buttons included in it. Basically a car drives off the screen and I masked the video so when the car drives off screen the play and scenes text shows up in the street. I wan

  • Oracle 11g R2 - 64 bit latest patch sets and patch list

    Hi.. I have installed oracle 11g R2 64 bit on top of windows server 2008 R2 64 bit enterprise edition... I want to install patch on oracle 11g database, please let me which is latest patch level need to be install? Rgards ananda

  • SP2-0226: Invalid line number

    How can I look up error codes? Also, does anybody know what this means? It doesn't seem to affect the way the procedure runs.

  • How do I change wrong AppleID? It has me at .mac and I'm at .me

    Somehow the wrong AppleID is associated with my mobileme account on my iPhone. It thinks I'm [email protected] I can't change it and don't know how to delete it either. I can receive emails directed to [email protected] but on outgoing messages, the