Table of cluster of a Subvi through mainVI again under VI

Hi guys

I posted some questions about my big project and this is a new. It's tables of clusters and how to remove values from it. I searched the forum on 'arrays of clusters' and got some ideas, but not enough to solve my specific problem.

A little explanation:

First I got a Subvi, which creates three random values, do a few checks to value and returns a Boolean indication.

The array of clusters is then sent to my mainVI. From there I would get out of each cluster table. It would be a total of 10 clusters.

I use ungroup by name for access to the three and four Boolean values. My first problem is that I'm doing Ruby Goldberg. Yes! I have 10 ungroup by name and each of those who have three values and four Boolean values:

For this, I know that there should be an easier way. Probably a loop for. And now comes the grand finale: for each value and boolean, I created a local variable. Variables is 70 in total. These variables are sent to 10 cases where to send values to a pop up VI so that the user can see the result:

The pop-up window shows the values of 9 different variables. I won't have the clustosaurus in my final program, but I'm trying to learn more about the tables with clusters, etc.. Values will come from an acquisition of data and I'll do it in the MainVI, but for the test now (without DAQ) I've used.

My PC is quite simple:

Press START of the user.

Values form my random numbers.vi are placed in different variables in my main.vi.

User can press on 10 different buttons to see the values, verification and the Boolean flag for each group of data.

I've heard of typedef, but I'm having some trouble to know what to use when I start programming. If you guys say 'use dypedef' I'll look into that a bit more. I don't think my variables overwriting eachother then in this case, it works, but I would like to get a clue of what to use, when I did paintings and groups between VI and how to extract data without using a code to Ruby Goldberg to the subsequent use of Labview. If you want to post in the thread of Goldberg Roby I can reach my VI together later

Concerning the same

Use of typedef...

Right-click on cluster control in your 'generation' vi. Select ' Advanced-> customize.

A new window will appear, in the toolbar you can select 'Typedef' instead of 'Control '.

Now save your new control (typedef), close the command window, LabVIEW will ask you if you want to replace the control. Select Yes.

Go to your table indicator, remove the cluster inside and replace it with the control that you just saved.

In your popup VI remove all entries and place the control, now that you have a lot less terminals/cables.

In your "call popup VI", you can index the table and conect that to the pop up VI.

Who are the first steps to take.

Tone

Tags: NI Software

Similar Questions

  • Table of Cluster size cluster controller?

    I often use the table VI of Cluster to change quickly to a data table in a cluster of data I can then connect to a waveform graph.  Sometimes, the number of parcels can be different which translates (full of zeros) additional plots on the chart, or missing parcels if the array is larger than the current cluster size.  I know that I can right-click on the node and manually set the size of cluster (up to 256).  I could also use a structure dealing with several table of Cluster nodes that I need, set them individually and a table of wire to the switch structure size case but this is the kind of a PITA.

    My question is if someone knows a way to control the size of cluster programmatically value.  It seems that if I do a right click and do it manually there must be a way to automate it, but I of course can't understand.  Would be nice if you can just wire your right desired value in an optional entry on the node itself.  Any ideas would be very appreciated.

    I feel that it is impossible.  See this idea of related discussion.

  • Table of cluster

    Hello

    I use a table of cluster to allow the incoming user in different

    But in some cases, I want to adjust the display to hide certain parameters or displaying 0 or a null field

    My problem is when you create a ref on the control in the list how to know wich line aims to change the right

    here an example vi

    When the case 1 is the first column sΘlectionnΘe another ctl may include choice

    When case 2 is selected, I would the mofify two others at 0 and no

    y at - he saw another way to play with and the size of the items about which line is the current?

    Concerning

    Tinnitus

    I was able to simplify this VI to the point where I can post the code to demonstrate the idea.  Here it is in 8.6 and 9 (he seems to have lost some fonts, formatting when recording to 8.6).  I have not used XControls but it seems that the kind of thing that could be converted into one easily if I had the time and means.

  • Table of cluster of arbitrary type

    Hi all

    Is it possible to generate an overall picture about the next feature?

    1. each group element of the array will be of a different type

    2. According to the code, each element could be a different type of data at different times.  For example, the cluster to array [0] will be a string when the user input is one, and array [0] will be a U16 if user input is two.  The index for a particular type of data is arbitrary.

    Let me know.  I'm writing a Subvi, which will get a picture of the U16 convert the table into a picture on single, double, string, U16, U32, etc..

    Yik

    Yes.  Use an array of variant.

    The variant you can turn your data type to store in the array in a variant.  Variant of data allows you to convert the variant to the original data type, simply specify the type of data.

  • Use to write key VI with a table of cluster

    Hello

    I wanted to use an array of clusters to define certain configuration settings for an application. Unfortunately, 'Write key VI' does not support the type of cluster. Has anyone modified this function ('write key VI') in support of cluster and cluster table? Otherwise, no idea to keep it as simple as possible?

    My clusters include boolean, path, U32 and string.

    Thank you

    Olivier

    FYI, I have eventually save the cluster as a binary ("Write to binary function') file and a VI to read/write it. Is the easiest way for me as the other functions seem to have a limit on the complexity of the clusters they can handle.

    Thnaks for your suggestions,

    Olivier

  • Replace a table in the table of cluster! Possible?

    Hello

    I had a problem with the insertion of a table that I acquired from an another vi in the existing table in the cluster. My big table contains a set of 5 elements (name, value, save, current and position.) I want to connect my slot vi, whose output is a table of the number, in vi main by replacing only the values in the main draw. All values in the main draw are acquired from sub vi but the rest of the data remains the same. I also want my main table to look the same too, except the values have changed. I know this sounds simple enough, but I don't really know.

    Thanks in advance

    I guess that you need something like that. This will replace the values present in the main table with the values obtained from the Sub vi.

    Good luck

  • Dynamic event to manage 12 x 12 table or Cluster UI

    I try to treat up to a table of 12 x 12/cluster to allow different LED. The enable method will be two digital controls, JPY, which lights to LEDs in a specific order based on the input of control MxN. The specific order is right to left, bottom to top. Right now, I have only a handful of functional States, but I have to consider all States as indicated on my block diagram. I'm looking for some feedback on how to handle this dynamically. I am aware of save for events, but do not have the experience to understand if this is the path I must take. Thanks in advance to all those who respond!

    Examples

    2 x 2 3 x 3

    4. 3 9 | 8. 7

    2. 1 6 | 5. 4

    3. 2. 1

    While a single LED can be active at any time give right? Use a 2D Boolean LEDs, which is initialized to 12 x 12 table, then using replace table scheme, write a real led to index MxN. To do this in an event of value changed order of rows or columns. The code would be probably good on a postage stamp. Nodes value field or local variables.

    (Next time, please attach your VI rather oversized, truncated photos that show very little of the story.) (Thank you.)

  • Stopping Subvi and returns a value of Subvi to MainVi

    Hi all

    I have a MainVI that calls a Subvi. The call in sub - VI of the MainVI is done inside a while loop. If the necessary calculation in Subvi time exceeds say 1 second I want to stop the Subvi and at the same time I want to feed a default value to the MainVI which is supposed to given by the Subvi. With the next iteration, I must call the Subvi again to accomplish my task. Please let me know how this is possible thanks in advance.

    Kind regards

    Magi

    Magi,

    The Subvi terminals will always have a value when the Subvi back.  If you do not set any other value, the value will be the default value. Add a Boolean result to the Subvi to indicate if it has expired or it terminates normally.  That test boolean in primary VI to see if the data value is valid or not.

    The questions you are asking are quite fundamental to how LabVIEW. I suggest you sepnd online some time with the tutorials on getting started with LabVIEW. What you learn, it will be over for the time spent to ask fundamental questions.

    Lynn

  • value of the box fix in table of cluster

    Hello!

    I am changing a vi that contain the checkboxs in the cluster and contain a lot of cluster in the tables. I want to correct the value of the checkbox as true or false for a different set of cluster in the tables. Is it possible to do?

    Your table has ~ 138 items. Each element is a cluster. Elements of a different table currently have different values for Boolean type, for example #68 is all WRONG, while #69 is TRUE for A1 and B1.

    This is in direct contradiction with your statement!

    After you define all the elements of the array for the desired design, make sure you the current value of the table (and not the cluster element!) the default and save the VI.

    (If you change the default value for the actual cluster, it will apply to new items that you add by clicking on an element (greyed) after the current size of the array).

  • Table 2D cluster table how insert table 2d of strings in an array of cluster?

    I have a cluster with 4 channel 3 elements of the string constants and 1 is a list box drop-down chain.

    I can save the Bay of cluster to deposit without any problem.

    Now, I want to read the file is saved in the Bay of cluster.

    How can I insert a table 2d of strings into an array of cluster?

    rcard53762 wrote:

    I have a cluster with 4 channel 3 elements of the string constants and 1 is a list box drop-down chain.

    I can save the Bay of cluster to deposit without any problem.

    Now, I want to read the file is saved in the Bay of cluster.

    How can I insert a table 2d of strings into an array of cluster?

    It would be useful to have an example of what real cluster Bay look like the typical data. One way to do is by saving the content of the table cluster in a configuration file (.ini extension) and then use the OpenG screws of the Variant Configuration file to store and retrieve data from the configuration file. You can get these screws in the VI package manager.

    Here is an example. The generated configuration file is also attached.

    Ben64

  • How to write the table 2d 2D table of cluster of 2 elements

    I want to write table 2D and a string in a 2D cluster table having two different elements. an element is of numeric type for 2d and another element of the string table. Please help me on this problem

    Hello

    You can do the following. A Vi with control is also attached.

    And about the insertion of a string and digital in the 2d table, I don't think that you can do. A table can only use a data type. You can use the clusters for the holding of different data types.

    Kind regards

    Amine31

    (Give congratulations to good answers and Mark as a Solution If your problem is resolved)

  • Passing the data change to Subvi through reference: always newest lack input value

    Hello world

    I'm having a problem that I can not find the solution. I searched the forum and google, but I couldn't find an explanation. I hope you can help!

    In the attached draft, there is the "main.vi", which I use to control an industrial manufacturin mashine. On the façade, I have a group called "manual control". Whenever I have change a value in the cluster, an event is triggered to run the case 'hands-on' in the 'Wirbelschicht_main.vi' [called 'FBC (control of fluidized bed)' in the pattern-block main.vi]. In this case, the data in the cluster are updated via a reference. The order run "Manual control" case is placed in a queue.

    When I change the value of, for example, "InAirTempSet" from 0 to 5, then from 5 to 9, I would expect numbers in the Subvi update in the same way (first from 0 to 5 and with the next click 5 to 9). What I see is that the update process in the subviis always one not behind. Which means, I change the value from 0 to 5 in the main.vi and nothing happens. Then I change the number of 9 and 5 in the Subvi, 5 is received. Only when I change the number in the main.vi again, the 9 is passed to the Subvi.

    What is the reason for this and how can I fix?

    Thank you!

    Qbach

    It is the expected behavior. You read the reference control value at the same time waiting for the order to the queue. This means that once the queue ("hands-on") command is received, the value has been already read a long time ago.

    To avoid race conditions, transmit the data using the queue instead of read it asynchronuously with nodes of property. You are running in a race condition here, because that's exactly what your code tells the application to do!

    Norbert

  • Table of Cluster cluster type - Def

    Hi all

    I know I've asked similar questions as this one before, but I need to ask again, since I'm still not satisfied with what I got.  Here's my problem:

    I am converting an array of 16 elements in a cluster.  Then I fed this cluster in a cluster of type-def.  Basically, I'm trying to update my new values of cluster type-def will write another cluster with the same number of items inside.  All right, but I make it a point to stress.  If you do not already know, I hate the dowry of coercion.  Is there a way to get around this?  Thank you!

    Yik

    Stick with the point. If you change you def code pauses to get your attention. If you use the type cast, it can hidethe broken wire and you give a very strange accident in a sub - VI that gets these data on the wire or in a different VI complete (summer does.) That's why I covered my head in the previous post. It took Aristos queue and his group to figure out that I had thrown type the wrong type of cluster in a VI breaking a dynamic VI when it came time to free a memory buffer).

    Points of coercion of the biggest concern when has with tables since they cast upward in a type number (u8 to U32) cannot be done in place and requires a copy of the buffer. Arrays can have large buffer duplication is bad. In the case of clusters and type def vs non - typ def a dowry is just an FYI.

    Ben

    PS Plese non-identiques post time for the same message.

    PPS LV train teaching of stress points are bad. If you take a certification test, forget what we say until after you pass, then still remember when you spent.

  • How to make a table of entry into a Subvi homomorphic

    I have a sub vi who performs an operation on a table.  I wish I could pass this subroutine vi I16,-32 and other type of numbers and have it give me the same type of numbers.  In its current form, if I pull the Subvi, like a painting on the façade, the representation of the entry is "trendy" and all other types that I try to send to the vi show points of constraint and then output the same representation as the entrance to the Subvi... rather than the kind of data I provided.

    All thoughts.

    Thank you.

    The ability to create polymorphic screws is included with the professional version of LabVIEW.

  • dynamic table of cluster creation

    Hello

    Is it possible that labview acknowledges the size of the table and it automatically ungroup in groups as many as number of items in the table?

    PS. I'm using labview 8.2

    Who would simply use a default cluster of 9 elements. What happens if the table is larger than 9?

    @ravi:

    You don't need to convert a table to a cluster and unbundle then the cluster to get the individual items. Index picture is resizable. Better yet: use a loop for with autoindexing. On the real graph being created I do not understand it. You use the same X value with different values of Y. It is just a vertical line. As altenbach likes to say, your code can be simplified to fit on a small stamp:

Maybe you are looking for

  • How can I make Firefox open the links that I click on in my program of mail without having to click on the button "allow" every time?

    When I am in Gmail and I click on a link, Firefox ALWAYS appears a tab asking me if I want to allow this. I don't want to have to do this whenever I want to access a link. How do it automatically the link without any intervention from me. I use Firef

  • NB550D black screen at startup

    Hi all My new Ttoshiba NB550D has this weird defect: when I turn it on, sometimes nothing comes on the screen (the screen remains black and unlit) and there is no HARD disk activity. The power and wireless lights and the fan but it is also any other

  • Last download BIOS for XW9400

    Hi, I have a HPXW9400 that I am trying to re-construction, but I think that the BIOS is not the last, I have a bios version of 2.21 dated 25/06/07 and various other sought after, according to me, the most recent is version 4. soemthing? The download

  • Trial IUninstalling diskless

    I installed an old trial vb.net on my machine to drive.  It has expired. I want to get rid of him.  It asks for the disc.  The disc has been destroyed. How can I remove this program?

  • WindowseSolutions

    Has anyone been approached recently by a download of the company itself "windowsesolutions", which suggests that there are serious problems with Windows on their computeir, that they were ordered by Microsoft to resolve this issue for all Windows use