Colin Zhang Posted November 23, 2014 Report Share Posted November 23, 2014 Hi All, Which style TABLE control can support the direct input and selective input as same? or how to achieve this function? I have tried the Modern/Classic/System style Table, but can not find a way to achieve this goal. Quote Link to comment
hooovahh Posted November 24, 2014 Report Share Posted November 24, 2014 Tables don't work like that. A table is literally a 2D array of string. That is the data type it contains. It does not have provisions for numerics, drop downs, or other data types without extra work. That being said LabVIEW is a programming language and you can make it do what ever you want. In the past I've seen code where when you click on a field, a drop down controls is moved over top of the table to appear as if the table has a limited selection. But in your simple example is there a reason you don't just have a cluster with all of this data in it? A cluster which contains two strings, and two drop downs? Attached is a VI that looks similar to what you posted. Example Table.vi 1 Quote Link to comment
ned Posted November 24, 2014 Report Share Posted November 24, 2014 If you want to do this using a table, here's some sample code that shows one way you can do it. As Hooovahh mentioned, it uses a table indicator, and controls that are moved on top of the table for each cell to make it appear that the table is editable. http://forums.ni.com/t5/LabVIEW/array-of-cluster/m-p/1822451#M625032 1 Quote Link to comment
Colin Zhang Posted November 25, 2014 Author Report Share Posted November 25, 2014 Thanks for your reply. This is a flexible way to achieve the result. Tables don't work like that. A table is literally a 2D array of string. That is the data type it contains. It does not have provisions for numerics, drop downs, or other data types without extra work. That being said LabVIEW is a programming language and you can make it do what ever you want. In the past I've seen code where when you click on a field, a drop down controls is moved over top of the table to appear as if the table has a limited selection. But in your simple example is there a reason you don't just have a cluster with all of this data in it? A cluster which contains two strings, and two drop downs? Attached is a VI that looks similar to what you posted. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.