Code reuse within the same VI (when he's not a Subvi)

My last question here was awarded a point congratulations "to have been a big question", which is quite annoying, because my current skill level, it is hard to imagine the time when I will never be anything other than a "taker" of this forum!  So this is with a "dumb" question to try to put the right folder.

My front panel has 17 groups of one button + three numerical indicators, it's quite a few elements of façade and 8 groups have an enum indicator as well.  All of these are also controlled by the visibility property nodes or 'off '.

My program gathers all data for these elements in a table at the end of the main loop and functional global variables, it refreshes the properties and values of all these elements of façade.  It might sound like undisciplined, but because of the similarity between the 17 groups that refresh the elements panel above all happens within a pure FOR loop (albeit with a structure AFFAIR of 17 channels inside) if these controls are at least not sprawled all over my block diagram.

The only problem I have is that my program takes a few seconds to initialize and get the loop running, period during which the façade shows garbage (well, maybe not garbage, data maybe related to the last time the program was executed, which may have been a context different, so much better if not visible).

But if I also ran the same right 'before the code refresh of the Panel"after initialization (wipe) the data in my functional overall, the result would be that all of these controls would be invisible or disabled, which is a much better place to start from.

But what I need to put a copy completely separated from the loop on my block diagram to get this effect?

Make a sub - VI is out of the question, because it's the front of this VI that I'm working on.

The word that describes what I want to do (for me) is "subroutine", but in LabVIEW "subroutine" seems to have a very specific meaning, a VI "stripped for speed" that affects no front panel in any case.

Is this just a problem of my state of mind?  It is true that in my life by far most of the code I wrote has been assembler for microphones integrated 8-bit, these applications are always tied to memory.  At this stage of my career balance reverse but many high-level code I write (Yes, I am a dinosaur).  So I tend to worry about the what will be my compiled code.  Should I just put another copy of the loop (in fact, it is only the nodes of property 'visible' 76 I need) on my schematic and disturbing stop on this subject?

A number of observations.

(1) the title of dinosaur not is still FRO seized with many of us competing (I used as well to play the game of 'ICan write this charceter to X lines...) »)

(2) when you do a lot with the GUI, "David FP updated (this is a property of the FP to stop updates of the screen, serach for this) may spped things upward."

(3) I use a GUI controller very often in my applications. I posted about it here.

(4) if Chase you my tags I have a collection of GUI performance.

I put the code in a VI called from my GUI controller (who calls your FG for the info).

Regarding the memory

When we used to depend on someone with a crochete crochet and beads to make our memory, it was justified. Today, memory is cheap and using you save time is fine. When you worry about memory, it's when you find that the code does not fit into 2 G more.

Ben

Tags: NI Software

Similar Questions

  • When my DVD drive would not work, I bought an external. I get the same message when I go into properties. Pilots have been disabled.

    When my DVD drive would not work, I bought an external. I get the same message when I go into properties. Pilots have been disabled.

    Hello

    Check with the manufacturer of the system, their online documentation and drivers, diagnostics, and
    Ask problems known in their forums. You may also check those similar
    resources on the site of the manufacturer of the actual device (for the original drive).

    =================================================================

    It is not surprising that the same issue affects the old and the new drive.

    This problem may be caused by the presence of too many CD/DVD programs competing for resources,
    especially by these programs that run at startup.

    Even if the error is not Code 22 check these:

    Code 22
    http://TechNet.Microsoft.com/en-us/library/cc731267 (v = ws.10) .aspx

    How to fix the Code 22 errors
    http://pcsupport.about.com/od/errorc/a/code-22-error.htm

    How to enable a device in Device Manager in Windows Vista
    http://pcsupport.about.com/od/windowsvista/HT/enabledevvista.htm

    If necessary:

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

     
  • Link chart action for refreshing a report of region within the same page

    Gurus of the APEX

    As long as we have the graph and report region region on the same page and based on the action of graph link must be able to refresh the report region within the same page

    for example: I expense spend by category such as a pie chart and on the link of the action of which I want to refresh a report region by the right of it (in the same page) to show the details contained in this category spend - also I do not have to réactualisiez around the same page, just to refresh the region related to the category Click on the graph

    Any help would be great on this - I use APEX 4.2

    Thank you

    Shas

    Thanks Tom / Scott - sound now worked

    Following my code for the javascript function in the page section,

    function clickPie (pID) {}

    $x('P4_ITEM_CATEGORY').value = pID;

    $('#CategoryDetailsDD').trigger ('apexrefresh');

    }

    And here is my URL of the link graphic action section

    JavaScript:clickPie("#label#")

  • I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What do I need

    I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What should I do to change it?  I use DreamWeaver 2004 on a PC.

    You will need to correct the links that begin with "file".

    Now that your site has been defined, you just delete the bad links and DW left write the good ones for you.

    Click on the yellow folder on the property inspector, and then select the target page.

    If your site is small, you can edit the links manually (remove the part in red)

    content.htm file:///C:/desktop/localRootFolder/subfolder/subfolder/images/

    It would be useful that post you your code on the page so that we can see if you use the old technique or new for these links.

  • Practically in segregation a virtual machine within the same network

    We have a VMware ESXi 5.0.0 (504890) host that has physically 4 network cards. We run 3 VMs on that host and turning a new config. However, this new virtual machine will replace our old Windows DC, DNS, server DHCP etc., and we'd like to config it before going live - will not perform us a migration of swing. We are a little worried that it can interfere with our direct network and that's why I would like to somehow almost segegrate it.

    For the moment, we have a single vSwitch0 linked to all our VMs and management card:

    vSwtich0.png

    What is the best way to do this so that our new DC (with the same domain name and within the same network) can be configured without it interfering with the current network.

    Thanks for your comments.

    Oliver

    Hello

    You can create a second vSwitch without physical network interface cards. Create a VM Portgroup on this vSwitch.

    You can configure your new virtual machine to use the Portgroup. So, he won't have any connection to your network.

    The good thing is, when you want to test things with a customer, you can create a second VM and configure it to the same VM portgroup on the second vSwitch.

    Two virtual machines on this Portgroup can communicate with them because the traffic is handled internally by the host.

    Tim

  • Replying to a virtual machine within the same site

    I try to install vSphere replication v5.1.  I do this without SRM, but just the OVF appliance (s).  We currently have 8 guests distributed between two groups.  We have a vCenter control all this, and all is listed in a Data Center.  The second group is in our DR site and has different storage mapped to it.  I try to use vSphere replication as a means to keep our important VM replicated to our centre of DR disaster.  Is it possible to do so in the only current configuration?

    I'm having a hard time comes to work.  I have deployed two replication OVF devices and I'm stuck trying to replicate a virtual machine actually.  It gives me an error that the data object is not found.  I thought that I needed to 'Connect' from the local site to the remote site, but since this is all a time installing vCenter, I get an error indicating it cannot connect to itself.

    Is what I'm trying to do possible?  If not, could you let me know what I need to change to make it work properly.  Thank you.

    Hello

    The scenario you describe is supported - you can replicate virtual machines from one host to another within the same VC.

    To do this:

    -you will need to deploy vSphere 5.1 replication for a VC and no specific host

    -VR requires VC 5.1. If you liked VC - standalone VR will not work. If you have more recent VC, for example 5.5, you need RV 5.5

    -For replication within the VC even you don't need to link to the target site.

    -Simply select the computer virtual you want to replicate, when you opened a session in vSphere Web Client connected to the VC, point to the same location - must be available in the list, and select the appropriate data store and move through the wizard.

    Kind regards

    -Martin

  • Whenever I turn on my laptop, the system time is the same as when I stop it, how to fix

    Hello

    I have HP DV6 - 2130ca. I recently had a bug that were not work my quick commands. A support forum, I got to know that if I take my batteries for laptops and power and press the power for 30 seconds he'll fix it. Well, he got the problem solved but since then I am having a problem.

    Whenever I turn on my laptop, time is the same as when I stopped him. For example, if I 'Shut Down' or 'Sleep' at 2: 00 and turn it on, to 17:00, the time would still be 14:00 on laptop.  I tried Googling and found a lot of answers slightly different questions on several support forums by using the Task Scheduler to schedule a task to update time only every 5 min etc, but that did not work.

    If I update manually time using time settings Internet, set time until I turned off my laptop or put it to sleep.

    Please help me. Thanks in advance :)

    Hello
    Thanks for your reply.
    The box is already checked and checking windows files took about 15-20 minutes to complete but "Resource Protection Windows not found any breach of integrity"

    Another way to solve my problem? BTW, I tried to search google for solutions, do something else planned and edited another, but not luck...

    Thanks in advance

    Hello

    Have a look here:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-files/how-to-fix-incorrect-file-timedate/1823408f-B0AC-4CAF-a5f4-81242f0d4f74

    Step 3 and 4 could be an easy first try!

    Try the answer here! See if that helps!

    This article may also be useful

    http://www.thewindowsclub.com/Windows-time-service-not-working-synchronization-fails-error

  • Vanishing pages as the entire page would disappear for a website and the same thing when you play card games

    I have HP 15 8.1 - has been works well for 1 month, then disappear when I would be looking for a web site and a mobile on the screens, the entire page and the same cursor when playing card games. I would go to the top left corner where a thumb nail pic. would be and click here to retrieve it. Once is not so bad, but when it is repeated whenever I touch to move the cursor to start to return to the game; something very bad is allowed. I asked the other on the jury of the issue and the N O answer works! Help

    Hi, Will,

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems with the display in Windows. We will surely help you in the matter of fixing.

    I would like to know some information to help you in the matter of fixing.

    (1) you get an error message while the display disappears?

    (2) remember to make changes before this problem?

    (3) is specific whereas, using Internet Explorer or by using a program or application?

    (4) when you say "when playing card games", playing this game in Internet Explorer?

    In the meantime, please follow the following suggestions to solve the problem.

    For problems in Internet Explorer, try to run the troubleshooter for Internet Explorer and see if that helps.

    Resolution of the problems in Internet Explorer

    http://support.Microsoft.com/mats/ie_performance_and_safety/?WA=wsignin1.0

    If the issue is not specific to Internet Explorer and then try to make clean boot and check to see if the same problem happens. By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot the clean boot in Windows

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

    Note: See "how to reset the computer to start normally after a boot minimum troubleshooting" to prepare the computer to start as usual after a repair.

    I hope this helps. Otherwise, feel free to write us again for more assistance, and we will be happy to help you come.

  • Why a pdf form deletes the same data when they are saved?

    Why a pdf form deletes the same data when they are saved?

    As it has been said, in preferences, JavaScript tab. The first entry activates / deactivates JavaScript.

    (just remember to reactivate after making your tests).

    I hope this can help.

    Max Wyss.

  • Hello, I've faced the same problem when you come creative cloud in the loaded application tab and nothing appears.

    Hello, I've faced the same problem when you come creative cloud in the loaded application tab and nothing appears.

    Hi Vlad,

    I think you found the turning wheel on the Adobe CC application.

    Please check the help below document:

    Does not open App | Wheels of progress turn continuously

    You can also view the nets below where this issue has been addressed:

    Adobe Creative Cloud / Desktop App / Home Screen: constant spinning wheel

    Creative Cloud Desktop App taped blue spinning wheel after update.

    Thank you

    Yann Arora

  • Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Try resetting the PS preferences - Preferences in Photoshop

    ~ Rohit

  • whenever I open the creative cloud, it says I'm missing something, and I need to download again. But it says the same problem when I open the new download. Help!

    whenever I open the creative cloud, it says I'm missing something, and I need to download again. But it says the same problem when I open the new download. Help!

    Please uninstall creative cloud:

    Uninstall or remove Adobe Creative Cloud applications

    Reinstall it:

    Download Adobe Creative cloud apps | Free trial of Adobe CC

    I hope this helps.

    Concerning

    Megha Rawat

  • I just bought Adobe Acrobat Pro DC of Office Depot. I followed the instructions GB/getserial enter the redemption code and downloaded the file. When I tried to install the file that it did not recognize my numbered series, I'm not sure wha

    I just bought Adobe Acrobat Pro DC of Office Depot. I followed the instructions GB/getserial enter the redemption code and downloaded the file. When I tried to install the file it did not recognize my serial number, I don't know what to do next?

    What exactly does it say when you try to install it? What is the exact error message?

  • Peut funtion Vmotion and Storage Vmotion with Intel and AMD hosts within the same cluster

    Hi, I can do storage Vmotion OR Vmotion between Intel and AMD hosts within the same group?

    Thank you

    No, it is not possible to vmotion or storage vmotion between CPUs from different manufacturers - I heard rumors that two manufacturers are working on technology that will help in the future-

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • 2 refcursors within the same procedure using

    Hello
    Can we use 2 refcursors within the same procedure. This may seem strange. But I have a script to do so - one to dynamically check for some validations and another to return a result set.

    Yes, pass by the example below.

    CREATE OR REPLACE PACKAGE CURSPKG AS
    TYPE T_CURSOR IS REF CURSOR;
    PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
    DEPTCURSOR ON T_CURSOR);
    END CURSPKG;
    /
    CREATE OR REPLACE PACKAGE BODY CURSPKG AS
    PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
    DEPTCURSOR ON T_CURSOR)
    IS
    V_CURSOR1 T_CURSOR;
    V_CURSOR2 T_CURSOR;
    BEGIN
    V_CURSOR1 OPEN FOR SELECT * FROM EMP;
    V_CURSOR2 OPEN FOR SELECT * FROM THE DEPARTMENT;
    EMPCURSOR: = V_CURSOR1;
    DEPTCURSOR: = V_CURSOR2;
    END OPEN_TWO_CURSORS;
    END CURSPKG;
    /

    I hope that it would be useful.

Maybe you are looking for

  • Some programs using windows 10 ask for flash has to be installed, but it is already!

    10% of my programs (e.g. Pandora) ask for the Flash needs to be installed, but the last Flash is already installed. These programs run on Chrome. Technical support for these programs say just move to Chrome. Any ideas?

  • Number inaccessible online on iPad 2 (iOS 5)

    I bought an online number so my parents can call me, but so far, I can't use it on my iPad 2. First of all, Skype will be logg off after a while even if I'veset to ever do it, but this topic is being discussed on a different thread. The second proble

  • All of the updates fail.

    All of my updates important keep neglect and are now for about a year. Tried most things to solve this problem, any ideas? Maybe reformat? right, here is some information. Windows vista Home premium sp2 32-bit sys. last successful update installed wa

  • How to remove the code of product displayed in public before being stolen

    By mistake I posted Windows Xp (Home Edition) in public. Please advise me how to remove the same before being stolen by others

  • External hard drives OS required permissions

    I save photos on a portable external hard drive and move the reader between a XP desktop computer and a laptop Vista Business 64.  I had trouble deleting images off the drive on the Vista system and now understand that I have to go and set the permis