LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How add tables automatically?

Hello,

 

I have buttons (button1, button2, ...). I need that by pressing Button1, a table1 appeared in some indicator,
then by pressing Button2, table2 appeared under table1, ... . After that, by scrolling I could see all tables. How can I make this?

 

Thanks

0 Kudos
Message 1 of 7
(3,508 Views)
Is there any controller or container where I can place tables? 
0 Kudos
Message 2 of 7
(3,484 Views)

Depending on your exact requirements, there are several ways you could do this:

  1. Create multiple tables on your front panel.  Use the Visible property to show and hide them.  Use an event structure with the buttons.
  2. Use a single table, but add and remove text from it in the appropriate locations to make the table appear it is several tables.
  3. Use a subpanel control containing a VI which has other tables on it.  Show and hide these tables as in option 1.
There are other options, but those are the most straightforward.  They are listed in order or complexity.  The last option is relatively easy if you have experience with VI server, but would be challenging for a new LabVIEW user. Let us know if you have further questions.
0 Kudos
Message 3 of 7
(3,460 Views)

Please post an image that mocks-up what you are trying to develop.

 

Also exalain how the user will interact with the desired GUI object.

 

With the description you have provided, you could...

 

1) Polulate a table

 

2) Invoke node >>> Get image

 

3) Insert image in Picture, note where the bottom of the table image is in the Picture

 

4) Repeat step 1-3 putting new tabels below the previous.

 

5) Show vertical scroll bab on Pictuer when total image size is greater than the drawing area.

 

So please "show us" what you have in mind and the guru's that prowl this forum will advise.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(3,458 Views)

I'd go with Gray's suggestion, Draw all tables as you want them, then Hide them and use the property to show them when you press a button. LabView will add scrollbars if the window gets large enough.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(3,452 Views)

Thanks very much for answers. I'll try to explain my problem in details. 

 

1. I have Tab Control. In this Tab Control I need tables as I wrote, which are below each other.These tables are empty.

2. Also I have buttons. When I press button1, some data will be written in table1, when I press button2, data will be written in table2 , ... . 

 

 

0 Kudos
Message 6 of 7
(3,439 Views)
Well, your basic problem is that your VI has no code in it. Why don't you try to implement some of the suggestions that have been given. Everyone here responds better to fixing someone's program than writing the whole thing.
0 Kudos
Message 7 of 7
(3,427 Views)