LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make the log file using the labview?

Solved!
Go to solution

i am making a setup for the data acquistion using the Data acquisition card NI 6025 e   and labview. i am reading the values of voltage and current of the batteries. i want to make the log file of all the data so that i can put that in equations. i am unable to make the log files. please help me in that

0 Kudos
Message 1 of 12
(14,743 Views)

Logging the data is easy simply use the "Streaming to file concept". But how you want to store the data? in ascii or binary or any other format.You can also make use of the TDMS.. search the LabVIEW examples for more details. There are many examples for the same (search word "Binary", "ascii", "TDMS"

Regards
Guru (CLA)
0 Kudos
Message 2 of 12
(14,738 Views)

i would like to have the data in excel or text file

0 Kudos
Message 3 of 12
(14,738 Views)
Solution
Accepted by data logging

Yeah, so go ahead using a TDMS file....

 

You can use the free TDM Excel Add-In which allows you to read your files directly in Excel - so you'll get best of both worlds:

- super fast streaming performance

- readable by Excel

 

You can either use the version already shipping with LabVIEW or look for an update at: TDM Excel Add-In

 

Greetings from sunny Aachen

Stefan

Message 4 of 12
(14,730 Views)

If you're looking for how to get started with this, head over to the example finder (Help >> Find Examples).

 

Search "TDMS"

 

Pick one of the examples starting with "TDMS Streaming"

 

This should be able to get you a really good template to start from.

0 Kudos
Message 5 of 12
(14,710 Views)

but myexamples are not working still it is saying NI service locator not working

i am unable to make it run

help me

0 Kudos
Message 6 of 12
(14,672 Views)

 how to select the data rate so that it loggs the data after every second

i save the data but it saves it with data rate i dont know

but causing problem

i want to logg data after every one second

help me

0 Kudos
Message 7 of 12
(14,672 Views)

As far as your problem with the NI Service Locator is concerned, you can follow the steps in this KnowledgeBase article to clear that problem up.  If you cannot find the NI Service Locator in your list of services, follow the same steps but instead with "NI System Web Server."

 

In order to log data every second, you could put your data logging function inside a loop alongside a 1000 ms wait function.  However, I'm interested in why you need to log your data at such a strict interval.  The act of saving a file to disk is a relatively slow process, why must it be done every second?  What kinds of problems is it causing?

0 Kudos
Message 8 of 12
(14,637 Views)

hi

first of all thanks that you showed interest in my work

1. i have found NI Servive locator but it is not running and when i try to run it  i get error like " could not start the NI Service LOcator service on the local computer error: 2 the system cannot find the find the file specified"

 

2. i am building a data acquistion setup to acquire data from the batteries. i need to save this data in computer after every one second . now there are two types of data rates.

  • the input to the sample clock
  • in sample clock there are two things rate and samples per channel
  • there is some thing analog 1D Wfm Nchannel Nsamples with number of samples per channel and some time out

overall i want that it may read thousand of samples in a second but log data after every second.

 

3. i also need your help in logging it. right now i am logging data by clicking on wave form and and saving it to excel file. i want that it auto  matically loggs the data in my computer untill  my loop stops

 

plz help me in these regards

 

thanks

 

0 Kudos
Message 9 of 12
(14,629 Views)

this is the vi file

plz correct it

i would be thankfull

0 Kudos
Message 10 of 12
(14,600 Views)