From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-15-2014 02:32 AM - edited 04-15-2014 02:43 AM
Hi i have 4 column array of cluster
X Y Z & Data entry Type
X+Y=Z simply
I wanna do this
when i entry x; data type cell will auto X (not numerical value just "X")
when i entry z; data type cell will auto Z
Then i can build my algorithm.
How can i do this.
Thanks.
Solved! Go to Solution.
04-15-2014 03:38 AM
Can you post what you have done so far?
Honestly, I have a hard time trying to imagine what you are up to.
Norbert
04-15-2014 04:19 AM - edited 04-15-2014 04:19 AM
Check my attachments. When i entry a data in X data entry show me X
How can I do it.
Thanks.
04-15-2014 04:31 AM
I dont understand your setup.... why do you make an array of exact the same clusters if you look into a singular value only for each index?
It seems to me that using a simple numeric array with three element (XYZ) or a single cluster for all three elements more appropriate.....
Norbert
04-15-2014 05:35 AM
Its just simple example from my program. My real clusters have 18 elements and array have 29 elements. So i need know which data entry first.
Look this attachment when i enter a data, data entrys cloumn show it after i can build algorithm.
04-15-2014 06:33 AM
The image displays a table, so a 2D string array....
How is that connected to your cluster? Why is a cluster an advantage?
Norbert
04-15-2014 06:56 AM
Every row have different constant values in this table. And i have different data types (string, numeric, combo box, boolean)
How can i create it without cluster?
04-15-2014 07:09 AM
As i said, you image displays a STRING table.
If you want something like Excel with predefined datatypes for columns, an array of cluster can work out.
But building an algorithm which checks for specific dependencies within a single record/row
a) is very specific
b) can get quite complex.
That being said, you have to start by looking at these dependencies and evaluate if rows can swap/be in arbitrary order.
Simply stating:
row 0 => column 0 is of interest
row 1 => column 1 is of interest
row 2 => column 2 is of interest
will most likely not work.
Norbert
04-15-2014 07:24 AM
I dont understand.Then what is your advice? Can u send me a simple example please?
04-15-2014 07:34 AM
What you want to achieve is that if the user changes a value in the cluster, the last element will display which field was modified.
This is rather simple to implement, it requires you to compare the modified state with the previous state or to register a change event for the fields.
Point is: How do you handle modification done by the user to a cluster which was already modified? Should your DATA ENTRY element list multiple entries? Only the last?
Norbert