08-28-2023 06:40 PM
Hi everyone,
I would really appreciated if someone point me to the solution. I need to build a cluster which I only have the information at run-time. Each element of the cluster could be of different data types. Is there an example of how to do it?
Many thanks,
Chris_Ng
Solved! Go to Solution.
08-28-2023 07:34 PM
Any data type (wire) is strictly typed, this means, the type of the wire is defined at edit time.
If you change the cluster definition, this means, you are changing the data type. If you could describe more on why you need to create clusters in runtime, there could be better ways to achieve it.
08-28-2023 09:19 PM
Hi santo_13,
I create a program which depends on user input, will produce different collection of data (sizes and types). At the moment, I use map to hold the variable names and values (in string format). I think of a solution where I could loop through my map collection to parse the data and somehow insert them into a cluster. With this method, I could dynamically generate cluster for my code but I guess that is not the right way. Therefore, I manually parse each item in my map collection into a defined cluster. I wonder if there is a better way to minimize the "manual" process in getting the output.
08-28-2023 09:52 PM
The question is, why a cluster? why not retain as a Map?
08-29-2023 05:45 AM
I like the cluster toolkit from Autotestware.
08-29-2023 09:55 AM
Why?
08-29-2023 12:12 PM
Hi all,
The reason I'd like to go with cluster is because I think it's a cleaner solution. In a map, I have to keep the key/value pairs to keep track of each of my data (just like variable name and value). In a cluster, I don't have to worry about that and it looks better. Anyway, that was just my opinion.
Best,
08-29-2023 04:28 PM
08-29-2023 04:52 PM
Hi Chris,
What would be an example of datasets "different data types" that you will be dealing with?
X
08-29-2023 05:31 PM
The error cluster is the collection of different data types.