02-01-2015 08:14 PM
I want to know if its possible to insert data into an array, but I wish to do it as I would in excel, by using the option of insert row.
Is it possible to insert a value into an array in a specific row, so that all the other values after the one that was inserted are moved one row down?
Please let me know how to do this, and if you could please provide some sample code, that would be great.
Thanks!
02-01-2015 08:26 PM
Yes. It is called the Insert Into Array function. Open the context help window, and look at the detailed help on the function. You won't need an example if you are able to read the help file.
02-02-2015 08:27 AM
Hello Nando88,
I left you a reply in the other post you created, please create only one post per doubt it is not necessary to repeat your posts.
Insert data in array:
Best regards.
02-02-2015 09:23 AM - edited 02-02-2015 09:25 AM
Sorry, I just posted my question in the spanish forum. I thought I had to post it again in the correct forum.
Is it possible to tell a text ring, that it should read the values from a strating to an ending position in an array and not the whole array?
02-02-2015 09:43 AM - edited 02-02-2015 09:44 AM
Hi nando,
a text ring will not read any array values on its own. Instead you supply the ring (using property nodes) with some array data!
When you don't want to supply a full blown array you can always use array functions like ArraySubset…
02-02-2015 11:14 AM
I tried using the array subset, but I still can't get the result that I want.
What I want is to be able to add elements to the array, and that element should be added to a specific category (defined by one of the text rings).
Example: in the category, I have the first one and in the elements (second text ring) I have the second one. The element that I will add will be in the 3rd position of the category that I selected. So if I have a category of DVDs, and in the items I have 2 brands (TDK, Maxell), and I will add Sony as the 3rd item in the second text ring that is being populated depending on the selection in the first text ring.
How can I add items to the second text ring, so that they only appear in the category that I selected in the first text ring?
Thanks in advance!
02-02-2015 12:18 PM
For reference, I found the earlier thread that has some VI's attached.
http://forums.ni.com/t5/LabVIEW/write-multiple-strings-in-a-single-string-indicator/m-p/3081955