01-07-2009 09:05 PM
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
01-07-2009 09:31 PM
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.
01-08-2009 08:38 PM
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
01-08-2009 10:58 PM
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.
01-09-2009 01:34 AM
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
01-09-2009 01:56 AM
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
01-09-2009 02:20 AM
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
01-09-2009 02:28 AM
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
01-10-2009 06:16 AM
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.
01-10-2009 05:26 PM