LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data saving

Hallo,

i have problem in saving data i aquire from the DAQ.
I programmed a VI ,with two simulated signals(i can replace them with DAQ VI) and added all the necessary VIs to get the data i want!
when i want to save this data ,i wanted it with so many options. like, the VI should save data in a new file when the date is changed and so.
I found all these attributes in Write to LVM VI and simply i used it to save my data,
now here when i see, in the file there is no information about what is the data stored in which column?

i wanted to use file I/O options but,really didnt understand functionality,that how can i create a file path,reference number and all!

how can i save the data which i acquire, in a file ,where it can show the column names,time and a header to specify what  for the program meant!

please help me!

Thanks a million!

0 Kudos
Message 1 of 17
(4,635 Views)
I suppose , I was not clear in explaining my problem.

I want to save the data i obtain in a file ,which specifies  the data/channel is saved to a column with a title to it.

like a column titled Voltage should values obtained from voltage channel!and so with current and temperature.

at the moment iam using a write to LVM VI , it saves data in columns but there is no clue of what is what!

i tried with File I/O options but ,it saves only ASCII values!

can one suggest better ways!
0 Kudos
Message 2 of 17
(4,620 Views)
Can you post your VI??
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 17
(4,616 Views)
Hallo Bart !
here i post my VI, and also attach both the text file where it saves data.
but it is crude ,i didnt make any comments and docmentation

Thank you Very Much,

Download All
0 Kudos
Message 4 of 17
(4,611 Views)
Hi,
 
it isnt clear for me what you want to get..? I think you want the data displayed in the table into the file with the right column headers at the top?? what are the column headers...? and am I right? reply and iI will try to help you 😉
 
cheers
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 5 of 17
(4,607 Views)
Yes Bart !
Thanks alot you got my problem right..
I want data in the file (here i mentioned sine data!.txt ) with column titles .
in the front panel its okay i can add column and row headers that no püroblem. all is with data in the txt file

Thank you!
0 Kudos
Message 6 of 17
(4,599 Views)
Ok i atached the edited VI, hope this is what you want? I added a date/time adition to the filename also...
 
cheers
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
Message 7 of 17
(4,593 Views)
Hallo Bart thank You Very Much!
but i have two errors when i run the program

Possible reason(s):

LabVIEW:  An input parameter is invalid.
---
NI-488:  Command requires GPIB Controller to be Controller in Charge
.

and the second one the program asks for the file anem each time!
is it becuse the open file is with in WHILE loop shall i make it outside the loop!

Thanks a ton Bart
0 Kudos
Message 8 of 17
(4,589 Views)

Both errors are beacuse you didnt specifie a path ... On the frontpanel I placed a Path control were you select a file path... the program adds a datestamp to that name also... but you will see that. So select a file before you run the program and your problem should be solved.

Cheers

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
Message 9 of 17
(4,586 Views)
Thanks Bart!
Yes i realised and chked it with file name!
I just tried giving filename and it worked..i didnt see time stamp !
i peeped here to say thanks to you once again!

thank you soooooo much!


0 Kudos
Message 10 of 17
(4,576 Views)