LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File name and Measurement in the same table?

Solved!
Go to solution

Hi,

 

I have written the following VI that opens up each image file from a folder and measures a certain dimension on the image. It then puts the result of the measurement in a table.

The table has one column and N rows since I have N images in my folder. How can I modify this VI so that it puts the filename in the same table as well as the measurement?

 

I want the table to look like:

 

filename1 measurement1

filename2 measurement2

...

and so on.

 

Currently, it just shows

measurement1

measurement2

....

and so on.

 

Here is the VI:

 

 

 

0 Kudos
Message 1 of 3
(2,795 Views)
Solution
Accepted by topic author HA1975

You can't use the Express Table. As the properties page says, it is for numeric data. You will have to use a little bit of actual LabVIEW to create the table. A table is just a 2D string array. So, convert the numeric to a string, build a 1D string array from the file name and numberic, and use a shift register to build a 2D array. Something like the code below.

 

Message Edited by Dennis Knutson on 05-07-2009 01:43 PM
0 Kudos
Message 2 of 3
(2,787 Views)
Thank you very much! That worked exactly like I wanted to.
0 Kudos
Message 3 of 3
(2,766 Views)