07-15-2013 09:16 AM
I have a cluster with 4 string elements 3 are string constants and 1 is a string combo box.
I can save the cluster array to file without any issues.
Now I want to read the saved file back in the cluster array.
How do I insert a 2d string array into a cluster array?
Solved! Go to Solution.
07-15-2013 09:42 AM - edited 07-15-2013 09:48 AM
ofcourse, this is a 1D...you can maipulate to 2D and use a 'for loop' to index individually
2D....
07-15-2013 03:27 PM - edited 07-15-2013 03:29 PM
@rcard53762 wrote:
I have a cluster with 4 string elements 3 are string constants and 1 is a string combo box.
I can save the cluster array to file without any issues.
Now I want to read the saved file back in the cluster array.
How do I insert a 2d string array into a cluster array?
It would be helpfull to have an example of what the actual cluster array look like with typical data. A way to do this is by saving the content of the cluster array as a configuration file (extension .ini) and then use the OpenG Variant Configuration File VIs to save and retrieve data to/from the configuration file. You can get these VIs from the VI Package Manager.
Here is an example. Also attached is the generated config file.
Ben64
07-16-2013 01:18 PM
Thanks for the help.
08-09-2013 05:28 AM
writing the cluster array to config file is working fine .but when i read it,i am getting null string cluster array .
when i check the config file actual data is present,but reading config file giving me an null string.
08-12-2013 04:49 PM
Make sure that the Section and Key inputs are the proper name. You can verify that by using the Get Key and Section Names VIs.
You can also wire something to the "default value" which will be the output if it the key does not exist.
Also this Discussion Thread has been marked as solved, therefore you might get a better discussion by starting a new thread specifically regarding your issue with reading the config file.
08-12-2013 05:35 PM
@venaktesh wrote:
writing the cluster array to config file is working fine .but when i read it,i am getting null string cluster array .
when i check the config file actual data is present,but reading config file giving me an null string.
You need to show us how you are writing the file and how you are reading it back. Please attach some code.
08-12-2013 11:37 PM
Here,i have attached my code for both writing and reading config file along with written config file.
08-13-2013 12:26 AM
These are images, not code. Please attach the VIs instead. Thanks.
08-13-2013 06:35 AM