delay in the structure of the case

Hello

I use a structure of cases within a while loop.

I want to put a delay of about one second whenever the case goes wrong (it must remain false until 1 second) then comes to the usual routine. I tried to use the function wait (ms), but then it effects the while loop. is it possible to put a delay without the normal time of the while loop operation?

I enclose an example simple vi to clear my point.

Thank you

Here is an example of using the last timer.

Tags: NI Software

Similar Questions

  • How to make a delay in the true case of a loop of the case, without affecting the wrong case?

    Hello

    I do a mini project, where I must, when the input is true, (10 s) delay before the release can be true, that's why I used a loop case and used the wait function in the case of true only, but it seems that it also affects the case of fake...
    Help, please!
    Thanks for your time

    remapears wrote:

    Yes I use it...

    Using what, exactly? (structure of the event? The race continues?, something else?)

    Try something like the joint.

    ("Continuous run" is a debugging feature, not a way to run a VI normally, so don't do it.)

  • the structure of the case support

    Well guys, I want to just do one simple thing here, but I'm having a problem here:

    I have 2 Boolean types, and if one of them is '1' my business structure should work until I have click on stop.

    But I'm clicking on the Boolean value of the program to run once and after her, it just to stop.

    Could you help me? I will attach a picture:

    How can I make the part inside the structure case runs until I click on stop?

    Thanks for the help guys!

    I'm not sure I understand what you want the program to do.  Looking at it, it seems that x * y indicator will get a new random number whenever you press one of the buttons OK (it is always in a hurry - try holdin down the mouse key), and the program will end when you press the stop button.  Is not what he does?  With an action of the switch until this just released, you won't get a '1' a Boolean value as long as you hold down the mouse button.  Try the action of "change when you press on" to have the code in the case to continue to operate after press and release.  Also it might work better with a slight delay in the while loop.

  • How can I sort the selector non-unique values and make them unique in the structure of the case?

    I want to clarify 3 ranges as breeders of the case.  For example, I am able mV and I want 0.10, 10.20 and 20.30, but, when I enter them in this way, I get an error that says that the selection values are not unique.

    I want case to answer when the input is greater than 0 but less than 10.

    I want the second case to react when the input is greater than 10, but less than 20.

    I want the third case to react when the input is higher than 20, but less than 30.

    And there is the case by default, 0.  The case structure think my default is bunk with my case?  How a list correctly these ranges in the Tag Chooser structure cases to avoid the error?

    Also, I plugged in my blood "to LONG integer" and then to the Terminal case structure to convert entire for the entry of case structure (blue wire).  Is it the right thing to do, because my values of tension will certainly be decimal numbers, not integers.

    Before converting in I32, for example, use "turn to + inf" and settle the case accordingly.

    (A plain to_I32 rounds to the nearest integer, making it impossible to meet limits).

  • Turn off the LEDs in the structure of the case

    Hello

    I was wondering if someone could help me solve a problem in a software test bench that I am developing. I have attached some of my code in which the problem is visible. I have a business structure that is triggered by a 'push button '. I want the TEST that is currently RUNNING LED remain lit until the end of the execution of the case structure (condition true) then shuts down once it is completed. But the LED does not turn off and remains lit. Is that what I can do in the condition False to activate the LED is off when the code is not running. Please note that to run the program, you will need to "run continuously. I want until the led turns off after getting the 'result' so that the software operator can know that he is free to perform the next test. But now when the 'Start Test 2 "is executed after 'Start Test', the LED stays on.

    It might be a simple solution that I can be not familiar with, but forgive me, I am a new user of Labview and I could not find a solution to this online.

    Thank you.

    Kind regards
    DPAC

    Hi DPAC.

    simple solution as requested:

  • DAQ Assistant no recorded data during the case structure is false

    I try to turn it on turn off heater using intermittent relay module (some time and some free time). The program attached that do very well. Except that I also want to record the temperature of the radiator using materials DAQ Assistant and it records all the data when the case structure is false. I mean, when the relay is off. I tried to use the vi for the acquisition of data in the structure of the case. However, aparently it is not possible to call the module analog input even twice in the same program. All solutions? Thanks in advance.


  • Disable & gray a case of structure of the case

    Hello!

    I use 2 business structure to choose if I want a channel 'create' or not. I don't know if it's the best way to do it but... It s okay if I use this control type to choose the case? and... How can I disable and grey items in the not selected case?

    Thank you to

    TXL

    Yes you can do to control or indicator... Use the property node...

  • How to stop queuing in the structure of the case

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic. I just want to get the value of Ridge and Valley. Is it possible to stop queuing the values in the structure of the case? As I have a several signals which peak/Valley must be found that I can't use the library functions.

    Kanye wrote:

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic.

    First of all, and more which has been mentioned, there are serious shortcomings, making the Subvi is not very universal.

    • Your Subvi does NOT export the correct value of the Ridge (or Valley), but the value just after (which is more a peak or a Valley!)

    • Your Subvi is only the positive peaks and valleys negative. This seems very restrictive. In general, you could easily have a Valley even if all the data is positive. Right? (With the exception of the Valley of death for example, most of the valleys are above sea level, for example )

    • Your code is extremely complicated, with two sets of structures of the case, each stacked three deep, four change records and tons of comparisons. Here is a simpler version. (To imitate your outings, place a statement select after each comparison and output the value or zero depending on the result of the comparison).

  • SGL and variable U32 are wired to same variable DBL through the structure of the case, block data poster SGL DBL during case U32.

    Hello

    Here, I have attached an example, similar code module is used in our project.

    In this example in the control of two structures business SGL and U32 panels is directly related to the signpost DBL. If I give 4294967295(U32 value of maximum range in the case of forgery under the example) its display 4294967296.

    Please give me the solution to show the correct value of U32 in signpost DBL.

    Thank you

    Wherry

    In your code, 4294967295 is first converted to the SGL (on the edge of the box structure), then to the DBL. But this value may not be exactly converted SGL (due to lack of significant digits).

    You should convert the SGL DBL value in the case of true.

  • optimize the case for a same computation structures

    Hi all. I want to compare an array of numbers with 0 in the first place, if they are greater than zero, we do a simple calculation such as 10 + 10; If they are less than 0, we make another simple calculation like 10-5; of course, it can be achieved by the VI I wrote it in the attachment, but I wonder if we have the best ways to solve it, maybe a single structure case because we have exactly the same calculation for the same situation. Thank you for your helpful suggestions. I updated a picture just in case if you do not want to download the VI.

    You can search the table of Boolean 1 d to the value True.  Then, the value will be-1 (no true), 0, 1, 2, or 3 for the index.  HAV that animate a single structure case. When the respective indicator is in each case.

    Of course if all calculations are exactly the same (assuming 10-5 is just simplified), you can put the calculation outside the structure of the case and feed it to the respective case.

    EDIT: You don't need to build an array of zeros to compare to another array.  You can simply use a zero scalar.  And you don't need that.  Just use the primitive > 0.

    In fact, I don't really know what you're trying to do here.  Why do you have different indicators in cases of false and real cases?

  • Synchronize the case structure with enum update

    Hi, I created a control enum initially with the "First" and "Second" values. In the block diagram, I created a node of this enum control property and it is connected to a box structure. The structure of business allows me to manage the condition "First" or "Second" correctly.

    I then modified the items in my enum so there is now a 'third party '. My problem is that structure business conditions still show as 'First' and 'second '; That is to say, I can't handle the "Third" condition My question is how to synchronize my case structure to show the updated enum values?

    VI, attached, the sample created with LabVIEW 2009 version 9.0f3 (32-bit) running on Windows 7.

    Thank you all for your help in advance.

    Michael O'Shea

    First tip: remove the value 'default' first case

    If you have done your VI pauses when you change your enum, which is a good thing.

    Now to synchronize, do a right-click on the border of the structure of the case and select 'add the case for all values', this is the option you are looking for.

    Tone

  • Structure of the event within the structure of the case run once

    Hi all

    I am a controller using myRIO and labview where the program compares a value of the probe in a "Preset" and then choose a structure case depending on what type of air supply is required. What can be seen on the picture, for example, is 0 if saturated air supply is necessary.

    The structure of the event is used to send a signal to step to the stepper motors to open the valves (closing is still pretty much in the same way). In any case, the event turns my valves 90 degrees. I read the sensor all a second, however, when the case remains unchanged, the case runs the event again causing my engines running at 90 degrees per second (essentially continuously). What I'm looking for is a way to send the signal to step only once until a new case is selected.

    He is not on the photo, but this is all within the large loop.

    Apologies for any bad/cringeworthy coding, it is literally my first program always using labview. I can post the full VI if you need.

    Any ideas would be very appreciated! Thank you

    Simos wrote:

    crossrulz you have a simple example by chance that uses the feedback node?

    See if that helps

  • problem of data flow in the case structures (using a state machine)

    Good day everyone.

    I'm having a problem with the flow of data between the structures of the case.

    I try to use an example of a state machine for this simple problem. but when I try to send data of a box structure to change the State of the code. It will change not in the desirable output, instead, it offers the possibility that the exit options emul.

    could someone please point what I'm doing wrong here. Any kind of help would be very appreciated.

    With a quick glance at your photos a question you have is that you use not data flow. You write your status updated in local variables value. Your State should pass through the case structures are a single wire. Playback of your order "Enum", happened in the register shift on the right side of your loop probably get running and reading before any processing occurs within the structure of your business. That's why you're reading the old value of the State and not the update. or have a classic case of a race condition in your code.

  • Help with the Structures of the case

    I have a problem switching between the true and false cases between the structures of the case. I'm writing a VI that generates a random number between 0 and 10 once every 0.5 seconds, and then adds the numbers until the total reaches or exceeds 100. At that time, it should start to subtract the number generated at random until it reaches 0, then switch again adding etc.

    I have a problem switching to the case of 'false' once the sum exceeds 100. If anyone can help with that would be great!

    To make things more simple exchange the Boolean value for an enumeration with only two values you can call "Count Up" and "Count Down".

    Create a second shift register to hold the enumerated value specifying whether to "Count Up" or "Count Down". Initialize the new register shift to count up, and in the case of "Count Up" in the structure of the case, increment the value of data and test to see if it is greater than 100. If this is not the case, do not change the value in the registry to shift direction. If data has exceeded the limit, change the values in the shift of direction register account to "Count Down".

    In the case of 'Count Down', decrement the value of data and test a value less than 0. When the value of the data is less than the lower limit, change the values in the change of direction of the County Register to "Count Up" and you're done.

    Mike...

  • Not not not in the Structure of the case

    You want to get suggestions on the best way to do it.  In theory, it will be the best if I can create a structure to deal with condition 'no '.  What I mean, it's the entrance to the structure of matter is 3, and I have a case which, with such condition does not (1, 2, 4, 5), the case would run.

    Another example

    If different x of 1, 2, 4, 5, then

    to do this

    Else If x is not equal to 6, 7, 8, 9, and then

    do this

    End

    Yik

    ^ You can also simply make a table with your constant inside and feed to the comparison table, and who publishes an array of bool.

    Another approach would be to wire the digital directly to the structure of the case and type the desired number of a case to represent.  Several case numbers are separated by commas.  A range of numbers can be represented by "..".  for example 6,7,8,9 = 6.9 in the same way... 0 is the range - inf by 0 and 5... is all values greater than or equal to 5.

Maybe you are looking for

  • Reinstall the applications pre-loaded with Windows 7 64 bit upgrade

    I'm looking to upgrade my 32 bit to 64 bit on my HP Pavilion a6710t (which came with Vista 32-bit) OS. Because I'm changing from 32 bit to 64 bit I do a 'Custom' instead of 'Upgrade' installation installation so I I will lose programs installed, incl

  • Data accuracy for USB-9219

    Hello Does anyone have data accuracty and repeatability of the actual temperature for the NI USB-9219 with the collaboration of class A (0.06%) PT 100 RTD (0.0385)? Thank you Michael

  • Abnormally large icons on the desktop.

    I came home and found that my kittens had been magically something to my computer to do all the desktop icons abnormally high. I've searched high and low and still can't seem to find a solution to the normal size. I tried to change the DPI and that a

  • factory to smaller hard drive

    just got a dell 1531 and will have evil to win 8.1 to reinstall on a smaller hard drive. I have the USB but it says that I need the same size of hard drive factory reinstall is extracted. is there a work around? THX

  • KB2952664 does not install

    For a few months now, I tried to install Windows 7 x 64 bit update KB2952664. Whenever I try update download but the installation results in the failure code and applies the 80073701 error. All other updates install OK. I think, but I am not sure, th