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-09-2014 02:36 AM
Hi all. I have a question about labview tables.
How can i create a active cells table with different type datas?
I need combo boxs + numerics + strings + booleans in same row and there all must be active (i can change this datas when my program runing)
Example: I have 3 cars.
CARS COLORS Velocity acceleration Time Distance Active? ETC
Row1- Car - 1 Combobox Numeric Numeric Numeric Numeric Boolean String
Row2- Car - 2 " " " " " " "
Row3- Car - 3 " " " " " " "
and all cells are not just control or indicator. If i write cars velocity, acceleration and time program calculate and show distance, if i write distance, velocity and time program calculate and show acceleration.
Can anyone help me?
Thank you.
Solved! Go to Solution.
04-09-2014 02:47 AM
You need to create an array of cluster. The cluster (=array element) should have the various desired indicators arranged horizontally in the order you want. Make it a control so you can change it at run time.
Then you simply use a value change event, find the changed element, and update the other cells accordingly.
See how far you get. Good luck.
(Also have a look at this recent post or this idea)
04-09-2014 03:16 AM
Thank you for your reply.
I have this vi. But i cant control this cells when program running. And all cell is control in this vi.
04-09-2014 03:25 AM
The array itself needs to be the control. On a value change event, update with the recalculated values (depending on which control got operated) and write the result back via a local variable of the array.
Make sure to disable all cluster elements that should not be changeable at run time.
(Your current code makes little sense. Basically you are growing the array as fast as the computer allows and you will run out of memory, no matter how much RAM you have.)
04-09-2014 03:52 AM
See if this gives you some ideas.
Of course in the real application, you need to detect which element has changed and use a case structure to correctly update the relevant elements.
04-10-2014 04:00 AM
so can you tell me how can i set different limits for same columns elements?
example: Number A max:100, min:-100 for first row and max:10, min:-10 for second row.
04-10-2014 07:07 PM
04-11-2014 01:30 AM
If i understand true, i need different clusters for each row and i dont need array (or i can use different arrays for each cluster)
in This position i cant set limits for each parameters.
Can u check my table picture. All parameters group have different limits in this table.
04-11-2014 01:36 AM
I dont understand what you are trying to show with you attached picture. What is a "parameters" group?
As I said, if you use my method of an array of clusters, each column can have its own limits.
04-11-2014 01:55 AM - edited 04-11-2014 02:12 AM
example for parameters group in my picture: ullages column, all rows have different limits for ullages.
If i do your method i cant change same columns elements limits. But its must changeable for my table.