Logging Data using TDMS

Hey peope of the world, I have a question about how to use the TDMS write function. I have never used this form of file I/O and even still I'm not very good at even using write to spreadhseet functions. My attached project is based of the continuous measurement and logging template, and I know that they use TDMS in their program. My only issue is I dont quite understand what all theyre doing and quite frankly I dont believe my program requires such detail in the logging loop. I have a logging loop setup with a open/write/close TDMS functions connected, but I'm pretty positive im doing it wrong. Any suggestions/feedback would be greatly appreciated, thank you!!!
Attachments:
DC Motor Dyno Test.zip ‏501 KB

When you open a log from that test can you tell me when the log was started?  When was it stopped?  What computer was it ran on?  What user was logged in when it ran?  What is the time between samples, or sample rate?  Did the test end due to an error?  Or what was the test end reason?  What was the settings to the test?  Meaning what was the selected current, voltage, or loads?  What was the UUT type?  What was the UUT serial number?  And I just realized what is the name of the data you recorded?
TDMS allows for properties to be set, which can be like meta data.  Information about the data that can help you understand more about how the data was taken.  This information is very useful in helping to understand an event that likely took place when someone wasn't around to see what happened.
To set properties use the TDMS Set Properties.  If you give no group or channel name then the property is set on the file which will probably be fine for all the settings I mentioned.
Another thing is I highly recommend giving a Group name and Channel name to the data being logged.  I actually thought the write VI had these terminals as required.  Without it I have no idea what the data even is.  Is it a pressure sensor? Is it in Voltage, or Current?  Is it RPM?  Is it Analog 0 or Analog 1?  These types of things can be better understood with a channel name, and properties of the channel.
Oh and if your index file is too big at the end (it should be on the order of a few kb) then use a TDMS defrag on the file after the close to save space. 
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Log data in TDMS format

    Hi I would like to log the acquired digital and analog data ( 2 seperate channels) into one 1 TDMS file. I acquire both signals in the same loop. Could you please help me on this and let me know how can I wrire and read it back using TDMS format
    Thanks

    You can find examples in LabVIEW like TDMS - Write/Read (events) which I think can satisfy your requirements with some modifications.

  • Getting error while fetching Log data using B1TE Tools

    Hi,
    i am using B1TE Tools to test an add on which generating an error while fetching the Log File using DI Logs Reader. The error is below:
    "Wrong Xml file format. "The data at the root level is invalid, Line 1, position 1.".
    please report it on B1TE blog"
    Please help..
    Regards,
    Sunita

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Using event risen to log data into citadel

    Hi all,
    I have an HMI application in LV & DS 8 reads My OPC items, and log data, alarms and events into citadel. Knowing Citadel is event-driven, I want to use this event to distinguish a change in database and update my Historical Alarm & Even List in the HMI front panel instead of ever polling the database.
    I really appreciate any help.

    Can you post more information on what you are doing? I haven't done much with Citadel but I thought that it is aimed at logging data as it changes, i.e. all of the data logged in there will be different else it wouldn't have been logged in the first place?!
    There are block diagram functions that allow you to read the traces back and this is all you need. Check out the examples that come with the DSC module.
    Let me know if I can help you further.

  • HT4889 I just transferred data using migration assistant from a macbook prop to a macbook. I am trying to log back into the user that was on the pro but is now on the macbook with the same password as before, and it says my password is incorrect.

    I just transferred data using migration assistant from a macbook pro to a macbook. I am trying to log back into the user that was on the pro but is now on the macbook with the same password as before, and it says my password is incorrect?

    Suggest you try the password for the Macbook, not the previous one.

  • Using Java to Log Data from another program

    I have a program that I want to log data from while the program is running. The program has a textarea that gets updated with data from the internet. I want to be able to read this textarea and store the data so it can be analyzed later.
    I don't know what the program was written in, only that it is running on Windows.
    Can Java "watch and read" another program?

    i think that easyest way would be to listen for network traffic and then parse relevant information from there...
    you could make a java app to act as proxy for that programm (maybe) and then log everything that goes through socket, or if you don't want to do that, then you could also use some other software that can listen network and look from there information that intrests you...
    of other softwares id recommend somekind of Iris soft that i used 3-4 years ago... realy easy to use nd runs on windows as well... even better would be ngrep, but i don't know if it has any windows versions...

  • Data Upload using TDMS

    Hi,
    We are using TDMS for transferring the data and for scrambling as well and we need to explore if TDMS can be used for Data upload from SAP to SAP.  If yes, how this can be acheived using which TDMS functionality.
    Also, how can TDMS be integrated with SAP BODS tool?
    Thanks and best regards,

    Hello Amr,
    TDMS can't be used for data upload.
    Thanks
    Anita

  • How to- Log Changes in Plan Data Using Datastore Object

    Hi,
    I followed the u201CHow tou2026 Log Changes in Plan Data Using Datastore Objectu201D  in order to trace the changes made in Planning.
    Although it is working fine, Iu2019m only being able to write the changes made by users that have SAP_ALL.
    Do you know what kind of authorization is missing on other users?
    Best regards,
    João Arvanas

    Hello João
    I would recommend you to use the authorization logn on RSECADMIN to
    trace what is the authorization missing for the user who you are using.
    Also you can try to set break-points on the introduced code and check
    where the issue is raised and check that is the authorization system is
    looking for.
    Let me know if this helps, otherwise I will give you other updates.
    Also you may post here what is the error that you are getting. That can
    help us to giving more specific answers.
    Best regards
    Lucimar

  • We collected data using NI in the Labview environmen​t and created tdms document. Is there a reader for reading the data in Matlab environmen​t?

    We collected data using NI in the Labview environment and created tdms document. Is there a reader for reading the data in Matlab environment?

    A search will often turn up results.
    Reading TDM/TDMS Files with The MathWorks, Inc. MATLAB® Software

  • Logging data in a file using Labview VIs vs. Mathscript functions.

    Hello,
     I'm working on a data logger at 200 Hz frequency. I wanted to log the data to a file after eace sample received. When I used (fopen,fprintf,....) on Mathscript, the Labview started to log the data at a slower rate. I then used the Labview file VIs and it is working fine up till now.
    My questions are as follows:
    1- Are the file functions in the Mathscript slower than the Labview VIs ?
    2- Is saving the data to a file after each sample is received a good idea or is there a better idea ? I just don't want to keep the data in the memory and after all the data is logged, I flush them to a file ... because, it seems that the PC will run out of memory.
    Thank you,
     Walid

    wfarid wrote:
    Hello,
     I'm working on a data logger at 200 Hz frequency. I wanted to log the data to a file after eace sample received. When I used (fopen,fprintf,....) on Mathscript, the Labview started to log the data at a slower rate. I then used the Labview file VIs and it is working fine up till now.
    My questions are as follows:
    1- Are the file functions in the Mathscript slower than the Labview VIs ?
    Yes. That's because you're going through another layer of software. Why were you trying to use MathScript to log data to file in the first place? Are you a Matlab "aficionado"? 
    2- Is saving the data to a file after each sample is received a good idea or is there a better idea ? I just don't want to keep the data in the memory and after all the data is logged, I flush them to a file ... because, it seems that the PC will run out of memory.
    It doesn't make sense to save data after each sample. File I/O is an expensive operation in terms of time, and you have the operating system to deal with, so while you may be able to keep up the rate for some time, eventually it will be thrown off. You can do as suggested which is to wait until you have a certain amount and then write that to file, or you can set up a producer-consumer or master-slave architecture. Let one process/loop collect the data and put into a buffer, like a queue, and the other process/loop can stream it to disk at a more reasonable rate. You just have to make sure the buffer is large enough so that if the file I/O gets hung up you won't reach the buffer's limit.

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples.
    I want to create a datalogging using the option under Operations>Data Logging
    When I retrieve the data the only information that is present are the control operators correction factors that I defined. The graphed data that was created is not retrieved.
    Is there a solution to show the graphed data plots that were created on the front panel? They remain unchanged from the last run of the VI or blank if I open the VI without having ran the program.
    Thank you.

    This is expected for the Data Logging in LabVIEW. If you want to record the signla data, use the Write to Measurement File Express VI.  Here's a link with a walk-through:
    http://www.ni.com/academic/students/learn-daq/data-logging/
    The Data Logging from the Operate Menu is for recording front panel control(s), as you have observed.
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Log data on the host computer using cRIO-9035

    Is it possible for me to log data on the host computer opposed to on the controller itself? I'm needing to log quite a bit of data and I'm not wanting to use my storage on the cRIO. I'm using scan mode on the controller.
    Thanks

    Lots of ways to do this. You can write a datalogger to run on the PC, to read shared variables hosted on controller and  write them to a file. There is also the DSC module for logging hundreds to thousands of shared variables to a database, if you need that.

  • By what time zone does Verizon use to log data usage?  When I checked my current usage, there is data used logged in at early morning times and I don't have anyone else who is up at these times.

    By what time zone does Verizon use to log data usage?  When I checked my current usage, there is data used logged in at early morning times and I don't have anyone else who is up at these times.  I also have 1.8+ GB charged to my allowance that I don't understand at all how it is mine because the highest I've ever logged at any given time has been barely 0.5 GB.  I'm cruising along at .04-.07 GB and all of a sudden appears a 1.8+ GB deduction/usage and it makes me wonder what the ???? is going on.  Is Verizon posting fraudulent usage amounts just to drive up my usage so I have to buy more Gigs?

    The time is not the time of actual use, but the time a tower reports the use. The data would have been used anytime prior to that time. Usually, but no always, the usage happened between the time prior and the time reported.
    For example:
    9:00 AM   1.23 MB
    7:05 AM   0.01 MB
    1:15 AM  350.03 MB
    8:00 PM   23.89 MB
    This does not indicate 350 MB was used at 1:15 AM. It really tell you 350 MB was used sometime between 8:00 PM and 1:15 AM.
    The times are local time zone as far as I can tell.

Maybe you are looking for

  • Error in Credit Transactions form

    Hi, When I query a transaction and then go to Action -> Credit I am getting the below error. Could you please help? User Exit 'CURRENCY_INFO' was called with invalid arguments. Thanks, Bhanu

  • Transferring images from PC to device

    I am kind of irked that when you transfer you own picutres from the PC to the device it does not diplay with full resoluation in the photo gallery. I have a 12MP camera and when I tranfer the images to my phone and look at them in the photo gallery,

  • Can I stream internet radio from the n95 8gb?

    http://www.fox.com.au/ ^ the 'listen live' button is there a way to play that?, and I know the n95 has a radio but i dont wanna use headphones

  • Have I just completely screwed up my zen tou

    I own a british Zen Touch and have lost the software cd. I had to reformat my entire laptop due to a virus, and so I lost the software that was installed. However, in order to transfer songs around, I tried downloding the software on the website. I f

  • Layer disappeared from timeline

    I'm creating some banners with Edge Animate for the first time. I started with the biggest one, now I need to create some more downscaled versions. Clearly the easiest and fastes way is to duplicate the edge project and modify the layers size positio