LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Storage

Hi everyone,
I'm still pretty new to LabView So I need some help.

My project requires me to write a series of measurements to the same
file. The measurements can have up to eight parameters and also need
to include the name of the lab user and the name of the project. This
is supposed to be a spreadsheet.
The names of the parameters are of course supposed to be there as
well.
Can you help me out.

Best greetings

Svavar Von Eisland


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 3
(4,773 Views)
I actually did something like this on Friday. You've probaby tried to use
the Write to Spreadsheet VI and noticed that you need double-precision
values for the spreadsheet, and you have a boatload of strings. Chalk
that up to a LabVIEW limitation. While there are ways around this (none
of which are that good), what I do is create my own delmited file (if you
create a comma or tab-delimted file, Excel will be able to read it).

I took the values I had and put them in the correct order and put them in
a cluster, and passed that into a sub-VI that had a huge "concatinate
strings" box so that inputs 1,3,5,7... etc. were my strings, and
2,4,6,8... etc. were simply a comma. I made the last input a Carriage
Return (a string constant). Just write the string to a file, and
you're
done!

I assume this is all in a loop, so that each time the loop goes, there
will be a new line of data to the file (you have to make sure you're
appending to the file and not overwriting).

Of course, make sure no commas are in your strings already, or else it'll
mess it up. I created another vi to screen out commas and replace them.

If you have questions or want to see screenshots, just email!

rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669


I've tended to dismiss the whole Open Software
movement as more religion than business. But let's
face it. Businesses come and go, but religions
stick around for thousands of years. If Bill Gates
and his employees plan to take on the Linux gang,
they better be prepared for a buzz saw.

--Jack Bryar
0 Kudos
Message 2 of 3
(4,773 Views)
> I actually did something like this on Friday. You've probaby tried to use
> the Write to Spreadsheet VI and noticed that you need double-precision
> values for the spreadsheet, and you have a boatload of strings. Chalk
> that up to a LabVIEW limitation. While there are ways around this (none
> of which are that good), what I do is create my own delmited file (if you
> create a comma or tab-delimted file, Excel will be able to read it).
>
> I took the values I had and put them in the correct order and put them in
> a cluster, and passed that into a sub-VI that had a huge "concatinate
> strings" box so that inputs 1,3,5,7... etc. were my strings, and
> 2,4,6,8... etc. were simply a comma. I made the last input a Carriage
> Return (a string constant). Jus
t write the string to a file, and you're
> done!
>
> I assume this is all in a loop, so that each time the loop goes, there
> will be a new line of data to the file (you have to make sure you're
> appending to the file and not overwriting).
>
....

You may also want to try to use the Format into String function in the
string palette. Drop it and double click or popup and choose something
about the formatting options. Anyway, it will make it reasonably easy
to format your tabs, commas, and carriage returns to make the rows of
a spreadsheet file.

Greg McKaskle
0 Kudos
Message 3 of 3
(4,773 Views)