2 orders of façade with a control on the block diagram

Hi all

Is it possible to use 2 controls on the Panel before which order the same control on the block diagram?

In order to have a sort of parallel control.

Thank you in advance.

Here is a recent example.

Tags: NI Software

Similar Questions

  • Deleting the definition of Type casuses control a lot of misreferences and program in the block diagram errors

    In LabVIEW 2010, I have a Def Type control i.e. a Cluster with several other controls within the Cluster. Apparently, the references to the controls in the block diagram are based on the order that the controls have been added to the Type definition command. The side effect of this is that if a control is removed from the command of Type definition, many of the done Variable reference in the block diagram or now either broken, or worse still, refer to wrong control in the Type definition. These problems are quite difficult to find and fix.

    Comment: If you create a control of Type definition and make a Cluster. Now add any controls to the Cluster in an order, let's say A, B, C, D. Their types does not matter. Now use the Type definition in one or more controls on the front panel. In the block mark references to controls inside the Type Def would control on FP. Now return to the Type definition and remove the command B of the definition of Type. Now, lots of errors appear. Broken links. But worse still, you see old references to B that now refer to C and old references to C are now referring to the old references to D and D are removed altogether, etc..  This side effect is much more errors, broken links and misreferences than expected otherwise.

    How add and remove controls anywhere in a Cluster in a Type definition, at will, without creating a whole bunch of errors in program, broken links and misreferences for controls in the Type definition that have not changed?


  • What is the best way to keep the block diagram / cleaning of façade?

    Hello

    I'm relatively new to Labview so I'm not able to say if I'm overloading my programs or make my too crowded block diagram. I was wondering if there was some ways to tell if I can simplify my programming just by looking (perhaps only experience contributes to these things)?

    I enclose my VI here. Currently, she is able to monitor the voltage and current of two engines. On the screen, you can see an indicator with the voltage and current values and there are cards that can display signals of different engines with a menu drop-down.

    The façade is pretty clean, in my opinion of novice, but the block schema seems messy to me, just at the first glance. I foresee a problem occurring in the future however. In the future, I will have the VI to monitor 50 engines globally. All of the programming will be the same as the one I have now, but it will have 50 indicators and unfortunately 50 times just about everything. I would like to avoid this, but I don't know how I did.

    I use a USB-6009. I use its four differential inputs to monitor the voltage and current of the two engines. In the future, I will get more units DAQ (25 in total because 2 motors can be monitored for each data acquisition). The new Renault will help will help with more resource space, but I think things complicate with the added option of 24 more Assistants of data acquisition (as used in my code).

    Thanks for any help you might be able to provide!

    Usually, it is above all the experience that will teach you the best methods for making your code to do pretty. I don't know anyone who is proud of his first application of claws. There are some resources out there to help with best practices, as that group on ni.com, but you will learn most of your own development.

    Your façade is superb. FPs in general really are to you. You can do it as ugly or pretty as you want. When you have a few controls in duplicate and the Group of indicators, you should use clusters and berries to simplify. You can use a bit of cleanup in this regard, but not much. In addition, I personally hate read red text unless it is a warning any.

    Your block diagram could use a little cleaning in a sense of modularity. You have a lot of repeated code, which you might consolidate in to a Subvi, which is used in multiple locations, or in a loop For. A general rule is to keep your block diagram within a single monitor. You should not scroll. Your application is quite simple, so it is difficult to BUMBLE

    Here are a few details on your block diagram:

    • Click with the right button on your devices on the block diagram and uncheck the "display as icon". You are welcome.
    • Operations on each waveform "(x*2-4)" / 16 in double ": create a Subvi and/or run the waveforms through a loop."
    • You do a lot of 2-element arrays and then indexing. Just replace the ones that have a Select node based on digital.
    • All your code runs every time, including the knots of your property at the bottom, which is not necessary. As you learn LabVIEW architectures, you will learn how to get around this with the initialization and the output of code, but for now, you should put a case around those structure for only when the engine numbers change.
    • I don't know how you're timing your main loop, but you should put a delay in there because you don't need the DAQmx node shoot as fast as your CPU will allow.

    There are videos of intro free that you can watch to learn what OR think in terms of coding and teach you some of the basic features and such. Here's a three-hour course, and here's a six-hour course.

  • Difficulty with returns control to the parents program after call asynchronous Subvi

    I'm trying to set up a directory of context-sensitive help for one of my programs.  This is the first time I tried an asynchronous call and I can't seem to make it work properly.

    The attached HelpDir.vi is the parent program that gives the user different help files to choose.  When the user selects a help file, its Subvi should appear.  I would like the user able to let this help file upwards and close the help directory or select another help file to upsimulataneously, if they wish.

    The strange thing is that, currently, this vi works exactly as I want if I stress execution on, but works normally, the HelpDir.vi becomes unresponsive when we help files was loaded and becomes sensitive again once the help file has been left.

    I set up the parent program with a structure of the event running asynchronous call and forget everything as in the example of the expedition to the France so I do not know why the program parent is not recover control after the launch of the Subvi.  Please take a look and let me know if you see what I'm missing.

    PS, You may need to update both static references.  I don't know if they break when you send the code this way.

    Thank you

    Tim

    Change your dialogues float instead of Modal.  Modal windows will always be on top.  In the changing Floating, then you can access the window of your main VI as well.

    Performance highlight should substitute somehow the disorder of modal window.

  • Reduce clutter in the control on my block diagram reference...

    Is it possible to reduce the amount of clutter on my block diagram when needing to enable and disable controls so that the tests are running? I know that I can place the instruction box in a Subvi, but I'm looking for the best method recommended to reduce clutter when listing references. Using LabVIEW 2015.

    Here is a small example of what I speak, there will be only for references to be added as the devlops of VI.

    Thank you

    Kellen

    rkmadse wrote:

    When you say I can clustor FP, say things that I did, and I have a group of controls such as those below in a clustor. I still have to generate reference constants, which are then placed in clustors. If I want to disable I would have then to consolidate each reference in the clustor, then ungroup and disable each control individually. I bet I'm really missing the point here and I'd love more explanation.

    Thank you

    Kellen

    My main problem is not being able to place real dangerous in a Clustor.

    You think about transportation, when I talk about the horse. Your façade elements can be in a cluster, and then you can use the reference to the pole to disable all. See:

    You will get a façade looking slightly different between the two options if you use disabled and Grayed out because when you grey on the whole cluster, the gray edges. When you gray unique items in the cluster, the cluster edges remain normal.

  • Group of objects added with JDAPI webutil - adjust the block webutil sequence?

    Hi all

    I use the JDAPI to the subclass in the Group of objects webutil in forms in an application. Annoyingly, the webutil block becomes the first block on the form - which means on some forms is displayed at startup. Is anyway (programming using JDAPI) that I can move the block to the end of the red list after that I have a subclass in the Group of the object?

    TIA
    Steve

    Hello

    move

    Sub move (JdapiObject nextObject)

    Rearranges an object with respect to its siblings in the collection it belongs. This is similar to by dragging and dropping in the form of movement of a block Builder in a list. This method is a way to do the same thing programmatically. By example, if you want a block appear immediately before Block5 in a list, you pass the object representing Block5 nextObject argument.

    Pass NULL to this method to move the object to the end of the list. If the specified object and the next_object do not share the same owner, or do not have the same type, the method throws an exception.

    You cannot use this method to move objects between the parents. For example, it cannot be used to move an element from one block to the next. If you want to move an object from one parent to the other, you will have to do something like:

    to be positioned before 'itmB' bulk 'itmA'
    "blkB" (when "itmA" is in another block)

    Copy itmA in a new parent (blkB) using the same name
    Element newItmA = itmA.clone (blkB, itmA.getName ());
    newItmA.move (itmB); move a new element compared to itmB
    itmA.destroy (); Delete the original object
    itmA = newItmA;

    Parameters:
    nextObject - the object that the object specified must be moved.
    Throws:
    JdapiException - if you try to move an object next to an object that does not share the same owner or not is not of the same type.

    François

  • Problem with time control on the storm 9530

    My app has a control object of time allowing the user to change the hour and minutes.

    When the control is clicked, it opens the window with the hour and minute.

    the problem reported by the user, is that they cannot select the OK button or cancel.

    I tested the application on the SIM 9530 and it works fine.

    someone knows why?

    the user has actually sent me a video of the problem.

    I asked him to turn compatibility mode, but it did not help.

    Finally, it's a soft reset and now he said he's working.

    don't know why, but I'm glad that's not my application

  • Help with Volume control for the video player

    Hey!

    My video plays and stops correctly on my video player, but I can't understand this volume control. My cursor moves to the way I want it, but the volume does not adjust. Please tell me what is wrong with my code:

    slider_1.onPress = function() {}

    this.startDrag (true, _root.volume_bar1._x, _root.volume_bar1._y, _root.volume_bar1._x + 133, _root.volume_bar1._y);

    }

    slider_1.onRelease = function() {}

    this.stopDrag ();

    }

    slider_1.OnMouseMove = function() {}

    newPoint = new Object();

    newPoint = this ._x

    newPoint = this ._y

    _root.volume_bar1.globalToLocal (newPoint);

    _root.demo_reel.setVolume(-1*newPoint.x);

    }

    I watched a tutorial and died this code, but of course my own instance names.

    Thanks in advance!

    use:

    paramsF (slider_1, _root.volume_bar1._x, 0, _root.volume_bar1._x + 133 100);

    slider_1.onPress = function() {}

    this.startDrag (true, _root.volume_bar1._x, _root.volume_bar1._y, _root.volume_bar1._x + 133, _root.volume_bar1._y);

    }

    slider_1.onRelease = function() {}

    this.stopDrag ();

    }

    slider_1.OnMouseMove = function() {}

    _root.demo_reel.volume = this.m * this._x + this.b;

    }

    function paramsF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Void {}

    MC.m =(Y1-Y2) /(x1-x1);

    MC.b = Y1 - mc.m * x 1;

    }

  • Need help with movie controls (specifically the reboot)

    Hi all

    Noob question, so bear with me.

    I have a site that loads a page with video playing on one of the pages.  I put it in place so that clicking on the button of the page starts the video and clicking on a button for a another page stops the video.

    However, instead of stop the video she just paused, so that when the user returns to the page with the video the video resumes where it left off, rather than restart.

    My site as a whole is a great movie clip, so each page is not loaded when we click a button - the content is just interpolated on the stage.

    Is it possible for me to have the control to stop the film playing (other buttons on the page) or to start playback of the movie (own page button) to have restart instead of the first image?

    Code for the start is really simple:

    content_mc.about_mc. MyVideo.Play ();

    and the judgment is:

    content_mc.about_mc. MyVideo.Stop ();

    Thank you.  I know I'm asking for the wrong thing because I left speechless Google results with what I ask, helps find the right way to do it is appreciated, even if I like a lot the way the site is designed so preferably not redo the whole site would be great!

    C.

    If you do not use a pause button so you can activate your flvplayback instance autoRewind property the flv file will restart from the beginning, whenever it stops:

    content_mc.about_mc. MyVideo.autoRewind = true;

  • remove the controls in LV2009 block diagram?

    Hello

    Miss me this option ' delete/copy terminals of the diagram Panel' of older versions of LV (see photos)...

    Where does is hide it or disappeared forever? I really miss this feature...

    I just read on what there is in the notes of 10 minutes. This parameter, as well as others have been "cushioned" as documented here.

    copyDeleteFPCDOFromFPTerm = False

    is what you need.

    Ben

  • Weird problem with control of the ring and foot

    So I have some sort of weird issue with a control of the ring and a chart. I'm with LabWindows/CVI on a Windows 7 computer. The part of the program I'm looking at is basically to navigate through data - there are several "transition" (rehearsals experience), and you can choose the one that you want to watch in the list.

    Normally, you would select transitional in the list, it plots the data, then it is done, basically. However, all of a sudden (don't know how long it spent for), when I select anything except 'Average', he made all the tracing and such, then it changes control of the ring to 'Average' (it is not plot the average data or generate all the reminders that I can tell).

    Now the thing the more bizarre as you can see below, it seems that the switch happens just when I draw something on the chart:

     

    So, it's just weird. The code in this section is here:

       if(uidc.polyon) {
                polynomial_subtraction(curr_data, np, uidc.polyord, 0); // 0 Skip for now
            }
    
            // Scale the curr_data for gains, then pre-scale the FFT data
            // to have no change in the power spectrum (multiply by (2/np)
            for(j = 0; j < np; j++) {
                fft_data[j] = curr_data[j]*2/np;
                curr_data[j] = curr_data[j]*uidc.fgain[i] + uidc.foff[i];
            }
    
            uidc.fplotids[i] = PlotY(dc.fid, dc.fgraph, curr_data, np, VAL_DOUBLE, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, uidc.fchans[i]?uidc.fcol[i]:VAL_TRANSPARENT);
    
            // Prepare the data.
            FFTEx(fft_data, np, npfft, NULL, FALSE, curr_fft);  // Do the fourier transform
    

    DC is a structure that I use to better organize some UI controls and uidc is for display RAM variables, then dc.fid is the Panel that is embedded in the tab "FID", dc.fgraph = FID_Graph and corresponds to the chart control. Control of the ring is actually in a child Panel, dc.cloc [0]. FID_Graph has a point, it can produce, but the reminder is empty (no not coded something there yet).

    I have also considered that perhaps something in another thread (I don't think there is, but whatever) I see is the cause, however, this behavior still happens on that line. I tried to break in different locations, on hold, then continues, as well by adding a loop containing Delay (0.01), a loop of 100 times. Always happens after the conspiracy.

    Does anyone have any idea why this might be happening?

    Hi Paul,.

    I don't have a solution, but I wanted to point out that, even if you see the ring to change its value only when you call the function of tracing, that doesn't say what this function call that really changes the value of the ring. In CVI, some drawing operations are batched, for performance reasons, and the Panel updates only visually at certain times. One of those moments when you draw a chart data. Yes, the ring changes visually at this time there, but it is probably just 'catch up' a change earlier.

    As you are looking through the code, when the value of the ring, you can use the term > command update UI to force the update panel, so that you don't have to wait for the tracing function and see if all goes well this change happening earlier.

    Luis

  • no active controls on the front after sub vi opens

    Hello

    I have a little difficulty with my VI.

    I run a sub my main façade of VI VI.

    The sub VI opens, but when it is closed all of the controls on the front of my main VI is no longer active (buttons etc. not clickable).

    I put counters on the iteration of loop terminals so I can see that the program is still ongoing, some controls no longer work.

    Someone has encountered this before and offer all the solutions?

    Thnaks for the research, I appreciate it!

    See you soon,.

    Iain

    Hello

    Sorry sub VI is located in the loop of the selection of the files offline at the bottom of the block diagram.

    After playing with it for hours last night, I seem to have sorted by deselecting the option "front lock Panel" starting from the properties of structure of event!

    Thnaks for all your help!

  • Order of the blocks in LabVIEW

    Hi all

    I am a beginner in LabVIEW. I what is the order of execution of code in block diagram in LabVIEW. It is left to right or from right to left? or y at - it a preference for order as a priority higher than for loops or something like that?

    Be a c programmer I think this way. Is it good to compare and understand Labview as well or is it a completely different architecture? Please correct my way to understand things if I'm going in the wrong direction as a beginner. I enclose an example of block diagram, perhaps you can explain with her

    LabVIEW does not from left to right, up and down, forward/reverse or any other physical form on the block diagram. LabVIEW is a DATA flow programming language, and it is the movement of data that determines the order of execution. There is a section using LabVIEW called 'data flow programming model' that you should read. In the picture you posted, you will notice screw connected with their error in / mistake the son. These connections are often used to enforce the order of execution. Also, because of its Western heritage, entries are typically placed on the left side of a VI and exits on the left, then you will generally see VI placed from left to right but it's just for readability. If there is no data connection screws separated on the block diagram, they will be run in parallel.

  • Disabling the controls on the front panel

    Hello

    Currently, I am working on trying to disable/gray out between 10-20 controls on the front panel when you press a start button and then allowing them the end of the test. Currently I use the property nodes, all of which are connected to a constant of the State in which I want that works perfectly. My question is that there is another way other than having a bunch of knots of padding property to the top of my structure of the event. Ive read where people had Subvi, which has used references to make this same feature, but is there a way of doing things in the block diagram of my current VI? Thank you!

    Need references of your controls on the front panel, so this can be fast, because you can select more than one, and with a right click you create references.

    I have attached a version LV2010.

    Edit: another review:

    Must be created only once these references. Usually, it's comfortable group all the references in a cluster, use this thread through your entire code. This way you can just ungroup references to the actual location, you have to play with, put them in a table and use the above FOR loop to change their properties...

    Like this:

  • block diagram control label display

    I hope this has an easy solution.

    I got code that has different formats for the control labels as they are posted on the block diagram.

    Some have rectangles around the label, others do not.

    I'm sure there's a simple (albeit tedious) way to make them all the same.

    I realize that this is only cosmetic, but I prefer to code to be consistent.

    I really don't like that as they are (although the new controls have rectangles, rectangles is probably better).

    Does anyone know how to set this property?

    Also, why would a view chosen on the other.  I guess it's just personal preference.

    Thank you

    I was in the same situation.  I prefer the no border around the labels.  I think the 8.5 they've added another property in the menu options, so you can choose whether you want the border.  The property is 'Use transparent name tags' on the block diagram tab.  To change existing labels, you can use the brush with T selected for color (if you don't want any border look).

Maybe you are looking for

  • Call to phone home iphone only gets busy signal

    Phone call home (fixed) to the 6s iphone Gets a busy signal. I don't have any blocked users. How can I fix this?

  • GPIB-USB-HS shows no MAX after that I used the wizard NI VISA DRIVER

    I accessed GPIB USB HS in the MAX software. As I was not able to communicate NF RLC remotely, so I tried Wizard DRIVER VISA OR according to tutorial Assistant pilot NI VISA , however, thnings went wrong and I am not able to see same GPIB to the MAX s

  • What Pavilion p6-2412el Firewire card?

    Hi all. I'm going to buy a HP Pavilion p6-2412el and, as others have asked for other models, I would like to know what type of card Firewire is compatible with this motherboard model. Speed is not the main question (it might be 800 or 400) as long as

  • is csrss.exe VIRUS?

    In the Task Manager, I find as a result of tasks with no users and no description, would be the VIRUS? Csrss.exe Atieclxx.exe Winlogon.exe Does anyone have any suggestions?Thanks in advance for your suggestions [Moved from Virus & Malware]

  • Cannot print with Deskjet 720C on Windows 7

    Bought a Pavilion G5401sc with Windows 7. Can't print using my Deskjet 720C. Pilot installs ok when I connect the printer by USB. Printer deleted physically and devices & printers, add printer... According to the suggested workaround solution. Tried