Controls[] Cluster Property slow to run

Hi,
I would like to register controls inside clusters for mouse events.
Since there are a lot of controls to register, I want to do it programmatically and I created a VI that searches for control refereces inside cluster with recursion.
The problem is that this code is too slow.
I have a main-cluster that contains 8 sub-clusters; each of the sub-cluster contains some sub-cluster and some controls.
As you can see in the figure I attached, it takes about 3 seconds to do the job, so it's too slow to run every time I load a page in my subpanel.
What's wrong? Is there another way to accomplish the task?
I'm using Win 7 64-bit and LV2012 SP1 32-bit. In the past I used this VI but I didn't find this behaviour.
Thanks in advance for any suggestion,
Alberto
GetClusterControls.vi (front panel):
GetClusterControls.vi (block diagram):
GetControlsRef.vi:
Attachments:
GetClusterControls.vi ‏82 KB
GetControlsRef.vi ‏23 KB

I haven't looked closely at your code, but I suspect that the repeated resizing of arrays might be at play. I wouldn't expect it to have this effect with a relatively low number of elements, but I haven't analyzed it closely.
What I usually use for this type of stack based recursion is a queue. You add and remove elements from the queue until it's empty and you build a parallel array for the results. Haven't had performance problems with it.
Another option which might help you here is the Traverse for Reference VI. In later LV versions this should be under the scripting palette if you have scripting activated. If not, it should be in vi.lib\Utility. I think it traverses the entire VI, so you might need to filter out the results after it's done by checking the owner of each control to see which are in the cluster.
Try to take over the world!

Similar Messages

  • Tab control top property

    Hi
    I am trying to create a program that spans on the entire screen i've set the pane size to the same size of the screen and set the origin to 0,0
    My problem is that the tab control which almost spans on the entire screen is out of the borders and can't all be seen.
    When i try to set the top property on the tab control property node it moves all the controls inside the tab control down every time I run the program so after 5 runs al my controls have moved out of the screen too.
    Any help would be much appreciated
    Thanks

    "Tabview"   I like that.
    Yikes, why are your fonts at at 7pt??
    Anyways, I am not seeing the problem that you are talking about. I can run it continuously and the controls don't change location over and over. They all go to the locations calculated and those locations don't change from run to run.

  • Modifying property file at run time

    Hi all..
    I have been using properties file for handling few configurations in my project.
    whenever i need a change in the file, i had to change it in corresponding file, create a jar file and then introspect it into project and then publish the project.
    Is there any other way of achieving it.... can we modify the property file at run time just like we do for JSP pages...
    Or any other better way of doing this.. pls suggest..
    (am using 10g OBPM)
    Have a nice time...
    Regds,
    Viswanath

    Sharma,
    write a java class that reads a property file from the external path. make the jar file non-versionable in case you need to update that later. if you are on J2ee container all you need to do it drop the file @ domain root and u shd be good to go.
    sample code I am doing this for log4j.properties and application propertied.
    public class BPMLoggerUtil {
         // Initializing the default Logger //
         private static Logger logger = null;
         private static final String DEFAULT_PATH = "resources/log4j.properties";
         private static HashMap map = new HashMap();
         * This is the init method
         * @param propertyPath
         public static void init(String propertyPath){
              try {
                   if((logger = (Logger) map.get(propertyPath)) == null){
                        Properties properties = new Properties();
                        properties.load(LoggerUtil.class.getClassLoader().getResourceAsStream(propertyPath));
                        PropertyConfigurator.configure(properties);
                        logger = Logger.getLogger(PropertiesHelper.getProperty("resources.test", "AppName"));
                        map.put(propertyPath, logger);
              } catch(Exception ex) {
                   ex.printStackTrace();
         }

  • Iphoto running slowly, Macbook Pro also very slow when running multiple apps

    Iphoto has become almost impossible to use. I keep seeing the loading rainbow coloured circle every few seconds. Same with preview. Please help!
    Problem description:
    iPhoto runs very slowly, Macbook has also become slow while running apps simultaneously - loading circle shows up all the time.
    EtreCheck version: 2.1.8 (121)
    Report generated 29 March 2015 7:37:41 pm IST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,2
        1 2.2 GHz Intel Core i7 CPU: 4-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 822
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 384 MB
            Color LCD 1440 x 900
        AMD Radeon HD 6750M - VRAM: 1024 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 1:5:22
    Disk Information: ℹ️
        TOSHIBA MK7559GSXF disk0 : (750.16 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 748.93 GB (494.72 GB free)
                Core Storage: disk0s2 749.30 GB Online
        MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. iPhone
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Toast 10 Titanium/Toast Titanium.app
        [not loaded]    com.roxio.BluRaySupport (1.1.6) [Click for support]
        [not loaded]    com.roxio.TDIXController (1.7) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.marvell.kext.USBGenericPrinterClass (1.0.0) [Click for support]
    Startup Items: ℹ️
        HWNetMgr: Path: /Library/StartupItems/HWNetMgr
        HWPortDetect: Path: /Library/StartupItems/HWPortDetect
        MobileBrServ: Path: /Library/StartupItems/MobileBrServ
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.hp.help.tocgenerator.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
    User Launch Agents: ℹ️
        [running]    com.hp.printerAgent.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
    User Login Items: ℹ️
        Flux    Application  (/Applications/Flux.app)
        Dropbox    Application  (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: Java 7 Update 55 Check version
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        QuickTime Plugin: Version: 7.7.3
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User internet Plug-ins: ℹ️
        WebEx64: Version: 1.0 - SDK 10.6 [Click for support]
        Google Earth Web Plug-in: Version: 7.0 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
        VLC Streamer  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
            22%    WindowServer
            14%    mds
             2%    Activity Monitor
             2%    Dock
             2%    sysmond
    Top Processes by Memory: ℹ️
        387 MB    firefox
        159 MB    mds_stores
        107 MB    Finder
        107 MB    WindowServer
        99 MB    com.apple.WebKit.WebContent
    Virtual Memory Information: ℹ️
        28 MB    Free RAM
        1.60 GB    Active RAM
        1.58 GB    Inactive RAM
        1.08 GB    Wired RAM
        4.89 GB    Page-ins
        9 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 29, 2015, 06:30:27 PM    Self test - passed
        Mar 29, 2015, 04:05:49 PM    /Library/Logs/DiagnosticReports/Preview_2015-03-29-160549_[redacted].hang
        Mar 28, 2015, 06:31:45 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Adobe Flash Player Install Manager_2015-03-28-183145_[redacted].crash
        Mar 27, 2015, 01:31:27 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Mail_2015-03-27-133127_[redact ed].crash

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • OracleDataAdapter.Fill() slow while running in development enviornment

    I have found a potential issue with the OracleDataAapter where it runs slow during a Fill() execution under the following scenario:
    1) ODP.NET Version 10.1.0.400
    2) Visual Studio Framework Version 1.1
    3) Select command is a simple "SELECT * FROM <TABLE>" where some of the columns returned contain null values
    Under this scenario, the fill operation is slow and my CPU is pegged at 100% when running inside of the Visual Studio development environment. If I run it outside the development environment (CTRL-F5) it is not slow and runs fine.
    What I have found it the Oracle.DataAccess component is throwing an internal exception whenever it encounters a null value. The error can be obtained by changing Visual Studio to break into the debugger for all CLR exceptions (Debug Menu --> Exceptions). Here is the error being thrown:
    A first change exception of type 'System.InvalidCastException' occurred in oracle.dataaccess.dll
    Additional information: Column contains NULL data
    I can reproduce this problem with three lines of code:
    1. DataSet dataSet = new DataSet("SAMPLE");
    2. OracleDataAdapter adapter = new OracleDataAdapter("SELECT * FROM MYTABLE", "Data Source=MYDB.WORLD;User Id=my_user;Password=my_pwd");
    3. adapter.Fill(dataSet);
    I have seen other posts from people experiencing a similar problem, but not a resolution. Does anyone know if there is a resolution to this issue or is this a bug in the ODP library? Any help would be greatly appreciated.
    Thanks!
    Ross

    Well, I tried to open a TAR but don't seem to have ODP.NET anywhere in the product list. Interesting (perhaps) is that my test case runs in about 8 secs using the MS provider and something like 176 seconds using ODP.NET 10.1.0.4.0 and Oracle Client 10.1.0.4.0 on my low-end test machine. Here's my simple test case using the SH demo schema:
    using System;
    using System.Data;
    // using System.Data.OracleClient;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace DataAdapterTest
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
          int tickStart = 0;
          int tickEnd = 0;
          string constr = "User Id=sh; Password=sh; Pooling=false";
          OracleConnection con = new OracleConnection(constr);
          con.Open();
          DataSet ds = new DataSet();
          OracleDataAdapter da = new OracleDataAdapter("select * from customers", con);
          tickStart = Environment.TickCount;
          da.Fill(ds);
          tickEnd = Environment.TickCount;
          Console.WriteLine("Total Ticks: {0}", tickEnd - tickStart);
          da.Dispose();
          ds.Dispose();
          con.Dispose();
    }- Mark

  • Performance is slow after running Gather Schema Statistic

    Performance is slow after running Gather Schema Statistic. Reports are taking long time to complete than earlier.
    R12 Application and 10.2.0.4 is the database version.

    Hi;
    Please review:
    gather schema stats conc. program taking too long time
    Re: gather schema stats conc. program taking too long time
    Regard
    Helios

  • What are the controlling parameters for a MRP run?

    Hello! SAP gurus,
    Can any one explain me about Control Parameters related to MRP Run.
    Thank you,

    Please look at the following posts
    mrp
    MRP Control parameters(MD02)-Regarding.
    Regards,
    Harish

  • Is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    I had been having a similar problem on Lion with Safari pdf files despite downloading the latest Adobe Reader XI.
    I would constantly get the same messages - There was an error opening this document. The file is damaged and could not be repaired. And I would get a blank page when I tried to print the pdf if I tried printing from the Safari web page using File - Print from the top toolbar on my laptop.
    Then I came across the grey Safari lozenge with action icons.
    This allowed me, without downloading the pdf, to print the pdf file direct from the Safari page by using the Print icon on the grey lozenge that appears centrally three quarters down the screen.
    Then I discovered that if I save the pdf using the Save icon from this same grey lozenge on the Safari page I can open and print this pdf version from my desktop.
    I've tested it with a couple of different pdf files and these methods work using the grey lozenge icons but the same pdfs files don't work using File - Save As on the Tool Bar.

  • Customize a control and property nodes

    I don't know if and how it is possible. Is it possible to customize a control, but having access to property nodes too? 
    I explain better: if I create a control and I customize it, the customized control is a file.ctl, which has only front panel, but not block diagram. So that I cannot customize it using property nodes. Is there a way to bypass it?

    You don't need to create a .ctl file to customize a control.  It is just there so you can save a control you have customized to a file.
    Yes you can customize a control using property nodes.  You just use property nodes that are implicitly linked to a specific control, or you explicitly link to a control by passing a reference to the control to the property node.
    If you want to programmatically save a customized control to a .ctl, or open a .ctl file and customize it further, I think you'll have to look into LabVIEW scripting.  But I wouldn't do anything like that if I were you until you get thoroughly comfortable with using regular property nodes, which I don't think you are otherwise you wouldn't have asked this question.

  • Launchpad and Mission Control animations are slow

    Recently the animations for when opening Launchpad and Mission Control have been slower than usual. All the other animations seem to working fine and it's just those two which are the problem. Now whenever I try to open either one of them it would take ages and theres no point opening it at all. Is there a file that I could edit ot is there a Terminal command to speed it up?

    Hello Ilhun,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    OS X Mavericks: If graphics-intensive tasks slow down your Mac
    http://support.apple.com/kb/PH13952
    Have a nice day,
    Mario

  • Custom control color property

    With the included controls like the OK boolean you can change the true or false color by going to Properties >> Apperance >>Colors.  Then click the color box to change the state color.  Is it possible to do the same with a custom boolean control?
      I have searched some and it does not sound like it is possible, but I figured that I would ask.  I have a diagram where I used some pipes from the DSC module image navigator to make some boolean pipes.  I just changed the properties for the different colors then pasted them into a boolean control for true/false cases.  But now I am thinking of changing the colors from gray/red to gray/green.  Is there an easier way than just starting over and making new booleans with the desired colors?  Or is there a better trick for custom controls I don't know?
    Thanks
    Solved!
    Go to Solution.

    Here is a sample of the control as a type def and a vi with the Colors(4) property cluster.  I must be doing this wrong or not explaining it correctly.  So if you could look at the files and be able straighten me out I would appreciate it. 
    Attachments:
    Control 3.ctl ‏8 KB
    test1.vi ‏12 KB

  • Error Binding DatePicker control Date property

    I am building a Universal App and am getting a run time error on my DatePicker control when trying to bind the Date property.
    I have this in my XAML:
     <DatePicker x:Uid="StartDate" Header="Start Date" Date="{Binding StartDateUtc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
    I am binding it to a DateTime property called StartDateUtc. However when firing up the app, I am getting this error:
    Exception = {"The text associated with this error code could not be found.\r\n\r\nFailed to assign to property '%0'. [Line: 42 Position: 63]"}
    Position 63 happens to be the Date Property. If I remove it, the control is displayed.

    Hi Craig,
    >> I'm not sure a whole project is needed. Here's the XAML
    I failed to reproduce your issue “Failed to assign to property”.  Could you please share a sample project through OneDrive to help us reproduce this issue?
    By the way, the type of
    DatePicker.Date property is DateTimeOffset rather than DateTime. Please try the ViewModel as following and let me know if it makes any difference.
    public class CustomViewModel : INotifyPropertyChanged
    public event PropertyChangedEventHandler PropertyChanged;
    private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    private DateTimeOffset _startDateUtc;
    [RestorableState]
    public DateTimeOffset StartDateUtc
    get
    return this._startDateUtc;
    set
    if (value != this._startDateUtc)
    this._startDateUtc = value;
    NotifyPropertyChanged();
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Limit control to property of a waveform graph

    I have a waveform graph in which I would like to limit practically all the property of the contextual menu. Such as:
    Visible items, Auto scale X and Y...
    There is a way to do that. By setting "Disabled" to 1.
    My problem: I would still like to let the user change the Y scale by double clicking it.
    Thanks
    Nitrof

    Nitrol,
    Unless I'm mistaken (it happens), the only way to really do this is completely disable all functionality and add the functionality back through your front panel. I would suggest a very easy approach by putting two digital controls (or one array with two elements, or a cluster, or...) which would be the min and max of the Y scale. You can even make it more simple by just adding a Property Node of the graph, selecting the Y scale, and creating a control. That would save you a lot of work. It wouldn't be as neat and tidy, but it would get the job done with the least amount of work.
    If you want to know how to do this exactly as you specified, here goes:
    Place a picture control over the y scale of the graph. Make the picture invisible (the "T"
    color for the frame and the drawing area. Then, with the picture selected, move it to the front. Next, in the diagram, get the mouse down data from the Mouse property in a while loop. Throw the mouse down data into a shift register. Make the loop have a delay (wait) of about 200ms. AND the output of the mouse down button with the previous one. When the output is true (of the AND), stop the loop. You have detected a double click of the Y scale. NOW, you have to add a subVI that pops up (dialog) options for the Y scale. The user will change the scale, and then you can input these into the Y scale of the graphs property node. Yes, its quite complicated, but the results are exactly what you are looking for.
    Of course, I always recommend the KISS principle (Keep It Simple Stupid).
    Good luck

  • Control's property pages at runtime???

    I am currently implementing an ActiveX control with Measurement Studio for Visual Basic.
    Everything is going fine, but I have one general problem which I cannot solve. The control should show the own property pages at runtime mode. Whit one OLE control, developed under visual c++ or ATL this is strength forward. But I have no idea how to do this from Visual Basic. I spend a lot of time to search in internet but unfortunately there is no information at all.
    Please HELP!
    Thanks in advance!
    Nikolai

    You can do this with the ISpecifyPropertyPages COM interface and the OleCreatePropertyFrame function. The hard part is getting definitions of the interface, interface methods, supporting data types, etc. that you can use from VB. Here's one way to do it:
    Download tl_ole.zip, which is a type library that contains definitions for several OLE interfaces, structures, and functions.
    Create a new VB project and add a reference to the type library.
    Add a Measurem
    ent Studio ActiveX control (i.e., CWGraph) to the form and add a button to the form.
    Add the following code to your VB project:
    Private Sub Command1_Click()
    ShowPropertyPages CWGraph1.Object, "Graph", Me.hWnd
    End Sub
    Public Sub ShowPropertyPages(comObject As Object, name As String, hWnd As Long)
    Dim specifyPages As ISpecifyPropertyPages
    Set specifyPages = comObject
    If Not specifyPages Is Nothing Then
    Dim pages As CAUUID
    specifyPages.GetPages pages
    OleCreatePropertyFrame hWnd, 0, 0, name, 1, comObject, pages.cElems, ByVal pages.pElems, 0, 0, 0
    CoTaskMemFree pages.pElems
    End If
    End Sub
    Note that you pass in the Object property of the control, not the control reference itself. When you run this code, this will bring up the property pages of the controls at run-time. If you make any changes in the property pages and click OK, the changes will be reflected in the control.
    Hop
    e this helps.
    - Elton

  • Wtih Parental Controls on, need to allow run application from CD

    Hello
    I have restricted my sons access/login using the parental controls and everything is working well except that some of his apps run from CD i.e. Wiggles stuff
    Anyway, with parental controls on his login does not allow these to run, we get a permission denied error. Is there any preference/control in Tiger or Leopard that will allow his apps to run?
    Thanks
    Rick

    Boot Camp is most likely to work, but requires that you restart the computer to change OSes; nearly all Windows applications will work through this method.
    Parallels Desktop and VMware Fusion run Windows from inside Mac OS X through emulation. Applications which require direct hardware access likely won't work, and this method is slower than Boot Camp. It is more convenient to use, as no restarts are needed.
    CrossOver Mac and CrossOver Games translate the Windows instructions directly to Mac OS X ones. This is the cheapest method if you don 't already have Windows and the least compatible one.
    Stating which applications you want to use will enable more specific advice to be provided.
    (33288)

Maybe you are looking for