LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Non repetitive operation

Hi,

I have the following problem: I build a table from a text
file with one floating point value per line and 101 lines. I
use the library's "read from spreadsheet file" vi, in a for
loop until all 101 lines have been read. This fills a 1D
table of floats.

The table I fill is in my "global variables" vi.

What happens is that if I first load the table (it is filled
ok) then keep running the loader vi, the table appears to
fill with all zeroes.

I don't have a cue at what causes this. I have checked that
the vi I use opens then closes the file, hence I dont have
to. And after a file is closed it can be reopened, right?

Can anyone help?

* Xsoubie@atlantic-line.frX (supprimer les "X")
* http://www.astrosurf.com/soubie
* Alimentation thermostaté
e à découpage AlAudine NT:
* http://www.astrosurf.com/soubie/alaudine.htm
* Au royaume des aveugles, les borgnes sont mal vus... - P.Dac
0 Kudos
Message 1 of 2
(2,471 Views)
You should only have to call "Read From Spreadsheet File.vi" once (not 101 times). The "all rows" output is a 2D Array, and the first column of the array will contain your data. You can get the first column of a 2D Arrray using the "Index Array" function and wiring a zero to the Column input.

Good luck,

-Jim
0 Kudos
Message 2 of 2
(2,471 Views)