Time delay for boulen

i am trying to turn a boulen true on an interval of 5 seconds and when the boulen is true have it remain true from 2 seconds. i have tried using the hardware clock to aquire a time value and evaluate it and act accordingly but i have not been able to repeat the cycle more than once and also i have not been able to keep the boulen to stay true any longer than one second. actually the time interval and between cycles doesn't matter as long as i can varry the value. and the same for the length of time that the boulen remains true. if anyone has a suggestion that would be great.
P.S. i am using LabVIEW 7.0 primarally but i also have LabVIEW 6.0i
thanks,
Daniel

Here are two of the simplest examples. Both have disadvantages, but they should be accurate to within a few millseconds.
It sound to me like you should learn more about LV. I suggest you start with the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here is one you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.
Try to take over the world!
Attachments:
Boolean.PNG ‏9 KB

Similar Messages

  • My recirculating pump in sub vi simulation link doesnt work in the second iteration .It opens for maybe half a second whereas i gave the time delay for 5 secs..plz help very urgent

    Hi,
         I have attached my simulation loop.In the model attached i hav eone main pump with constant rpm which drives the 5 smaller pumps and fills the tank at the same time.As soon as the tanks reach their 90% level,the valves of the five pumps close(SP1,SP2,SP3,Sp4,Sp5).After that the recirculating pumps opens for 5 secs of the first tank.As soon as the recirculation finishes,the drain valve(SV1) for tank 1 open and the volume goes to interim storage.This happens for all the remaining tanks.
    My simulation works the first time,but when the second time the loop starts,it skips the recirculation pump even though i gave a time delay for 5 secs.Plz help ..I have attached the simulation.
    Thanks,
    Rami
    Attachments:
    Spatial Logic_2_Final.vi ‏223 KB

    Rami,
    I suspect that you have a race condition. The widespread use of local variables frequently leads to race conditions. Your subVI (Spatial Logic Sub_2.vi was not included) so I cannot run the VI. You have no way of knowing whether the subVI or the inner case structure will execute first, because there is no data dependency between them.
    I think a shift register or a few and some dataflow thinking would allow you to eliminate the inner case structure, the local variables, and, probably, most of your problems.
    Some of the SPi are indicators and some are controls. How are they used?
    The last case of the inner loop retursn to Case 1. Would case 0 be better?
    As for the second time through issue, it may be related to the Elapsed time function Auto Reset. From the help file: "Resets the start time to the value in Present (s) when the Express VI reaches the Time Target (s)." If more than 5 seconds elapses between the first time you use this and the next, it will exit immediately on the subsequent calls.
    Lynn

  • Using time delay for displaying tooltips

    Hi guys, hope you are all fine,
    I have a little problem, i need to use time delay for displaying a tooltip for a specific amount of time but i don't know what code to use.
    Can you please give me a hand? I also try to find out the right way on how i can use tooltips when using a Jpanel and paintComponent. I amcurrently using setXORMode but this is not too efficient.
    Thanks guys,
    Regards,
    John.

    Ok guys, for any other who need this info, you get time delay by this:
    try {
    Thread.sleep(time);
    } catch (Exception e) {}
    // in "time" you put an integer value which represents milliseconds

  • Time delay for Images

    I'm full of questions tonight -- I was also wondering is
    there an application or code that allows you to time delay images,
    text or music?
    I would like to upload, let's say 4 images that rotate with
    the time (based on whatever clock I set) - i.e. sunrise, day,
    sunset, night. And if I specify a time period that image, or
    whatever file (img, text, music) is selected, can update
    accordingly. Is this possible? Or am I just dreaming.... :)
    Thanks again!!

    I've been having the same issue... I was also looking at some
    other blogs, where people wanted to know if they could have their
    website display the current time in text... this might help us in
    our quest to solve this question... who knows, maybe someone else
    more knowledgeable will post an answer here...
    Here's the link to the pages that might help a little...
    http://javascript.about.com/library/bltime1.htm

  • 2310, minimum time delay for keypad lock

    Hi,
    I have a 2310, Virgin variant.
    I can set an automatic keypad lock, but the minimum time delay is 10 seconds, and I want it to lock after 4 seconds. When trying set it to 4 seconds I can enter 4 seconds as my preferred time delay, but the handset just reverts to ten seconds. I can set it to time periods longer than 10 seconds without any difficulty. Is this normal?
    SR

    the unlock code is
    12345
    or
    00000 
    Blackberry Storm2 9520 Contract

  • Time Delay for updating in RWB

    hi,
    iam doing the valuemapping Asyncronous scenario.
    its working fine.the thing is,it is getting delay to reflect in the
    RWB while inserting the data.
    could u plz help me to solve this..
    Thanks& Regards
    sasi...

    Hi,
    This happend when the changes made in XI objects are not updated in cache. For this we need to manually update system cache.
    1. Goto Transaction SXI_CACHE.
    2. XI_Runtime_cache->Start Delta Cache Refresh.
    Thanks,
    Punit

  • Regarding AP delat extraction time delay

    Hi All,
       I am facing an issue in AP delta extarction,
    The problem is, AP extarctor is taking some time to get the delta records from r3 system to BW, I have cross checked, it is talking around 15+hours to get the delta records to BW from R3.
    Because of it I am wasting a lot of time coming to AP testings.
    Is there any predefined time delay for this or do I need to change any settings?If yes please suggest your views.
    Thanks with regards,
    vinay

    The default safety time interval is 1 day, which means the records older than one day only will come while extracting data. You can change this setting. Refer OSS NOTE 991429 - Minute Based extraction enhancement for 0FI_*_4 extractors.
    Pravender

  • Need a sound card with time delays

    So.. I am looking for a sound card that is 7. channel (5. is still ok tough I perfer 7.) and that offers me Time aligment/time delays for EACH chanel.
    Does any of the Creative sound cards offer this?
    I browsed the creative page..but could not find any info...does maybe any other sound card offer that?
    ty.
    regards
    sergej

    I need one 2,
    I?ve bought a LCD tv a few day back and now i?m started building a media center pc.
    Now my dvd recoder allows me to adust the sound so it matches the screen?s lag.
    Is there a soundblaster card that gives you the ability to adust a delay in the sound?
    thanksMessage Edited by Pim on 0-29-200607:33 AM
    Message Edited by Pim on 0-29-200607:34 AM

  • How do I create a delay or time-lag for my data in LABVIEW

    In my data acquisition system I am using acquired data to create an digital output. I want to delay this output or create a sort of time lag for it. Is there any easy way to incorporate this?

    What you might consider doing is using a sequence. Run the data through this sequence and inside of the sequence, put a delay equal to the time you wish to delay the signal. Then, the output will not be available until the delay has completed.
    If you need continuous streaming data, this might not work too well. Then, you will need some sort of a data buffer - perhaps using a queue might be one possible solution. I have not used it, but I think that queues can have a time stamp. You could possibly artifically alter the time stamp.
    Hope this helps,
    Jason

  • I've tried every online tutorial for timer.delay + experimented... how to make it work in this sitch

    Hey,
    I've read literally every single timer.delay tutorial I could find online, on youtube, the official documentation, tons of posts on this forum, etc. What I am trying to say is I looked everywhere before posting for help.
    I have a timer running. It runs throughout the game. I need to modify the speed of that timer when a player either hits a certain second(won't work, because the timer is already running) or when someone gets a certain score(can't get it to work, because timer is running).... so my question is how do I get timer.delay to work when the timer is running throughout the entire game. I tried to control the delay by when someone gets a point, but that didn't work either. I am using a trace statement so I see the seconds and the timer speed. the code looks something like
    randomvariable = new Timer(2000,8);
    timer.addEventListener(MouseEvent.CLICK, loop);
    timer.start();
    function loop
    // my looping code here
    What I posted is psuedo code.
    Any ideas on how to make the timer go faster without delay, since I can't get delay to work under the circumstances I explained? Or is there a work around that I don't know about? I will try to give back to the forums by answering other questions. Oh, I am running this on the timeline, not in a .as file. Thanks so much for your help!

    That's what I thought. I thought if I set a delay inside the function or in an if statement for the var that  prints out  the timer decrease that it would work. It doesn't. I'm using Adobe AIR for IOS, but I doubt that makes a difference in this case. I write timer.delay=500; that should make the timer go at 500 milliseconds. My trace shows the amount of milliseconds didn't change throughout the application. It is quite bothersome, since everything else works and every guide and the docs say what I am doing should work. Any ideas?
    Thanks.
    Sincerely,
    Ryan Satterfield

  • Time Delay to wait for a solenoid to open

    I have a Shutter that opens fine but I need to wait with some Time Delay before I continue to process some information.
    I am using Labview 7.0 and have a DaqPad-6016.

    It would be helpful to see your code to see exactly what you are doing.
    However, LabVIEW does have several options for waiting. I have attached a screenshot showing some of these. The time delay is especially useful with DAQ because you can wire your task's error wire through the wait. This will cause the delay to explicitly happen in between the execution of VIs.
    -Sal
    Attachments:
    wait.JPG ‏42 KB

  • Time Delay works for only one step

    HI
    I have a vi (not programmed by me but I was told to make few changes in it) in which there is a time delay. When I apply time delay it works for the first step and the delay doesnot work for the later steps. I tried to make few changes but it is effecting the other parts of the vi. I'm fairly new to Labview. Could someone please tell me what modifications do I need to do for the time delay to work perfectly. Thank you in advance
    Best Regards
    Pratheek
    Attachments:
    vi.zip ‏334 KB

    Jeff·Þ·Bohrer wrote:
    crossrulz wrote:
    Your Time.vi is set to be non-reentrant.  What this means is that only one instance of it can run at a time.  So if you call it twice, the first one will start running but the second call must wait until the first is complete before it can start.  To change the reentrancy, go to the VI Properties and then to the Execution section.  You want to choose "Shared Clone Reentrant Execution".
    Pre Allocated
    Get them their own data space so the local variable doesn't bang its head
    I knew somebody was going to say something there.  They really don't have their own data space that they need to maintain.  So it doesn't really matter which reentrant type they choose.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Impulse trigger to create a time delay of x ms to perform an action for y ms

    Hello all,
    Here is what i'm trying to do:
    I'm measuring an audio signal when a sound level is above a certain value Y (controllable) i need to wait a few ms (around 900ms) to get pass the main sound compound. Yhen i need to filter the next few ms (around 500ms) of data and do a FFT of that part of the filtered data only once until Y is reached again.
    I can do all this with saved data but i'm struggling to do it as it occurs without saving the data.
    I have everything in place i just need to know in general how to use an impulse trigger to a create time delay of x ms to perform an action for y ms.
    Do you have any ideas how i can achieve this?
    Thank you in advance,
    Frederic.

    Hi Frederic,
    I've looked at your program and I have a few questions. What is the purpose of the Two While Loops that simply have a Case Structure that nothing in the false case and a Wait (ms) function in the true case? As it stands if these loops go into the false case then there is nothing to slow down the execution so the will try to run as fast as possible and not give the processor any time for other tasks which may explain why your computer goes so slow whilst this is running. This also applies to the While Loop where the false case says "If its not time to write the measurement file, do nothing."
    I believe that what you want to look at is a Producer/Consumer(data) Pattern, where you have one loop that generates your data (producer), in this case reads in the sound data, and then a processing loop (consumer) that will do the Fat's and log data to a file etc.
    More information about this can be found here: http://zone.ni.com/devzone/cda/tut/p/id/3023
    Hopefully this helps you a bit. Let me know any questions you have.
    James W
    Controls Systems Engineer
    STFC

  • Just got motorola s9, is time delay normal for bluetooth headsets?

    As title says I just got a s9 headset and am very surprised by how good they sound with music ( haven't tried a call yet, I understand call quality *** ). Anyway I'm really noticing how bad the time delay is with these, they are completely useless for watching video and also playing tap tap revenge as the sound is a good second behind whats happening onscreen. Is this just the s9 or is this delay normal with bluetooth headsets?

    There is a slight time delay with any Bluetooth headset that I have ever used for music, and yes it is useless for watching movies or playing games.
    To play devils advocate I think if you are able to watching a movie or playing games, then you should also having no problem using wired headphones.

  • Time delay between 2 waveforms

    Hi,
    Please bear with me while I explain what I’m trying to do :-)   Basically, in the attached LabView file (“flow vis + trigger-m.vi”), I am generating 2 signals: a sinusoidal waveform (used to drive an actuator) and a square waveform (used as a TTL signal to trigger image capture on a CCD camera). Currently when I run the program using LabView 7, both signals are started simultaneously. I would like to introduce a time delay that can be manually specified in the VI, such that when the program is started (i.e. at time t0), the sinusoidal waveform also starts (i.e. at time t0) before the square waveform (i.e. at time t0 + delay time). In a practical sense, this means allowing the actuator to run for several seconds before capturing any images.
    It sounds like it should be quite straightforward to do, but I’m not so sure how to progress. I have begun to modify the original VI (“flow vis + trigger-m_2.vi”, as attached), but would be much appreciative of any help or suggestions on how I can complete the VI to meet the above requirement.
    Many thanks,
    Mark
    Attachments:
    flow vis + trigger-m.vi ‏939 KB
    flow vis + trigger-m_2.vi ‏895 KB

    Please refer this URL for an example VI I made to solve the problem:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=227603
    Way S.
     NI-UK Applications Engineer

Maybe you are looking for

  • Condition type in PO

    Hi Gurus, I got an issue which I am uable to analyse.......please have a look and tell me how to approach There are two cases---- first one is Inter company PO In a purchase order, there is a fright condition type(ZCCQ) which was given thrice for fir

  • Smartform Printing Problem in SAP ECC 6.0 with Ehp6

    Hi Sap Expert, Our Sap System has been upgraded from ECC 6.0 to ECC 6.6 ( Ehp6). now we are  facing  problem in to print smart forms . I have a smart form with one page and three copies are there. On first it was written ORIGINAL, on second DUPLICATE

  • Z68A-GD65 (G3) not always finding ocz vertex 3

    Me and a friend just bought identical setups, among them was the Z68A-GD65 (G3) motherboard and OCZ Vertex 3 120GB SSD. Both of us get some random crashes and sometimes when trying to boot the computer the SSD does not show up in BIOS (therefore can'

  • How can I prevent Aperture from deleting pics while tethering?

    Using Nikon D90 & Aperure 3 on a brand new iMac. Now Aperture is deleting pictures without asking as they import (tethering) to the current aperture project. Aperture 2 gave us the option of storing the photos in the memory card as well. It's always

  • Type of cost center

    Hi, May I know what is the difference between direct cost center and indirect cost center? Can explain with example? Thanks Moderator: There is no such SAP term. For indirect costs, please search the Web