Using variants to adjust an array of clusters by program

I try to use variants to build a polymorphous VI to replace four (at time of writing) separate subVIs that are essentially identical, except for the base type of the array.  Each takes in an array of 1 d of the bunches and it resizes with the following code:

Looking through my reference book, I found the non-listed (in the palette) VariantDataType directory (* \vi.lib\Utility\VariantDataType) and have tried to use a combination of them to do the following:

1. take an array of variant-isee cluster in.

2 convert the variant by program in table cluster, based on the information coded in the Variant.

3 perform the operation of resizing table as shown above.

4 convert the output into a Variant array and the power indicator.

Attached are the two VI and a group of example commands I use.  I'm running out of ideas; any tips?

With the help of LabVIEW 2009.

In fact, I found an even better method.  You go to file > new, make a polymorphic VI and load instances of the various similar screws into the Poly VI.

Here is the final result.

Tags: NI Software

Similar Questions

  • Mouseover image control does not appear when it is contained in an array of clusters.

    I've been using Boolean system (with some customization) to impement mouseover animations.  For example (default values Boolean system):

    Mouseover feedback works well with my UI, and most of the time everything is going great.

    However, the mouseover image does not load if the Boolean value is contained in an array of clusters (a single cluster with inside Boolean or an array of Boolean works as expected):

    The animation of the passage of the mouse works for a single array element in the case above (the one that was clicked more recently), but this behavior is not desirable and it seems buggy if I had to leave this on my UI such what.

    So I guess I am wondering if anyone has encountered this or has no suggested work around?  The few that I thought to date (maintain a separate table for any set of Boolean control systems, verify the details myself on the mouse move event and try to update the appropriate element of the array, avoid using animations mouseover devoted entirely to this set of commands) are not all that desirable.  Although this issue could be considered in cosmetics, the user interface is very important for me because this code is that something shipped to customers.

    It's LV 2011 either incidentally, so if by chance the behavior in 2012 is just let me know (this could only) is a sufficient to convert the project to the top.  If there is a DRIVE ID for this behavior and an employee OR want to share I would also appreciate that.

    Best regards

    Hi John,.

    Thanks for the obvious example of this behavior. I was able to reproduce this problem in LabVIEW 2010 SP1 2011 and 2012. I couldn't find a CAR that has mentioned this unexpected behavior, so I went ahead and filed one myself. For your reference, the number of CAR is 36785, and I think I've included everything you mentioned.

    Best,

  • Change the properties of a cluster element inside an array of clusters

    Hi all

    I have a table of cluster that has the shape of a line with different elements of the screen.

    A list or a tree would not have made it, so I had to use a cluster and make a.

    The problem is I want to change not only the text but also the color of the text.

    Individually.

    I found this:

    http://www.NI.com/example/30904/en/

    But it changes the property in all groups in the table, not just the one I need.

    Some people have the same problem:

    http://forums.NI.com/T5/LabVIEW/reference-to-array-of-clusters-with-an-array-element/TD-p/1006427

    http://forums.NI.com/T5/LabVIEW/different-set-of-values-for-two-rings-in-an-array-of-clusters/m-p/10...

    http://forums.NI.com/T5/LabVIEW/array-of-clusters-get-references-to-all-the-clusters/TD-p/1079456

    http://forums.NI.com/T5/LabVIEW/how-can-I-reference-the-properties-of-a-control-in-a-cluster-in/m-p/...

    http://forums.NI.com/T5/LabVIEW/writing-only-to-certain-cluster-elements-in-an-array-by/m-p/2200728

    http://forums.NI.com/T5/LabVIEW/update-properties-of-one-control-in-an-array/m-p/3015501

    http://forums.NI.com/T5/LabVIEW/array-of-clusters-and-in-the-cluster-is-a-bar-meter-how-can-I/m-p/15...

    http://forums.NI.com/T5/LabVIEW/property-node-of-a-control-inside-of-cluster-inside-an-array/m-p/946...

    Obviously, even if in a table/list or a tree, you can change the property of an individual

    cells (font, color), you can't do it in a cluster network, by a kind of magic.

    the property of an element of the cluster (font, color) are all connected together, so made

    the use of a table without value.

    A possible hack is available using masking of control, a visible setting and the

    other invisble, exchanging their position, whatever. This is a hack you have to perform,

    Therefore, add another code to maintain.

    Is that still the case, or is it now a more formal way to manage the individual cluster

    Properties, not only its data? After all it is a common example of a real life which should

    managed by Labview. In my opinion.

    David Koch

    Altenbach says:

    One of the elements could be an indicator of 2D about the same size image. You can create text in any color using the features of the image.

    Here's what I had in mind. Seems to work very well (I would refine the border picture fonts, etc., but this should help you get started).

  • Reference to the array of Clusters with an array element

    Hello

    I have an array of clusters of CONTROL (qualifying as "upper-tier cluster table") with one of the items is an array of cluster cluster (see attached).

    I intend to "reference" of this cluster of high level at different screws (as add item VI, insert item VI, delete the item VI etc.) and access (add/edit delete) the elements of this array.

    In my code, how I cataloged the array element (cluster) on the cluster internal (as shown on the figure)?

    I use LV RT on PXI.

    Hello smercurio_fc,

    Thank you for your example! Just a question: actually, with shift registers, is an example of creating a local copy of the full range? Even if the value of the lowest level cluster is changed, is the complete table is updated at the end (registry value to offset the full picture at the right end is updated using the reference node and property)? This VI will be slow when the size of the array becomes great?

    Comment of nicely.

  • Best way to transfer strings, arrays and clusters

    Hi, I just want to know the best way to transfer strings, arrays and clusters between a PC and a computer-RT (compactRIO) if I want to use them in deterministic loops:

    For a string should I use a published network shared variable flow or network?

    For an array of doubles should I flatten the array in a string and the string of transfer? or should I send it as a picture?

    The same for clusters, should I flatten the cluster or the transfer as a cluster?

    Thank you!

    Transfers on the network are not deterministic.  You ask how to use the data in a deterministic way, once it arrives on the RT system.  Usually, you would create a separate loop, not critics of time to deal with network communications.  The data arrives it is copied in real-time-safe structures such as RT-FIFO to put at the disposal of the evanescent loop.

    I can't give you specific advice on network variables and network flows; Finally, I did this kind of transfer over TCP, until these other options were available.

  • Drag and drop the element of the array of Clusters

    I have a project that includes an array of 'tests', each of which is a cluster that contains an array of 'numbers', a matching the regular expression string and an array of "tasks" (all of them, is in turn, a group of elements).

    It is:

    • Tests (table of):
      • Cluster:
        • Reference numbers (an array of strings)
        • Regex (string)
        • Tasks (table of):
          • Cluster:
            • Task type
            • Basic channel,
            • Measuring channel
            • Other channels

    I wish I could drag and drop to rearrange the task table in an individual event.  (It is a nice-to-have rather than a urgent request - more for my own learning that no matter what).  For now, I've implemented "Move up" and "Move down" buttons

    Examples are fine for a single cluster that includes a table or an array of objects.  As soon as we have an array of clusters, it is difficult to access individual items within a specific cluster.

    Who that it be completed can drag and drop into such a facility?

    Curiously,.

    Geoff

    Hello GeoffF,

    It's certainly doable and you can even use the standard start drag and drop methods/events, the trickiest part is to determine the table of the elements that are selected on the mouse towards the top/mouse downwards and the swap of manual handling.  Fortunately, there are a few decent examples of how do this out there already, I suggest you take a look at this one:

    Example of community: determine the Index of the clicked element Array in LabVIEW

    https://decibel.NI.com/content/docs/doc-22434

    That should give you the selected table indexes, and then all you have to do is to move the elements around around the drop event.  I have attached a very basic demonstrative example that uses this code I just linked (you need to download that as well) and the events referred to swap two elements of the array.   The attached code is just thrown together, you'll want to design something more robust and scalable to any sort of actual use.

    Kind regards

  • Error during transfer of an array of Clusters for LabView

    Hello

    I'm new in LabView and I hope that this mistake has an easy solution.

    I built a VI to check the validity of a label.  The Vi receives an array of clusters.  The cluster has 3 strings.

    I built a Variable with an exact same structure in TestStand.

    I get the following error:

    Error, parameter 'Sn Range Array': array elements "FileGlobals.SN_Ranges" do not correspond to the LabVIEW or cluster cluster is disabled in the definition of the array element type. [Error code:-17313, could not accept the parameter passed.]

    Is attached a sequence with a single step.  and vi.  (the location of the vi must be re assigned to TestStand).

    Can anyone help solve this error?

    Thank you

    Rafi

    Thank you

    your advice was perfect...

    Concerning

    Rafi

  • How to change the items in a drop-down list box that is part of an array of clusters

    Hello

    In the attached vi, I have an array of clusters and each cluster contains two drop-down list boxes. How can I edit the items in the drop-down list box 1 for all elements in the array? (All elements of list box 1 has the same elements.)

    By way of illustration, I have also included the case of trivila, for example, edit the items in a separate drop-down list box that is is not part of an array of clusters (combo box 3). Please notify. Thank you.

    Peter

    Right click on the drop-down list box and select Create-> Node-> String() property. Place it on the block diagram. Change to write (right click) and then feed him an array of strings.

  • How to change the tab order of an array of clusters?

    How to change the tab order of an array of clusters?  I have the cluster arranged into a table in the front panel.   The element of the cluster passes horizontal and array element passes vertically.   When I press the tab key, the cursor will move to the item next to the table instead of the next item in the cluster (down to the place overall).

    so you have an array of clusters or cluster and the separate table?

  • can I use audioeffects on adjustment layers

    is it possible to use audioeffects on adjustment layers

    Not as far as I know, but you can add effects to the tracks, the subgroups and masters titles, using the track mixer.

  • When using Sky go and try to watch movies or programs how do I get to run continuously without interruption and catch every few seconds.

    Go to sky

    When using Sky go and try to watch movies or programs how do I get to run continuously without interruption and catch every few seconds.

    The usual cause of this is that your broadband connection is not fast enough or you have multiple computers, try to use it at the same time.

    This allows to check your speed broadband http://www.bbc.co.uk/iplayer/diagnostics#results

    If the broadband speed does not seem to be the problem, please contact Sky

    http://helpforum.sky.com/T5/using-Sky-go/BD-p/skygo_using

  • When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroE

    When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroExch or ensure that all the dialog boxes in AcroExch are closed. "even disabled protection at startup mode. Who made no difference

    Hi sdesk.

    This problem occurs with the 64-bit application as Acrobat is a 32-bit application making it incompatible to insert objects into a MS Word 64-bit application.

    As a workaround solution insert the object as a 'Create New' rather than create a file.

    Let me know if it helps.

    Kind regards
    Nicos

  • Hello! The Creative cloud program does not. When you open the file in Photoshop says that there are not many fonts, use Typekit. Typekit itself turned off. All programs downloaded and saved, but Photoshop doesn't see Typekit. What should do? Also says I h

    Hello!

    The Creative cloud program does not. When you open the file in Photoshop says that there are not many fonts, use Typekit. Typekit itself turned off. All programs downloaded and saved, but Photoshop doesn't see Typekit. What should do?

    Also says that I have no access to this service. For access, please contact your COMPUTER administrator or connect using the ID

    Hello

    Greetings!

    Is Typekit on?

    Visit this link: Add to your desktop of Typekit fonts

    Concerning

    Jitendra

  • I installed adobe pagemaker 7.0 in windows 7 ultimate, but I am not able to use it, can anyone tell me about any other program that will allow me to open my page maker in windows 7

    I installed adobe pagemaker 7.0 in windows 7 ultimate, but I am not able to use it, can anyone tell me about any other program that will allow me to open my page maker in windows 7

    @

    3 samples of files pm6 and @jay chevako warning message

    On Mon, Sep 21, 2015 at 00:25, Jay Chevako [email protected]>

  • I had to update my windows computer and you can no longer open Photoshop cs2.  trying to find help with this new system is not easy to use to put it kindly.  I downloaded the program and don't have the available key.  I tried to sign in but where.

    I had to update my windows computer and you can no longer open Photoshop cs2.  trying to find help with this new system is not easy to use to put it kindly.  I downloaded the program and don't have the available key.  I tried to sign in but where.

    For Photoshop CS2 activation has been reprocessed, so your original drive and the serial number does not work.

    As an owner of CS2, Adobe has a copy without activation and serial number, to which you are entitled.

    The serial number is to the right of the download link for Windows. You'll need this one, not your old number.

    Get them here: download Acrobat 7 and CS2 products

Maybe you are looking for