LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving to Spreadsheet File

I have two tables of array of strings that I would like to save in the same file.  How do I save them in the same file making sure that the first table on directly on top of the second table.  Every time I save it, it shows only the first line of each table side by side, But I would like to show the whole table, one of top of the other.  The two tables have different dimensions.
0 Kudos
Message 1 of 25
(3,993 Views)
Also, how do I go by picking one string out of the table so that I can use that string for something else? 
0 Kudos
Message 2 of 25
(3,977 Views)
A table is just a 2D array of strings. To pick one element, use index array with the desired two indices.
 
You probably should attach a simplified example for your saving problem.
 
How do you save the table? It should be no problem to save one table, then append the second table to the same file.
0 Kudos
Message 3 of 25
(3,969 Views)
Here is how I would save tables of different dimensions on top of one another.
Message 4 of 25
(3,969 Views)
Whenever I try to initialize array, it doesn't let me.  I tried using the 'insert into array' function but it just puts them side by side. 
0 Kudos
Message 5 of 25
(3,964 Views)
Attached is an example of how to reread the stacked table file.  You can then use your standard array subsets or index array commands to pick out what you need.
0 Kudos
Message 6 of 25
(3,960 Views)


@Pondered wrote:
Whenever I try to initialize array, it doesn't let me.  I tried using the 'insert into array' function but it just puts them side by side. 



The example above uses initialize arrat to generate some fake table. You already have a table, thus you don't need to initialize any arrays.
 
It would REALLY help if you could attach a small example demonstrating your problem. Not only do we need to know what you use, but also how you use it.
0 Kudos
Message 7 of 25
(3,952 Views)
I wanted to search through the imported file, And select the strings that match.  I tried using 'match string' but it searchs within the strings and gives me that string plus all of the others that follow, but I wanted to search the whole table and pull out only the string the matches the specified one.  After I matched the string that I wanted, I wanted to be able pull out certain parts of that string and use it in other cases. 
0 Kudos
Message 8 of 25
(3,834 Views)
Why not use the "Match Pattern" vi inside of a loop indexed to your table?

Like Altenbach said...it'd be a lot easier to help if there was code to help us see what you are trying to do

Message Edited by Novatron on 07-26-2005 12:07 PM

0 Kudos
Message 9 of 25
(3,816 Views)
Here is an example of the table that I would like to use.  I would like to be able to select the 'AUTO-COMPENSATING' string from the table.  After I select it from the table, I want it to read whether it is on or off and do the specified task.  Then I woul like to be able to read the 'POWER SUPPLY' string from the table and do the same thing.  Then go through each torque input and use the values for torque in another task. 
0 Kudos
Message 10 of 25
(3,943 Views)