LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to spreadsheet and read from spreadsheet

hello,

i've got a problem.
in my application i export waveforms to spreadsheet.
my data from the spreadsheet contains hundret of rows per second.
When i read the data from spreadsheet and add this data to a chart there are only values each second and not between the seconds.
what can i do to solve this problem. or is there a solution in LV?

markus
0 Kudos
Message 1 of 9
(4,006 Views)
Hi,

There is ofcourse a simple solution. Because, if I store a 1000Samples/sec in my spread sheet, I am able to recover it, without any problem. But before proceeding any further, can you just attach the data that you have and the vi that you are using, so that it can be modified properly.

Thanks
Regards,
Sreedhar T
0 Kudos
Message 2 of 9
(4,002 Views)
here is a example of a spreadsheet. the used vi to write this spreadsheet is called "Export Waveforms To Spreadsheet File (1D)".
You found it Functions/Waveform/WaveformFile IO.
0 Kudos
Message 3 of 9
(3,988 Views)
Hallo Markus

Der Zeitstempel, den du in deiner Datei hast, ist mit einer Sekunde zu ungenau. Wenn du die Daten nicht als Waveform-Datei speichern kannst, würde ich dir empfehlen, zusätzlich in einer Kopfzeile das dt zu speichern. Dieses kannst du beim Laden der Datei dazu verwenden, wieder einen Waveform zu bilden. Die Informationen die ein Waveform enthält sind Startzeitpunkt (x0), Zeit zwischen zwei Messpunkten (dt) und die Daten selbst (Y). Wenn du das dt abspeicherst hast du alle Infos und du solltest ohne Probleme einen Graphen generieren können.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 9
(3,982 Views)
Hi,

I have done two things:

1. I have simulated the conditions of a 2-D array (1000 x 10) and saved the same in the spread sheet (abc.xls).
2. I have taken your file, and converted it to a spread sheet file and saved the same (xyz.xls).

Go through the attachments. Hope this works.
Regards,
Sreedhar T
0 Kudos
Message 5 of 9
(3,957 Views)
Hi
I have a problem that is much simplier than discussed.
I need to read from a spreadsheet file (see attached file), but somehow I get just the first culomn.
I have used all kinds of delimitters (tab, space)
Thanks for any hints
Yariv3G
 
What do I wrong on the ReadFromSpreadsheet.vi?
Download All
0 Kudos
Message 6 of 9
(3,746 Views)
Im running into the same problem as Yariv3g ...  Was wondering why I was getting empty arrays in my programs, and I relized the read from spreadsheet is basically not working for me.

I have it setup exactly like yariv, and have also used all sorts of different delimiters, and formatting.
0 Kudos
Message 7 of 9
(3,707 Views)

MJBrehm wrote:
Im running into the same problem as Yariv3g ... 
I have it setup exactly like yariv, and have also used all sorts of different delimiters, and formatting.

yariv3g's problem was identified and solved in this thread.

If your problem isn't exactly the same, it may be best to post an example of your spreadsheet and vi.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 8 of 9
(3,691 Views)
figured it out... I was trying to read from an excel file, which was saved as an excel workbook file. Changed the file format to text ( tab delimited ) ... and all the data popped right up.
0 Kudos
Message 9 of 9
(3,683 Views)