LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem regarding Table Control

Hey all,
My name is Sarang Jaiswal. I have just started working with LabVIEW . I have some basic doubts. The following example is no where related to any Real Time Application.
 
I am now learning Clusters so I have created two clusters, one is populated with "Meter control" and an "OK Button" and other is populated with Table control, "Numeric control" and "String Control".
 
Now when I move the Needle of the Meter the value in the Numeric control and the String control changes. Also when I press the Record Button the values in the Numeric control and String control is copied to the table.
 
The problem is when ever I click the Record button the values are over written and the previous value is lost . I want that when ever I press Record Button the new values are inserted in the new row of the Table.
 
I am attaching the VI with this . Please see this vi.
 
Also as I am new to LabVIEW please suggest some Improvement in my program so that I can do some efficient programming.
 
Thank You,
--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 1 of 3
(2,625 Views)
Hi Sarang
 
I can't open your vi, but according to your description, you do not fill the table correctly.
 
The table-control is a 2D-array of strings.
 
Just have a look at the simple vi I attached. You can set 5 different value and append them to the table.
 
Hope this helps.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(2,608 Views)

You need to built your table in a shift register so the new data is appended to the old data. See attached quick modification for some ideas.

(Also don;t forget to add a delay or an event structure to your while loop. Your VI runs a maximum rate consuming all CPU. My example uses an event structure so the loop only executed when needed.

Message Edited by altenbach on 07-04-2005 11:05 PM

0 Kudos
Message 3 of 3
(2,605 Views)