LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table reset

Solved!
Go to solution

Hi,

 

I am having trouble resetting the values of table, once I hit the clear button it clears the values but when I acquire again it remembers older values. But if I re-run the VI then table is reset and older values are not remembered. Can anyone help me how to clear values from table, so that after clearing the table and loading new values it does not remember older values. I am attaching the vi with this post. Please take a look at it.

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 1 of 15
(5,320 Views)

First make sure you save an empty table as default

 

Then use the invoke node "Reinitalize To Default" whenever you want to clear the table.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 15
(5,313 Views)

You forgot to include the state control (enum typedef).

Well made these three changes and you're good to go:

 

1.

Change 1.PNG

Disable this code, as resetting (connecting TRUE constant) a new 'Build Table' express VI has nothing to do with the other 'Build Table' express VI placed in 'acquire' state.

 

2.

Change 2.PNG

Set next state as 'acquire', and make following change (point#3).

 

3.

Change 3.PNG


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 15
(5,311 Views)

So the point is...

'Build Table' express VI keeps the data in its buffer (uninitialized shift register implemented inside the express VI)... Now everytime when you add data, this express VI actually keeps on appending it to existing data...!!

Now in order to clear the data, one must input a TRUE boolean to this express VI's 'Reset' terminal and that's it.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 15
(5,309 Views)

how do you save an empty table as default ? 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 5 of 15
(5,273 Views)

In two steps:

1. Right click the Table (on Front Panel) and select 'Empty Table'.

2. Right click the Table (on Front Panel) and select 'Make this Default'.

 

Reset and Make default


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 15
(5,268 Views)

Right click on the empty table ---->Data Operations ----->Make Current Value Default

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 15
(5,266 Views)

It is still not working, please take a look a the vi I am attaching. May be I am doing something wrong.

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 8 of 15
(5,253 Views)

I applied the changes but I wanted to clear the table when I press clear. In this case when I press clear, it clears the table and also acquire one value which i do not want.

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 9 of 15
(5,252 Views)

Have you seen this particular reply of your post, follow it and it will solve the issue.

There is scope to make your VI efficient, by removing unnecessary code.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 10 of 15
(5,249 Views)