Front Panel Objects control

How can I passingly Disabled all controls of same type on front panel together using a unique Property node?
I try to use the Class Specifier Constant but it doesn't work.
Thanks,  Fabio

Hi,
put all these controls in a single cluster and disable that cluster.
regards
Dev

Similar Messages

  • Closing references to front panel objects

    Short version of my question: are programmatically generated references to front panel objects (controls, etc.) automatically disposed of when the VI exits?
    More details: I'm recursively retrieving references to all the controls on the front panel.  (I say recursively because I'm also getting the individual controls from clusters, subclusters, and so on.)  I then return an array of control references, which does not include the references to clusters--only standalone controls or the actual controls themselves contained in clusters.
    Do I need to explicitly close the references to clusters that this VI generates, or is it unnecessary since the VI will run briefly, return an array, and then exit?
    Or another scenario: in a subVI I open a reference to the parent VI.  Do I need to close that reference at the end of the subVI, or is it pointless because the reference will be disposed of when the subVI exits anyway?
    (I did find this article, which I think addresses my question, but I'm not sure.)
    Thanks,
    peppergrower 

    http://forums.ni.com/ni/board/message?board.id=170&thread.id=159571&view=by_date_ascending&page=1
    Jean-Marc
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Bug: Front Panel objects relative position change when placing merge VI onto Block Diagram

    I've posted a bug report on LAVA, here:
    http://forums.lavag.org/Front-Panel-objects-relati​ve-position-change-when-placing-merge-VI-onto-Bloc​...
    If someone at NI can reproduce, can I please get a CAR #?
    Thanks,
    -Jim
    Solved!
    Go to Solution.

    Donovan B wrote:
    Hi Jim,
    After my previous post, I also saw this behavior, so I decided to do another test.  If there are no decorations in the VI set to “Merge VI” (“Place VI Contents” for LabVIEW 8.5 and later) the controls and indicators are still not selected when dropping the VI from the Functions palette.  I checked this behavior back to LabVIEW 7.1 and it is consistent throughout that controls and indicators are not selected.  (Consequently, so is the fact that when decorations are present they don’t maintain the relative position).
    I am not sure if this would be better suited as a CAR or product suggestion since it has been this way that long, but it does not appear to be related to the fact that decorations are present in the Merge VI.  It does seem strange that the decorations are selected though.  Looks like the best way to work around this is to drop the VI from the Controls palette.  Hopefully, it’s not too much of a hassle.
    Hi  Donovan,
    Thanks for checking in.
    >  I checked this behavior back to LabVIEW 7.1 and it
    is consistent throughout that controls and indicators are not
    selected.  (Consequently, so is the fact that when decorations are
    present they don’t maintain the relative position).
    This just means that not many people use this feature.  However, now that VIPM Professional makes it so easy to edit the palettes, I'm sure that others will start complaining that this doesn't work as they expect.
    > I am not sure if this would be better suited as a CAR or product suggestion
    since it has been this way that long, but it does not appear to be
    related to the fact that decorations are present in the Merge VI.
     Just look up the functional specifications for this feature and see if all objects are supposed to be selected.
    But seriously, is there a reason that only the FP decorations are selected?  Surely this would be documented somewhere, if there was a good reason for this current (IMO, buggy) behavior.
    > It
    does seem strange that the decorations are selected though.  Looks like
    the best way to work around this is to drop the VI from the Controls
    palette.  Hopefully, it’s not too much of a hassle.
    That's not a reasonably work-around, IMO.  It doesn't make sense to drop Block Diagram components onto the Front Panel.  For example, this bug affects the JKI State Machine.  It doesn't make sense to drop a State Machine onto the Front Panel.
    So, I'd file it as a CAR/bug, and then wait to see how LV R&D feels about it.  If they can find some valid reason for why Controls and Indicators shouldn't be selected, then that's fine (and hopefully someone will explain it to me).
    Thanks,
    -Jim

  • Programmtically Scaling the front panel objects depending on the Dispaly card resolution.

    I have programmed my application in dispaly resolution of 1024 by 768. I want to deploy the same code on a machine having a resolution of 800 by 600. how do i scale down my front panel objects to 800 by 600 resolution .
    I want to do it programmatically.
    Suresh Thangappan

    To get best control, you will need to do it programmatically. Using the property nodes, all controls can be moved and resized. Resizing is problematic, however, because there is no single method that works for all controls. The top level Bounds property is read-only. It should be used to make sure whatever you did to change the size resulted in the size you expected. You will need to search the control–specific properties for the one which resizes your control of interest. For example, the Plot Area.Size property changes the size of a Waveform Graph.
    You can link one control to the size of the panel and have it scale automatically. Do this by selecting the object, then selecting Edit>>Scale Object with Panel. I typically use this for the main object on my panel. The rest of the objects are then moved around the rescaled object, but not rescaled. You will have to rescale them yourself, and move them again if you do not like the position. You will probably want/need to change font sizes on numerics.
    What you are trying to do is possible, but it is also tedious. Good luck! Let us know if you still have problems.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Setting up position of front panel objects using input from file

    I am working on a project and i have got the following query.
    i have a front panel with lot of objects like knobs,dials,push buttons etc..
    the entire panel will be the console to the user and as he changes the various
    positions of the objects their values will be written in to a file.
    now after a days work when the system is restarted again the next day
    the values of various objects should be read from the file and the front panel objects should be set in their position according to it
    in short the objects(knobs,buttons etc) should both act as o/p i.e when user interacts with them and they should also act as i/p when their position will be set from
    file.
    how can i achieve this.any help regard
    ing this would be greatly appreciated

    You should separate the read portion of this vi from the write portion of the vi. You want to execute the read portion of the vi only at startup and the write portion of the vi only at shutdown. So you'll be reading the file and writing the output to the property nodes, running your program, and then taking the value of the controls and writing to file. I have attached an example of how this might work. You might also do this with a state machine structure to control the data flow.
    Hope that helps
    Attachments:
    query.vi ‏49 KB
    read_file.vi ‏42 KB
    write_file.vi ‏36 KB

  • Using config files to setup front panel objects and DAQ info.

    I am trying to write a program that condenses 5 versions into one. I need to be able to load a configuration file based on the users choice of which machine they are using and use that information for my dropdown boxes and for what was constants in a case structure based on a choice from the droplist.
    For example, if a certain part was selected, it had 5 limits listed as constant that the data aquired was compared to. The limits were inside a case structure wired to the droplist.

    "I have a case structure that is connected to a digital line. The program receives a value from the machine's PLC and it picks the appropriate case. Inside this case, there are constants for tolerances for the measurement that was selected. Each case has the same number of constants to control the tolerances for 5 different characteristics of the measurement. There are 32 cases each with different values. The problem is, I have 5 different versions of the program with up to 32 cases in each structure, (over 150 different sets of tolerances). I do not have them all in one program as the same case number is used somewhere else and may have different values. The display information on screen is also different from one machine to the other, and I want to
    be able to hide or show certain front panel objects. I would like to set up an .ini file of some sort that stores all my case selections and load them in blocks, on one machine i load these 32, on a different machine, load the other, etc. Also be able to load the preferences for what is visible and what is not on the front panel."

  • [General Question] redrawing and updating front panel objects

    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!

    Nocturn wrote:
    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!
    redraw vs update
    Yes threr is a difference. A control is redrawn when LV decides to update the GUI. Look into "syncronous" setting for controls that forces update when value changed. These tags and thesse tags may help out abit.
    Q2
    Not sure about equality but decoartion may need redrawn if there is overlap of chanable objects.
    Q3
    i have observed decorations that failed to update on occation so I suspect they are only update when required.
    Q4
    LV will update the value for a hidden control but will not update its image. Same if the object is ona hidden tab page.
    No wawy that I know of to prevent an update of a single object with out going to extremes. The Front pnale property "DeferFPupdate" will inhibit FP updates while true and allow then when set false. I use this when doing a lot fast GUI updates so allow the changes to accumulate and be apllied only once.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Programmatically generate a new front panel object

    I'd like to see an example of how to programmatically generate a new front panel object like a button or sub-panel at run time.  Any pointers?
    I've looked for examples but don't seem to be having success.

    "Controls on the fly" (artwork courtisy of Christian Altenbach) is something I have done on more than one app.
    Also check out the Picture control thread for more links and idea.
    The easy method is to pre-create and hide.
    The amount of code that goes into supporting functional controls is enormous (been ther done that)
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Front Panel objects do not stay in place after saving, closing, and reopening the VI.

    I have been working with a couple of versions of a main VI. The original VI was given to me so that I could add additional functionalities to it. I had been designing the front panel of the latest version of the VI on a Dell laptop running Windows 7 and LabView 2011 SP1 using a monitor with a resolution of 1920x1080. My booleans, numerics, and plots on the front panel had always stayed in place after saving, closing, and reopening the VI. Once in the field, I connected my laptop to a cRIO9073 and used my laptop screen with a resolution of 1366x768 to operate the VI. I made some changes to the VI, saved it, and reopened it. This time I noticed that the front panel objects had become overlapped, resized, and generally rearranged. I tried fixing the objects but I noticed that they reverted back to the incorrect positions after saving and reopening the VI. I was successful in keeping the objects in position a couple of times, but when I would open the VI at a later time, the objects were again rearranged. This is happening on both my monitor and laptop screen. The original version of the VI, however, does not behave this way and I have opened it on both my monitor and laptop screen. In this version, the front panel objects always stay in place. Both VI's have the same window size properties. Could I have corrupted the latest version of my VI somehow? Below are screenshots of the front panels of both VI's.
    Attachments:
    Blender Controller Original.PNG ‏140 KB
    Blender Controller.PNG ‏203 KB

    Hi Miguel,
    It is possible to programmatically set or change the position of front panel objects. (for example: http://digital.ni.com/public.nsf/allkb/4D0DA06B431​95B3F862572F3000AF2D3?OpenDocument) However, if you haven’t intentionally done that, it seems unlikely that it is the problem.
    Have you tried copying the entire block diagram in to a new VI to see if the problem persists? While it is unlikely, you are right that it is possible for VIs to become corrupted. I’ve never heard of a situation like this except in the situation where the settings Tom had you check have been changed. Here is some information about those settings:
    http://digital.ni.com/public.nsf/allkb/7567EF257B9​CFDF986256F630073228F?OpenDocument
    Since there was no rearrangement when you copied the front panel to a new VI, you might try copying the block diagram a little bit at a time to see if there is some particular part of it that creates the problem somehow.
    K. Johnson

  • Front panel objects missing

    I have a weird phenomena. I have a program that runs fine, does data acquisition and writes to measurement fine. All of a sudden, and in no scheduled way, all the front panel text disappears, which causes the write to measurement to fault because there is no text left to build the filepath. But the funny thing is, after pressing stop on the Labview error, the machine keeps running. There is a digital watchdog in the program that is supposed to stop the machine if the program stops. Anyone had this problem, with the front panel objects/text disappearing?

    Hi tavwtby,
    It sounds like you are running out of virtual memory. Here is a help article on how to extend the size of VM on your system (http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/enable_lrg_ad_aware/). Try this out and see if you still get the same behavior. 
    Aldo A
    Applications Engineer
    National Instruments

  • How to hide front panel objects behind other front panel objects

    Hi,
    I need tho change an existing project and to make it simple just want to hide some front panel objects behind others. But I can't find how to put the one I wnt to the front hiding all others. So now there are some in front that should be hidden.
    Is there a button or menu item "Move to front / back" like in many other programs?
    Thanks
    Martin
    Solved!
    Go to Solution.

    Hi Martin,
    what about the link I provided in my previous post? What else do you need?
    What about the chapter "fundamentals" in the LabVIEW help?
    Going the way "Fundamentals -> Building the FrontPanel -> How-To -> Reordering Objects" seems rather logically to me…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Copy paste a front panel object to the very same xy location

    Hello,
    Just a practical question, but I would need this kind of feature very often:
    How can I copy-paste a front panel object to the very same location? Lets consider I have a TAB container, and on the first page, I have a Graph. I would like to make a same graph on the second page of the TAB, but at the very same XY location compared to the TAB container.
    Thanks very much!
    Solved!
    Go to Solution.

    hm, I have just realized, there is an option to "duplicate page" for the TAB containers And it does the magic for me, creates the exact copies of all the objects

  • What can affect the size of a front panel object between versions of Windows?

    Greetings, all!
    I have a client that wants to use a piece of LabVIEW code on Windows XP, Vista, and 7.  The application was originally written to run on XP machines, so everything looks OK there.  However, on Vista or 7, certain front panel objects appear larger than they do on the XP machine (in one example, all of the string fields in an array of strings are taller).  Other objects (such as a text label) appear smaller.
    The machines in question all appear to have comparable DPI settings, and monitor resolution does not seem to be a factor.  The application uses Application Font in various sizes in the cases of interest.  Can anyone suggest some other things we can check?
    Thanks!

    This issue is coming up more and more lately.  Particularly as people move to Win7 machines.  I've seen differences between my home Vista machine and my work XP machine.
    It comes down to the system fonts used by the different OS's.  XP's basic font is Tahoma.  Vista uses Segoe.  I believe Win7 is the same as Vista, but I'm not sure.  The fonts appear similar, but one font or the other is slightly larger.  So any features that are based on a font size will change.  This includes the sizing of labels.  Text within local, shared, global variables, and references.  Enough that it can cause wires to move a few pixels on a BD, and objects that are aligned on one system to look slightly misaligned on another.
    I think that if you set the fonts you use to a specific font, rather than Application font (which is taken from one of the current Windows font settings, you will avoid the issue.  The other possibility is to define which font is used for the application font within your LabVIEW.ini.  (Or the application's .ini file if it is built into an .exe.)
    Do some searching on the forums for application font, system font, dialog font, windows versions.  You'll find quite a few threads where people had different variations of this problem.

  • Resizing multiple front panel objects

    Is there any way I can select a handful of front panel objects (in this case decorative lines) and size them together to make sure they're all the same length?

    LabView 7 has a re-size button on the toolbar. Select all the objects you want to resize (either by drawing a rectangle around all the objects, or by shift-clicking on them one at a time), then click on the resize button and select one of the options.
    In LabView 6, you'll need to initially get the objects to the same size manually or by copying them. But then, in LabView 6 or 7, if you group a collection of objects, they resize together. Get them to the same size initially, then group them. They'll resize together after that. The LabView User Manual, in a section titled Grouping and Locking Objects states "Grouped objects maintain their relative arrangement and size when you use the Positioning tool to move and resize them."
    To group a collection of objects,
    select all the objects, then click on the Reorder button on the toolbar and select Group.

  • Front panel slide control

    Is there a way to programmically control the scale of a front panel slide control? Like wiring the "i" and "N" of a For loop to a FP slide control?

    Thank you miguelc for the answer.  Now I can "wire up" to the slider's scale max & min values.  So now they are dynamic and not static constants.  My slide control's scale now can change dynamically as the "N" (total For loop iterations) value changes a couple times throughout run-time (as well as showing the preogress as "i" approaches "N"), and my progress meter changes according to jobs done and to-do as expected. 

Maybe you are looking for