LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display latest value to table

Hi All,

        I'm currently using a table to display my results. And i would like to display my latest values at the top according to the latest timing. And i would like to restrict its memory like only until 20rows. What's the problem with my current one?

 

Thanks & Regards,

Isa

0 Kudos
Message 1 of 15
(4,040 Views)

That's because you are using an Express Table.  It drops in the Build Table Express VI.  It gives you a quick way to get code running, but doesn't give any flexibility.

 

What you need to do is delete that Express VI.  Create your own code to build the array.  You would use build array to create an array where new data is placed at the top.  Then feed that data into a shift register as well as the table to be used in the next iteration of your loop.  To limit the array to 20 rows, you would just use a case structure that would only use the first 20 rows of the array (array subset function) whenever the size of the array exceeds 20 rows.

Message 2 of 15
(4,035 Views)

Hi,

I've done but how to get the timestamp. I want to display time. And is my way of doing right?

 

Thanks & Regards,

Isa

0 Kudos
Message 3 of 15
(3,995 Views)

Your loop only executes once because of the True constant wired to the stop termianl.

 

It will put the new data in the first row each time.  You may want to use insert into array at the zero position, which would put new data at the top each time.  And to limit to 20 rows, use array subset.

 

To get a timestamp, look at the timestamp functions on the time pallette.

0 Kudos
Message 4 of 15
(3,982 Views)

Thanks for the reply. Sorry for the trouble. I still new to labview. I want to display time in the table. I do not want to display just plainly time.

 

Thanks & Regards,

Isa

Download All
0 Kudos
Message 5 of 15
(3,971 Views)

To get time in table you'll create a local variable with start time of program, which you then subtract from all times before adding them to the table. That should give time in table.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 15
(3,967 Views)

Hi Yamaeda,

Sorry but I don't really understand what you mean by 'substract from all times before adding them into the table'.

Can you explain more in details? Sorry about that.

 

Thanks & Regards,

Isa 

0 Kudos
Message 7 of 15
(3,953 Views)

Hi Isa,

can you please explain where your temperature comes from and which time you need? Are your temperature values in the string array?

 

Try to help. 

Mike

0 Kudos
Message 8 of 15
(3,948 Views)

Hi Mike,

I had a subvi on temperature, i'm using a thermistor. bec i have real time on my program [uses 'get time/date in seconds' & 'format time/date string']. My table will display temperature & time readings. My temperature values are in string array.

0 Kudos
Message 9 of 15
(3,919 Views)
You simply have to add the time string to the existing array that has your temperatures. If you want to add it to the beginning, use the Build Array function and wire the time to the first input and wire the temperature array to the second input.
Message 10 of 15
(3,896 Views)