LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table row switch

Solved!
Go to solution

Hi there,

 

I'm working with a system that has a log-file.

A small part of the file is added as attachment.

What I want to do is to scan the file and put the latest date (30-03-2010) at the top.

So the dates have to go from newest to oldest date.

Then I want to put the data into a string and put it in a table.

 

How can I do this in Labview?

 

Thanks

0 Kudos
Message 1 of 9
(3,622 Views)

Hi Cheese11,

you can use the "Read From Spreadsheet File.vi" to get your data into a table. With "Index Array", "Sort" and "Reverse" can you modifiy it for your needs.

 

Mike

0 Kudos
Message 2 of 9
(3,615 Views)

Hey Mike,

 

I'm doing that to put it in a table.

But when I use the "Reverse"-block, the columns will get reversed, but not the rows.

And with "Sort" it is the problem that I need a 1D Array.

In my file you can see dat the Array consists out of more columns.

 

So are there any more solutions or do you mean something else?

 

Greetz

0 Kudos
Message 3 of 9
(3,610 Views)

Hi Cheese11,

see the attached image.

 

Mike

0 Kudos
Message 4 of 9
(3,607 Views)

Mike,

 

What is the name of that 2 ABC-blocks, can't find them.

 

Thanks

0 Kudos
Message 5 of 9
(3,603 Views)

Bundle and Unbundle

 

You will find them here : Functions palette >>  Cluster, Class & Variant

0 Kudos
Message 6 of 9
(3,598 Views)

Mike,

 

I'm very sorry, but now I can't find the 2nd block, the block after the "Read Spreadsheet String" block.

 

Greets

0 Kudos
Message 7 of 9
(3,594 Views)
Solution
Accepted by Cheese11

Hi Cheese11,

from left to right.

 

"Read From Spreadsheet File"

"Index Array"

"For Loop" with "bundle"

"Sort 1D Array"

"Reverse Array"

"For Loop" with "unbundle"

"Array of String indicator"

 

🙂

 

Mike

Message Edited by MikeS81 on 03-30-2010 10:57 AM
0 Kudos
Message 8 of 9
(3,592 Views)

Hey Mike,

 

Thanks for your help!!!

The vi is doing what I want.

 

Greetz

0 Kudos
Message 9 of 9
(3,584 Views)