LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get and insert a string to an array?

I'm doing a VI that ask the tester name by using a ring control. This ring control will have a maximun of 10 names. The tester will select from the ring his name, if his name is not there he can be able to add his name to the list of the array of the ring control or to delete a name. I want to know how do I insert or get(delete) a string from an array.
0 Kudos
Message 1 of 3
(2,883 Views)
Is this a trick question? There are lots of array functions:
Build Array could be used to add a string to a 1D array.
Index Array will read a string from an array.
Delete from Array will delete items.

These functions are sophisticated enough to adapt to your data.

Regards,

Doug Norman
0 Kudos
Message 2 of 3
(2,883 Views)
You could use a property node for the ring control to dynamically write the string values in control. From use a for loop and a case structure to index the array of strings, replace the specific string value you want (using some conditional logic and the case structure), and rebuild the array. This is a little hard to describe. I will attach an example that demonstrated this concept. The example is in LabVIEW version 6.0
Message 3 of 3
(2,883 Views)