Jump to content
Sign in to follow this  
Colin Zhang

Which style TABLE can support the direct input and selective input?

Recommended Posts

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. 

 

 

 

 

post-27969-0-14684800-1416713163_thumb.j

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.