Get the reference of the decoration

I design a training request a topic for a task.  I want to place a 'target' on a white screen, have the object move a joystick and follow the target.  For the target, I would use a decoration and property nodes allows you to change its size, position, color, etc.  There may be more than a decoration, so I would like to create explicit references (that I can mention) for each of them.

I found (like others) the 'Label' property, but no way to reference it.  I also found a tool to Right-click-frame by ton Plomp, but cannot make it work (I am running LabVIEW 2012 on a Windows 7 computer and I saw many references to RCF does not work anymore - I have not tried to use it until now) (I can not see the movie which tells "how" to use your tool - just a right-click displays the menu popup 'habitual' decoration).

There is a debate on the replacement of the tool of refractory with a Quick Drop tool ceramic fiber - has anyone done this?  Does anyone have a solution?

I don't know how to get "all the decorations", and if there is that one on a glass, I could just use it (no problem identify them).  But I would avoid really messy (difficult to document, difficult to explain, difficult to debug) situations with multiple decorations, where the desire for a method of referencing explicit.

Bob Schor

In fact, image controls are also dynamic move controls.  Here's a quick demo.  As well, it could change the color and the size of the circle.  There are functions of the API for performing a variety of polygons.

Code in LabVIEW 2011

Tags: NI Software

Similar Questions

  • Get the reference to object to new

    Hello

    I'm testing a few notions of running in parallel of the different tests in parallel on a single Instrument. The idea is to start multiple tests as sequence called for further discussions as in the ParallelExecution.seq example provided with the test bench. The wait later in the code function also has the option 'Specify by reference to the performance object', but I haven't figured out but how get this reference...

    Is there an easy way?

    See you soon

    Oli

    Oli,

    simple answer. When the configuration of the SequenceCall step to "New discussion", the "tool button" next to the right of the combobox control is enabled (sequence call Advanced Settings).

    Press the key.

    Norbert

  • How to get the reference to a VI, including the tool menu is activated

    I created a menu to a tool customized by using this knowledge base article. Now, I want to get the reference of VI, hence this menu is available/enabled.

    See if that helps at all (see first comment): https://decibel.ni.com/content/docs/DOC-5957

  • Get the reference to the type of control of def

    Hi all

    I've been using VI script to update certain parts of the report and have encountered a problem in a case.  I was not able to get a reference to a def control (.ctl file).  The control is simple enum, and I recorded it as a def type because I use several places in my main VI, although I don't think that my problem has nothing to do with the fact that it is a def type.

    I know how to get a reference to a VI (Open VI reference function), and I know how to get a reference to a control in a VI (function Open VI of the reference of the object), but not a stand-alone control.  Details of the help file for the Open VI reference function imply that I might be able to do this with instructions to "Strictly typed VI reference", but it let me only select files .vi and not the .ctl file.  Please notify.

    Thank you very much

    GSinMN

    You can open a typedef of control using the VI reference open and the path of control of wire on the way to the VI.  You can then change the control with scripts by obtaining a reference to the control on the front panel.  If you have a VI with control of typedef, you can get a reference to the typedef (not its instance) by obtaining a reference to the instance and using the Typedef VI or properties Typedef plotted for reference, or the path to the typedef.

    This can be confusing because a typedef is literally a VI without a diagram, and the script processes as such.

  • VI script: get the duplicate element reference

    In the scripts of VI I copy element (any type of indicator, the constant control) with the Move method with the duplicate property - true. The top right Terminal output of the method is the reference to the source, not a new object.

    Is there a simple way to get the reference to that copy (another copy method, etc.)?

    Simple solutions not (they can work on test, but not good examples)

    1) move into temporary cluster - easy to find a new element

    (2) see all before, after and compare lists. But the source VI can be of any size and complexity.

    (3) item Create manually copy: bad, the solution should work on all types of items.

    I would use the method VI create reference in this situation.

  • How to get the reference or the property of a member in OOP node?

    Hello world

    Is it possible to get the referral of a member in OOP?

    After you have created a class and an insert, a member of control in the cluster, I conclude that, when a right click on it, there is no element of "creat-> reference" or "create-> property node?

    So, how to get the reference or the property of a member in OOP node?

    Hello

    There are a few reasons that you can't do what you want to do:

    1 al ' LVOOP ordinary (as opposed to the DVRS in LabVIEW 2009, or some other framework / pattern design) are items of LabVIEW by value, as a cluster and therefore you can not create a reference to a class.

    2. a control of the object (this is what you get when you drop an object on a façade) is a 'black box' because you cannot look inside. This is to support the idea that the class data private. This means that you can't get a reference to all internal control when its on a façade

    3. check the references are valid only for the controls in the Panel before and therefore any class (or other piece of data of LabVIEW) on a wire / shift register / constant / anywhere other that of the façade, will have only the data portion of the available control.

    To access the items within a class, you create the accessor screws (you can create them easily by right-clicking a class (or the folder within the class) in the project tree and selecting New-> VI to access data members.) This VI would at least have a unbundle / bundle node (depending on whether its read/write) and could, if you have many more features such as range checking. You can use this VI whenever you want to read the Member your interested.

    I hope this helps.

    Shaun

  • Get the reference to open UIS

    Hello

    I want to create a Drop-in sub.vi that can get a reference to a user interface that opens. I can think to do the simplest is to use the current node screw in the memory, then open their references using the name of VI and then check if the front is open. The question I have is this should be voting and it seems like an inefficient to make way. Can anyone think of a better way to treat it?

    Thank you

    Larry

    With Activation VI you half would be there.  in 2013, VI deactivation has been added as a new event script if you have a version of 2013 or later you can do with a dynamic event

  • Get the reference to control of the connector pane

    I'm trying to get a reference to a control associated with a specific index in the connector pane. I see that there is a method to assign control to a terminal, but not get control of a terminal-specific. I know that I can enumerate all the controls in the connector pane, but it doesn't specifically tell me where they are.

    Edit: I see, there are private methods to get and set properties that can have this info, but because they are undocumented, and they are properties of a VI that is binary, I can't bone.

    When you read the Controls property of [class ConnectorPane], he puts back them to you in the order of terminal. There is a VI in the examples folder that shows you the order for each connector component model (visually). I don't have LabVIEW in front of me at the moment, but it should be examples\Application part Scripting\Connector Control\VI, or something like that.

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

  • Move the controls the façade of a VI. How do you get a reference to a whole "grouped" controls?

    Fundamental problem (boring, if not disastrous - but common - at least for me):

    When you try to two sktick different screws together and you copy the block diagram from one to the other, it sticks all the controls in the middle of nowhere.  Then, you will need to spend about 10 minutes by dragging controls to the screen from one end of the diagram to another - sometimes more than 15 screens.  Surely, there must be a better way?

    * Either by the way, you might think that labview would have this kind of parameters in the 'properties' of the control in the right click menu - but not joy.

    I guess the obvious thing is that you can write a VI that will get a reference to a particular control, then say together, that is the position (x, y) to zero.  The only thing is that generally, there will be a selection of controls, and often they will be organized nicely - after bring them to zero that you don't want to rearrange their new.  I tried grouping, controls, but then the problem is - how to get a reference to a group of controls.  If you move one of them it does not keep the spatial arrangement.  At this point, I lost - and easily spent more time that should fix this problem.

    Any thoughts?

    If I understand you correctly, when you copy the block diagram of the second VI in the first, the controls of the second end of VI place far-field on the left on the front panel of the first, correct?  I think that these added controls will maintain their relative positions between them so you should be able to find them all as a group in the left field. Then it's all just a matter of how to get them enmasse to the rest of the controls on the front panel. There are some easy ways to do this. There is a button on the toolbar at the top of the front window that allows objects to resupply/group/dissociate the façade. You can select all the orders/lights out in left field and ' ' together them. (As an alternative, you can also drop them all on a tab control that will serve as a container for them). Then you select this group and with selected scroll back on to the existing façade and search and select (shift) ALSO a control/indicator to group existing too. Then with the TWO existing of the selected control and the new group (or a tab with the new group control) selected using the ALIGN buttons to quickly bring a corner of the new group in the alignment of the old control. At this point, you can unlink the news and move it where it should be.

  • How can I get the control specifies a reference (by the script)?

    By what method of property can I control that specifies a reference? (See an example of a reference to the code snippet).

    When I reference (ControlReferenceConstant in the script), I can't get control of the reference points to. I guess it's done with the property ' reference control bound to. " But I don't know how to convert the variant to the control. Conversion to the control class does not work. (See excerpt below). Conversion does not return an error, but the reference is not valid.

    A few details: the variant contains a reference to a control and has a name matching [2]. The type of reference data is just as well [3]. But the reference is 0, which is of course invalid digital show (seen in the probe and indicator).

    An entire book would be to iterate through all controls (indicators included as well as items in clusters and berries). The label could be the first check. But because they do not have to be unique is not enough. As a second step could be verified that the ReferenceConstant is listed by the property "nodes of control."(delede contrôle) reference ".

    [1] LV12 helps ControlReferenceConstant properties:

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvscript/controlreferenceconstant_p/

    [2] get the variant name with:

    Select 'Type of Show' in the context menu of indicator varying or

    OpenG VI 'get name of data '.

    NIs in \Utility\VariantDataType\GetTypeInfo.vi VI

    [3] get the Refnum Type in the variant with

    NIs in \Utility\VariantDataType\GetRefnumInfo.vi VI

    If you look at using the property, you will see that it actually returns the data type of the node, not the actual control. That's way, you cannot use the reference in variant - it's not a real reference to a control.

    I think it's all just an oversight that no one added to the relevant property to the node, but there is a simpler solution for you that I think should work, that should come to him on the other side - for each control in the public Service, get the property [] of control reference nodes and it look for the reference of your node. If you found it, the node made reference to this control.

  • ActiveX - Get a reference to the control

    Hi all

    I need raise a value change event in a VI ActiveX of LabVIEW interface.

    To do this, I think that I need to retrieve the reference to the control and then use the (signalling) Value property of this control.  Does anyone have any idea on how I could get the reference to a control through the ActiveX interface?

    Any other suggestions on how I can trigger a change of value programmatically event are certainly welcome.  I tried the 'SetControlValue' call function but that does not raise the value changes.

    Thank you

    Zach

    I don't know if I understand, but it looks like you are trying to control LabVIEW via its interface ActiveX from another program, such as C. In order to get the reference to a control so that you can access the value property (signs), you must first access reference front panel of the VI and then get the list commands (which is an array of references). You can walk through this table until you find the one you want, and then set the Value property (signs).

  • How to get a reference to the delivery of the program (not at base of LV)?

    Hello

    I need to create a LV application which will be:

    -Run external executable and not on LV. It has a window of the UI which will open

    -Open PS (no title, menus, etc.) and position it under the user interface

    -If the user moves main UI, LV app FP follows the window

    -If the user closes the main user interface, LV app closes and ends.

    App - LV does not display in the bar of tasks

    So, basically, I need to develop an application that will add-on to an existing GUI, so that together they look and behave like a single user interface.

    The main thing I am struggling with now is how to get a reference to the execution of UI that I call using the exec.vi system

    Help, please!

    What operating system? If you are on Windows, you can try to use the Windows API. Specifically, FindWindow to get a reference to both windows and SetParent to set the parent of one of the windows. This example gives you the basic idea.

  • Get the reference to menu bar for Sub VI

    Hey everybody,

    I've seen this asked questions here before, but it has been a few years, so I thought I would ask again.

    I have a parent VI I want to edit the menu from the time of the execution of a sub VI before Sub VI currently works.

    I have not found a way to get a reference to the menu bar of this VI, except by the running and writing in a global variable or something.

    Thank you!

    No, they have not corrected it yet.

    Mike...

  • How can I get the numeric value of a reference?

    I would like to get the numeric value of a reference.  If I look at any reference with a probe, I can see it has value, i.e. F280006B.  I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?

    Type caster in U32.

    Lynn

Maybe you are looking for

  • HP Pavilion 15-ab141na: dual Gpu issues...

    Hello! According to HP Support Assistant, my flag (ab141na) is equipped with double GPUs. To be more precise, here is a screenshot of the wizard. I have tried several games without a bit of luck. For example, Sherlock Holmes against Jack the Ripper g

  • Off-download

    Hello, I would like to help: I received the e-mail from Microsoft regarding the download, when you click to download the file I am directed to an empty store page (beta), Windows 10 preview build 10061, Brazil planning region.

  • performance of matrix

    Hello so far, I used the scoring matrix [i] [k] in the 2D table calculations. Now, I came across another notation, which replaces table 2D in a 1 d table and consequently filling the individual items via matrix [I * j + k]. I wonder if the second app

  • Get rid of the Welcome screen login

    Hello I hope you can help me. I'm not even sure what "topic" to put this issue in the framework, so my apologies if I chose the one badly. For some reason, Windows Welcome, screen, requires me to login with my password, rises when I turn on my comput

  • HP Deskjet 3051 a model J611H: printer is in an error state

    For months after a cross-country skiing, I couldn't set up the function wireless on my printer (he had already worked with no problem). After a factory reset my router yesterday, it is finally connected to my home network. I tried to print a test pag