control the time lopp

Hello

I want to control my time loop but I am unable to control

I want to integrate two entrances to stop the loop while

When I press the stop button and when entry to data acquisition falls below 3 volts

Please help me


Tags: NI Hardware

Similar Questions

  • Control the time times of high and low of trains of pulses in C++

    Dear team of support of National Instruments,

    Here's what I have so far:

    I was able to generate the number of pulses (a pulse = a rising edge and front descending one) that the user has indicated via the GUI I created in Visual C++ 2008.

    I use DAQmx 8.6.

    I use the DigitalSingleChanWriter (hopefully, that's what it's called).

    I use for the synchronization of the sample, on request.  I tried to use all other types of calendar but I always get a DAQException run the error that says I can use only OnDemand calendar.

    OK, so here's the problem:

    I have a USB-6008-6009 card connected to an oscilloscope.  I know that the connection is correct, otherwise nothing would appear.  However, if I send say... 6 impulses, the delay between the first rising edge and the first falling edge is dramatically different and then the second and the third.  If I return my samples, I get an assortment of new and totally random times.  So finally, my question is "Is there a way to control the time of a great time and a bit of time?"

    I use a Compaq 2003 lap top, what is worthy of the rubbish heap.  I'm not to blame on this right away as problems that will not solve the problem at hand.  Although I understand if it's actually the problem for random times, but I would still have no way to control the time themselves.

    I hope that I don't have drug it too long, but I decided that distribute information on would be better then just a few tid bits.

    Thank you for support, that you can offer,

    Daniel

    OK, so I just returned from the lab, and this is what I got:

    I was able to control the time at the time of the high and low by using the "WriteSingleSamplePort" of the DigitalSingleChanWriter method.

    I put it in a loop that repeated many times that the user wanted impulses.

    At the beginning of the loop, I used a delay function that I wrote and delayed for a time given and then a pulse with a value of 255 and then delayed again and a pulse with a value of 0. And then restarted the loop.

    In the end, it works.

    Of course, I have another question.  I kept reducing the amount of time between two pulses (1 s, .5s, .2us and so on).  However, once I have diminished the time of secondes.01 or a millisecond, the pulses on the arrested oscilliscope becomes smaller.  It seems that past 1 millisecond Board USB-6008/6009 is unable to deal with the exigencies of the moment.  Or else the computer trash part on that I cannot deal with the exigencies of the moment.  But I believe that the Council is not at fault because it was designed for this exact sort of thing, could you tell me if there is no limitation to the Commission which prevent production of pulses in or within a period of 1 millisecond.  Thank you very much.

    Thanks for all the help,

    Daniel

    P.S. I'll stop you buggin with big messages that I promise you.

    P.P.S.  If someone wants to see my source code for their own project, I'd be more than willing to share.  Please email me or leave a message here.

  • How to control the time of a graph database programmatically?

    If I see 4 cycles of a sinusoid on a chart, how can I continue to display 4 cycles when frequency changes?

    Thanks for your help.  I solved my problem with a structure of the event.

    Do you know how to tie the congratulations and problem solved?

  • control of time of hand designs on the internet at home?

    children access the internet 24-7 with the iPod in there how control the time here on a wireless network?

    Hello

    Consult the manual of the router. There is a way to prohibit some devices access at different times, but it is specific to the router.

  • Control the user wait times in the workspace

    No way to control the time-out in the workspace. users are complaing that 15 minutes is too short.

    For version 11 have a read of:-http://download.oracle.com/docs/cd/E12825_01/epm.111/bpmui_admin/ch02s03s01s01.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Checking the time of calibration

    I have a requirement to perform a daily calibration of an instrument on a daily basis.  Time of calibration should be configurable by the user.  So what I've done is created a menu item which allows the driver to control the time of the user.  In addition, I have a file where I store the last time of the calibration.  So, in my routine, I perform the calibration if it has been more than a day since the last calibration or current time is greater than the daily duration of calibration set.   For this last condition, there is always a possibility that calibration could get done before the interval of 24 runs IE: initially, the daily calibration lasted from 21:00 and then the operator decided to change it to 08:00 the next morning, so calibration running after 11 hours.

    However, if I implemented the OR condition as follows:

    Currently > calibration set time.  Current time is older than the last time of calibration 1 day, I meet the problem that calibration will be executed every time the current time > calibration set time, while I do want the calibration to run once if the time has changed.  I am faced with the logic of how to apply it.  I'm looking for experts or the forum for helping me overcome the intellectual obstacle right now.

    You can store in the file next time 'expected Calibration.  This would be fixed everytime user updates the test station.  This could also be set whenever a calibration is performed (when the calibration is done, set it to 24 hours from now, or the next time expected calibration).  You would only need to check if the current time is greater than the expected calibration time.

  • Control the simulation time to align the time system

    Good so maybe it's blindingly obvious or just simply a ridiculous question but here goes:

    I run a dll that I produced from a .mdl file. My goal (among others!) is to get the dynamic response of the exact model of 'real world' calendar (date system). The tuning for the appearance of the control of this model is based on the duration of simulation with produced in simulink and so it is desirable for me to define the duration of the simulation to run when the system.

    The problem I have, if you open the workspace and produce a template control, the simulation shown time is much faster than the time system.

    For example, one iteration of the model takes a fraction of a second. What I imagine happens, it is immediately restart (and progress of a time step). I guess I want the model to wait until it is in harmony with the system time before iterate again.

    Is there a way to solve this problem, and do anyone know if this problem will be resolved in Simulink or Veristand 2009.

    Any information would be appeciated, my trawl of the help files OR have not really answered the questions yet good

    Thank you
    James

    The models are running in sync with the rest of the system. Unless you specify a decimation factor for your different model of 1 for each tick of the primary control loop your model put once, too. The difference between the model and system duration that you see is due to the fact that the model time is based on its time not Delta T compiled, not any of the wall clock time. Every time that the model is Ticktock, it adds its own Delta T to its operation time string.

    The time channel system is based on the Delta T of the primary control loop. Thus, it corresponds with the rate you specified the system to run at. If these Delta Ts are the same, are aligned at the same time. If you want the time to model to match an actual wall clock time, you can adjust the flow of the loop of the primary control loop to match the Delta T, or adjust the factor of the decimation of the model so that it gets only checked once for every N the primary control loop iterations.

  • SMU-6556 - how to control the rise in digital lines (hsdio) time

    Hello

    Is it possible to control the rise in digital lines SMU-6556 time?

    Even in a low frequency 10 kHz signal rise time is 2ns.

    TKS,

    Hello engfpe,

    The SMU-6556 is a 50 Ohm system, which means that the output is source series finished to be 50 Ohms and all our cables and accessories are 50 Ohms.  With this configuration, regardless of the flow of data, you should have a clean edge up or down, regardless of the data rate. The quality of the production (edge up or down) on your device is related to the adaptation of impedance of your cables.

    The SMU-6556 cannot adjust the speed of scanning by itself.  However, you can insert simple passive components to do it for you.  I have attached below the images.  The first is a diagram showing a way to slow down the edge.  The second is the a waveform simulation showing the rate of original edge before it slows down and the edge of idle.   This simulation is not the SMU-6556 but rather a generic digital output for concept.  In the schema that R1 is set on 34 Ohms because U1.8 has the 16 additional Ohms on the inside.  TL1 is the output of 50 ohms simulating the cable on the SMU-6556.  R2, R3, and C1 are components, you can insert after the SMU-6556 twist before moving your device/cable.  In this configuration from cable to your device is TL2 which is also 50 ohm, but it could be another impedance in which case you would change R3 to match.

    You can see in the attached images, you can slow down significantly the edge with this configuration by altering the C1.  I hope this helps.

  • Trying to update channels in real time while controlling the Agilent 34970

    Hi all

    I got Aussie help on these forums and I hope that someone will be able to point me in the right direction with this problem. I'm still fairly new to LabVIEW please bear with me.

    I work with the LabVIEW driver for the Agilent 34970 connected on a GPIB-ENET 100/1000. The device was detected and works very well. The reason why I am writing today, what I'm trying to update the list channels in real-time. Currently I need to stop the whole process in order to modify the list of channels, but due to the nature of the tests we will occur, it is important that I can add more channels I want without interrupting the ongoing trials.

    I searched the forums and tried to change control of chain of channel for "Update of the value while typing" and "limit to the only line." The motivation behind the change of the latter was so that I could change the channel list and use the ENTER key to run. I also tried to create a while loop with shift registers but construction ws so clumsy that it does no more.

    I am sure that the change must take place as soon as the control of the chain, but is not certain since the pint is so he can reset which channels to scan and which appears lower in the VI. I have attached the VI I work with; It is a slightly modified version only Advanced Scan example of the driver.

    Thank you in advance,

    Yusif

    You might have added a registry to shift, but you're not actually compare anything. You compare the value of the control to the value of the data coming from the shift register to see if it has changed. If so, change the scan list.

    If you need to have a delay after you change the scan list, then you must add the delay within the business structure that calls the VI to reconfigure the scan list. You can use the late VI period causes the delay occur after you set up the analysis using the wires of the error to force the order of execution.

    P.S. Your naming scheme for screw means that you probably use a source code control system. If so, you would be well served by taking the time to discover the source control systems and installing a. It is very easy, and he has had several discussions in the LabVIEW forum on recommendations of source code control systems.

  • How to create a control of time for the while loop?

    Hi all

    I want to control my time running of the loop. In other words, I want to stop everything in the execution of the loop after a time (in ms) that is defined by the user. For example user defines Control Panel for 5 seconds before a while loop runs and stops after 5 seconds.

    I don't know is it possible with the while loop. I managed with the timed loop, but this must be wrong with my application. Y at - it of the other loops for timed control if it is not possible with while loop? There is also a simple loop with .vi random number (0-1) as an attachment.

    Best regards

    Jick

    Hi again,

    I managed to solve my problem right after I posted my first message. I did it with the passage of time and the register shift (for the elapsed time of reset).

    Thanks for your replies anyway!

    Best R

    Jick

  • How can I control the working time so that the loop structure in the cases where the structure?

    Hi all

    My job is: Loop While structure generates the signal for 4 seconds when you press the 'start build' button, after that data has been backed up. You press the button "generate the beginning' once again, and the loop runs one again.

    My problem is: the first pressing, the loop, exactly 4 s (3, 999 s), but him second, third pressing on... The time elapsed is not 4 seconds, always smaller (even ~ s 0.003). The loop works correctly after press the "Exit" button and launch the program again.

    How can I control exactly time loop work While Structure without the press "Exit".

    Thank you any help!

    P/S: I used the number of cycles (ms) just to look at a working time of the While loop.

    NMCuong

    This shows a quick solution

  • the value 600 d/T3i for firing the shot with a wireless remote control without using the timer involved?

    A 600 d/T3i is adjustable to shoot with a remote wireless without the timer is involved? I was not able to find a way yet.

    Yes. Your remote control has a switch on the bottom it is shoot immediately, or with a 2 second delay sets. I guess that yours will be set to position 2. It must be set to 0. Problem solved. Best regards, col.

  • CHKDSK runs everytime I turn on my computer, complete control, the computer tries to start and goes back to CHKDSK every time. Does this mean that my hard drive is crashed?

    CHKDSK finishes control, complete control, the computer tries to start and goes back to CHKDSK everytime, it means my hard drive crashed? and if so, can I just replace the hard drive and then have my technical support help reload my data?

    Hi Karen,.

    ·         Since when are you facing this problem?

    You can check if this article helps.

    CHKDSK runs each time that you start your computer

  • Standard user changes time clock to circumvent the time limits set in the parental controls, how to stop this?

    Original title: clock change

    I put deadlines for my daughter in the parental control. my daughter just changed the clock time to get around this. It has a standard user account and I have the password to the administrator account, which she could not possibly know that I keep changing. How does do and how can I stop this happening?

    The date and time system can be changed using a control panel applet - timedate.cpl file.

    If you have the administrator account, you can refuse his user account access to the said folder.

    1. go to start > type cmd > press and hold shift + Enter (this will open CMD with Admin Access)
    2. on your type CMD in the command below

    Cacls timedate.cpl /p : n

    3. press ENTER.

    The command will refuse access to user account in the file so that it could not change the time and date.

  • Control Panel - give me my labtop-"Tablet PC settings" is that at the time? What are the parameters?

    Control Panel - give me my labtop-"Tablet PC settings" is that at the time? What are the parameters? Common sense is the garment of the genius work.

    Hello

    Yes some of the Tablet Settings 'could be useful on some laptops to some users." Easier to understand
    This is for all users of Vista to make a special version for users of the tablet.

    If not using a Tablet you can simply ignore them.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for