run a while loop in separate vi, minimize the window flashing

My apologies in advance for not including a VI; I cannot give it, cannot even provide screenshots.

I have a state machine base with a cluster of Boolean values that are analyzed in the 'default' State, the scan index = true determining the next State. All other States to return to the default state. The State of 'stop' stop the loop with a Boolean constant = True, located inside the structure case wired to the time entry conditional loop (all States have a Boolean constant False wired to it). Apart from the cases

statement, the wire connected to the conditional entry is connected to a Boolean indicator, ' Stop, in really. The time delay within the State of the machine while loop is currently set at 100 ms.

In addition to the 'State' shift register, the state machine has a "boolean" shift register. All States, except one, feeds the value passed the Boolean value through to the next State (i.e. wired directly from left to right the structure of the case). The exception is the State which inverts the Boolean value, with the output of the inverter transferred to the State following and also connected to a Boolean flag, 'Show the State', the

indicator outside the case statement but inside the while loop. All other States wire just the previous state of the Boolean value through the following State, unchanged.

In addition to the State of the machine while loop, I have a parallel while loop (scourge of the LV forums). All entered conditional loop is connected to a local variable to 'stop, really. " A True/False case in this while loop structure contains a Subvi in the case of True value. The Boolean value of entry to the case statement is connected to a local variable for 'Show status'. The Subvi, which is in the real case is to display the State of the

user.

The Subvi which provides status through its frontage runs a script in python via a 'comand prompt"vi. The necessary update to the python command send is ~ 1/second. Within the Sub - VI is a 1 second delay time after execution of the code.

It works but I'm doing some improvements with minimal impact on what I have.

Two cases of VI properties that relate to the conduct of the State Subvi (floating or default, modal does not at all):

1. with "Firm when previously closed" selected, the window switches VI (via the main switch VI) open and closed but when it is open there is the a second window flash that could cause seizures in some users.

2. with "closes when previously closed" deselected, the window remains open and it is difficult to tell the difference between the running state and is not running. In addition, the Subvi window will not be reduced for this option.

Is there a little invasive change, I have the code in force to stop a second flash described in #1 above and activate / deactivate the Subvi status window?

Thank you

Jeff


Tags: NI Software

Similar Questions

  • How to run a while loop for 0.5 seconds?

    Hello

    I am doing a project and I'm stuck with the programming.

    Some time ago in a loop inside a box structure. When the real state of a structure box is enabled, the loop inside, should run for 0.5 seconds. How do this?

    Thanks in advance.

    Why you want to run a while loop? what you do inside that? If you want to perform any operation for a specific time, you can use a loop for.

  • Control of the event: how to stop the race while loop within a structure of the event

    Hello

    I have some problems with control of a while loop inside a structure of the event (see annex VI).

    I have 3 buttons (the "Start measurement, stop, exit the program"). When a measure is running, it should be possible to stop the measure by clicking on "Stop the measure", but it does not work.

    Someone at - it an idea?

    Thank you very much and best regards,

    Michael

    Hi Michael,

    create a process parallel to your measurement. You can use the design model "producer/consumer with vents. You'll find it with «File-> new...» ».

    Another possibility would be to remove the "lock frontpanel" sign, in the case of event start measurement.

    Mike

  • How to control a VI (with a while loop and a structure of the event) from an another VI

    Hello

    I have the main VI which I want to be driven from an another VI. But I can't do that and I don't know what is happening.

    For example: VI main, I have a while loop with a structure of the event, there is a Boolean controller controlling a Boolean LED, which is inside the structure of the event. And the other VI, there is just a Boolean controller and functions of applications to open the main VI.

    How can I control the Boolean LED in VI main, changing the State of the Boolean controller in an another VI?

    Thank you.

    There are different options, but depending on what you want to do. For this example I can't give you a specific solution.

    I do not understand why you do what you do. Why do you call your 'principle VI' dynamically? What is the advantage to do? There are also other ways to call a VI dynamically, based on real cases (for example the method "call and forget", etc...).

    In you principle VI, control you Boolean ("THATCHER") is not the case of corresponding event. This is not usually a good practice, keep it inside.

    Also, why you try to communicate with the caller and callee VI through such a way to twist? There are better ways to do it.

    In one of my projects, I use the user event to launch orders in case of case of appellant VI.

    some Associates more readings for you:

    http://www.notatamelion.com/2015/03/23/how-to-make-dynamic-subvis/

    http://forums.NI.com/T5/LabVIEW/Dr-Damien-s-development-event-structures-III-communicating-with/m-p/...

  • Firefox stuck as maximized, "restore down" minimizes the window

    Firefox window is stuck as enlarged, the restore down does not work correctly.

    "restore down" minimizes the window & it won't then return to the screen unless I right click on it on the task bar & then click maximize.
    

    Button reduce works as it should and the window can be restored (maximize) clicking on Firefox in the taskbar.

    When it happened first, I closed Firefox & restarted Windows (Vista). This has not solved the problem

    This is caused by Firefox 'restoration' as a small window "off screen" for some reason any. This bug has existed for a while, but for some reason some has never been properly fixed. Restarts without worrying won't fix because it maintains simply restore the window off screen ever time.

    The work around is to select the window in the task bar, click on 'move' and then press an arrow key. This will bring the window on the screen where it can be relative to the size, most of the time that he wouldn't do it again, it seems to happen more often for me during a restore, but it is a sporadic, so I'm not sure what makes.

  • Trying to run Hallmark Card V2 and it "goes beyond" the window and will not reduce in size

    I am new to Windows 7.  An old program I have and seems to work - so-Hallmark Card Studio V2 is above all designed for Windows XP.  "However, when you open the program it" overflows the monitor window and the symbol of "boxes" at the top right normally used to enlarge/reduce the size of the window is covered on mainly off screen on the monitor.  So I can't minimize the window to fit something like 3/4 of the monitor.  I tried all the keyboard traits that affect Windows, but the only thing that works is to reduce the window to nothing or on-screen "overfull".  I tried to run the program under different settings from earlier Versions, but which has no effect either.

    Any suggestion is appreciated.  Thank you!

    WEC

    Your best bet is to contact the developer of Hallmark card because we have no idea if it's even compatible with win 8 and knows virtually nothing about his works.

  • Cannot minimize the window Lightroom 4?

    I'm used to be able to reduce the Lightroom 4 window to the dock on my Mac, but now the reduction in gray button. I hit F a couple of times and pedaled through the different points of view but it has not restored the function reduce or a restart Lightroom. Any suggestions on how to fix this?

    Hello. ---> Response to bottom.

    LR 5.0 / Mac OS X 10.8.4 / 27 "iMac

    LR window is zoomed, and I can't change the size of the window.

    Red, yellow, green buttons and the top bar of the gray application is missing.

    CMD - M minimizes the window, but does not change the size of the window.

    I can't catch the top, left, right, bottom or corners of the window. The cursor does not change, but I can't resize the window.

    The menu option window / Zoom does nothing.

    [F] once, twice running, but the top bar does not return.

    Restart the Mac does not help.

    Revival of LR does not help.

    I quit all other applications.

    When I activate the Mission control, I can see the red/yellow/green buttons and the application grey top bar.

    As I was to delete the preference files, I tried this and it worked!

    [MAJ] F

  • How to run a while loop continuously without iterate loop inside the fi, a condition is met

    I enclose a VI that once the answer 28 comes the loop must stop and loop should continue an iteration. Can you show me a way for her

    You can stop the loop when a certain condition occurs: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/add_cond_to_for_loop/

    Add a register to offset for the while loop and to implement the feature as below:

  • Forms10g + JRE: minimize the window IE after login

    Dear professionals,
    is anyway to minimize program window of internet explorer (or firefox) after the logon user for the application (except manually, of course :))?) We use JRE rather Jinitiator and property separate_window = true. Because users sometimes accidentally close opening IE windows, so they close asked - I want to minimize those risks.
    Thanks in advance,
    Adnan

    Basically there is the

    htmlBeforeForm
    

    and

    htmlAfterForm
    

    Settings in the formsweb.cfg where you can add additional html and JavaScript. Just Google how to minimize a window via JavaScript and put it in the htmlAfterForm

    This will reduce the browser window when you load your forms application. If you want to run javascript on certain events (for example in a trigger WHEN-BUTTON-PRESSED) you can do it with

    web.show_document
    

    Just search here on JavaScript forum and take a look. I'm sure you'll find a starting point. Of course if you have trouble, or something is not clear for you feel free to ask :)

    see you soon

    P.S.: implementations of JavaScript differ between browsers, I can assure you of headaches; What workes in IExplorer does not work in Firefox and vice versa. If you encounter problems with this please add versions of full browser as well as this material certainly in this case.

  • How can I minimize the window of 123 media player with a keyboard command

    can you please tell me that how I can reduce the window of 123 codec media player with a command of key board.

    Just like,
    When I press the alt + space + n, it minimizes the current window, but it does not work on the media player. can you please suggest me any command for this purpose. I mean, only a short drive, not a long process.
    Thank you in anticipation of all

    Hi talhasabir,

    The closest you can get use Windows + M key that will minimize all windows. You can use Windows + D (display the desktop). You use this shortcut will allow you to use Windows + D now show the last window before the display of the desktop computer.

    For reference:

    Keyboard shortcuts for Windows

    http://support.Microsoft.com/kb/126449

  • While loop with Date counter in the procedure

    Hi guys

    Please find below mention this procedure in which I got a loop that got to the counter to increment as variable date... I don't know what hurts me, but it does not work.

    Can you please help me in this.

    Concerning







    --------------------------------------------------------------------------------------------------
    MY procedure
    --------------------------------------------------------------------------------------------------
    create or replace
    PROCEDURE sp_createTimeDim
    (
    -declaring variables

    DT in January 1, 1999 in DEFAULT DATE dd-mm-yyyy '

    )
    AS
    BEGIN

    So WHAT DT < = 1 January 2010 ' LOOP
    INSERT INTO DateDim (ActualDate) VALUES (sp_createTimeDim.DT);
    / * increment the date by a day * /.

    DT: = DT + 1;


    END LOOP;
    COMMIT;
    END;

    Here is a procedure that serves as a wrapper for the insert statement that I posted:

    CREATE OR REPLACE PROCEDURE SP_CREATETIMEDIM
    (
         pStartDate     IN DATE
    )
    AS
         pEndDate     DATE := TO_DATE('01/01/2010','MM/DD/YYYY');
    BEGIN
         INSERT INTO DateDim(ActualDate)
         WITH date_range AS
         (
              SELECT      pStartDate + (LEVEL - 1) AS DT
              FROM     DUAL
              CONNECT BY LEVEL <= pEndDate - pStartDate + 1
         )
         SELECT     DT
         FROM     DATE_RANGE;
    
         COMMIT;
    END;
    /
    

    HTH!

  • Where run as command option admin is spent on the Windows 7 operating system?

    HP Pavilion p6330f Home Premium Windows 7 desktop PC Firefox 29 IE9 Opera 21 Maxthon 4 cloud browser I'm Admin and single user I connected this title and user page which clearly shows. Recently, I ran Malwarebytes and quarantined and then deleted what he found. Now, I'm no. run as administrator anywhere command option. I can't open anything either on the start bar, including browsers, Windows Update or invite command or Admin Tools. I still have sidebar gadgets and I had to use the link "Get more gadgets online" to open Firefox. Of course I had deep six gadgets but I run Windows 7 OS and Microsoft has no alternative, right? In any case, I tried all the suggestions I got on the help sites 17 previous forum that I realized. None worked. I reinstalled wusa.exe and his counterpart KB that I forgot the number. I can't install RKill, MS FixIt, minitoolbox, or any other emergency program. When I try to run the troubleshooter to Win Update I get error 0xB80010E. It's registry stuff but I have eliminated all errors of reg Malwarebytes, MS Secy Essentials and Glary Utes 5 found. All my programs have been updated as much as I can. I defragged and cleaned and did everything short of a clean install and with 40 years of data of previous PC 5 in Henrietta, is NOT an option! I want to just my race as options for the command admin back once again! Can anyone help? I do surveys online and web ad surf for a living and I visit foreign websites, anime and pix. I do not visit * sites! The fact that I MUST allow all cookies, ads and popups. I'm at my wit's end! I have nothing without my web world! No family who gives a d - n, no real friends, friends just online who usually ignore me lately, in a Word, without the web, I might as well be dead! Maybe I'm supposed to be because I am a veterinarian we and nobody seems to care about me! I fought for this ugly country who care more about greed and profit that they people and honor! I wish that I was born in Japan, where they care about people not profit and greed! If you cannot or will not not help, the HE - with her! I'll just give up and wait as the grim reaper! In July, I'll be 65, but who cares about me huh? Thanks, I hope and sayonara for now-keimanzero

    You have two options.

    Option 1

    Perform a repair installation. (Recommended)

    http://www.SevenForums.com/tutorials/3413-repair-install.html

    Note: I recommend to do a repair installation simply because, while reading your post, I noticed that you used registry cleaners on this system and there is no telling how much damage that may not be made to your registry.

    Option 2.

    You can simply add the option "Run as Administrator" to the context menu of MSI, by following the steps in the link below.

    http://www.SevenForums.com/tutorials/158118-run-administrator-add-msi-file-context-menu.html

    Note: I recommend the total abolition of any program of cleaning registry you may have installed on your system, immediately.

    If you have installed Malwarebytes, try to run a full scan, before proceeding with the repair facility.

  • My Firefox tabs resize when I minimize the window of the browser

    Hello

    I was working on Firefox when I had to reduce the window of the browser. I noticed that earlier, all the tabs in the window would resize automatically to fit the new window size. Now, however, the size of the tabs remains constant, which means that unless the 3 - odd first tabs, all the others disappear inside the browser window.

    It must be because of some addon conflicts I guess. However, I can't figure out who it is. Is it possible to make the tabs resize without having to trace what addon caused this problem?

    Thank you

    Maybe you previously had the extension Default FullZoom Level. This extension has an adjustment to the setting of the window, although it may not work correctly in some cases.

  • Running out of disk space HARD - Question on the Windows folder size

    Hello! I am troubleshooting my HARD drive space. I have a 'C' HDD 16 GB with nearly 0 MB space left (fluctuates probably due to created restore points).

    In any case, I discovered that my Windows folder contains about 7.7 GB of files. (I have Win XP Home Ed, 2002, SP3 installed - with MANY updates that have been installed over the years) 7.7 GB seems a lot.  Random check on the web (not sure how reliable replica is) I see less than 2 GB is what should be there.

    I don't think that there are many 'other' stuff in there, certainly nothing that I placed there. is there a way to check / clean this folder?

    Please do not suggest to re - install Windows as the solution, since at that time, I will buy another computer first.  then put in shape this one. It is clocked at 2.66 GHz Intel Pentium, so not ready to junk food she still.

    Thanks for your suggestions. Best regards, Frank V

    Frank

    Your list of the most fragmented files that partially reveals the magnitude of your problem. Note that the list does not display very large files that have less than 797 fragments. There are also many small and medium-sizes of the files fragmented with less than 797 fragments. A notable omission in your list, this is the System Volume Information folder. I can't believe that it is not fragmented, she must be on this part of the list is not displayed.

    To defragment by using with Windows XP Disk Defragmenter, you need a bit less 15%. Defraggler is my favorite Defragmenter, but I doubt that it will succeed on your C partition. With Defraggler you can defragment single files, except some files, including those related to safety programs. You must try to reach 20% of free disk space.

    Your swap file is severely fragmented and illustrated perfectly why the possibility of using the "let Windows manage" is not the best solution if you want the better system performance. Minimum setting fixed maximum = pagefile avoids what you see on your system. Unfortunately with a populated partition, it is very difficult if not impossible to resolve completely without having to reinstall the operating system. However, trying to mitigate the impact of what you see, it's something to watch much later in the restoration, the functioning of your computer.

    My previous to Outlook Express references were specifically directed against this program. Outlook is a totally different program and solutions for Outlook Express do not apply to Outlook.

    You cannot compact Outlook pst files and archives, except those who created versions of Outlook prior to Outlook 2003. You can empty deleted item folder and you must first check that it is empty. I would then back up your Outlook Archives on an external drive or flash before attempting to move the locations of archive. Once you have moved the archive folders successfully I would then move messages from your current folders to the archive folders. If you archive the current materials first of all you have more to lose if the process of change the default location of the folder goes awry. Then, you can archive your current messages and change the default location of the current file. You can move messages current return from archives as a last step if you feel the need to do so.

    I copied a few instructions from an external source on how to change the default locations. I hope you find these useful.

    To change the location of database of Microsoft Outlook, the OUTLOOK file. PST is to be moved. In Windows XP, you can find this file in the folder C:\Documents and Settings\loginname\Local Settings\Application application\Microsoft\Outlook\ and in Windows Vista, you can find it in the C:\Users\loginname\AppData\Local\Microsoft\Outlook\ folder. After Outlook is closed, the OUTLOOK folder. PST can be moved easily using Windows Explorer by cutting (CTRL-X) and paste (CTRL-V) in the personal folder on the partition data (for example D:\loginname\Outlook). Now, the file is deleted from the original location, Outlook will present an error message because the database can not found. Accept the error message, navigate to the new location of the OUTLOOK. PST file and restart Outlook.

    ATTENTION: If automatic archiving is enabled, the ARCHIVE file. PST must be moved as well! This file can be moved to the same location as OUTLOOK. PST, following the same procedure.

    Source:

    http://www.optimizingpc.com/miscellaneous/changing_storage_location_personal_folders.html

    Hope this helps, Gerry Cornell

  • Loop "Failed to setup of the Windows updates"

    Recently, I updated the installation of my laptop due to severe speed due to bloatware limits that were provided on the new installation of my laptop. I bought a few months ago and it was fine, the issue of the speed bar and was updated to the latest edition of 8.1 from 24.

    Since the update however it updated and I have the configuration error. I tried hard reset options and wait etc. and the laptop was more or less on the same page for almost 6 hours - a hard reset allows not a choice of boot - he sends me directly to the screen of "failure". In addition, I do not have the disks as the product came with 8 pre-installed windows (where the bloatware).

    For reference, I use a 250 HP (i3 / 4 GB / Intel graphics card)

    Seriously, I'm full of ideas - any help would be greatly appreciated.

    Glenn

    Hi Glenn,.

    This issue could be the corrupted Windows Update components. So I suggest you try to rename pending.xml file and check if it helps.

    You can refer to the suggestion made by me in the following link and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_update/Windows-8-stuck-at-failure-configuring-Windows/178c8652-997e-4006-BC0E-7d1d23f847f2

    I hope this helps.

    Please report if the problem persists and we will be happy to help you further.

Maybe you are looking for