Gezippte TDM/TDX FIles über Anwenderbefehl laden

Hallo,
ich habe aus Platzgründen meine TDM/TDX Files gezippt.
Ich möchte aber nicht vor jedem Analysieren der Messwerte die Dateien erst von Hand entpacken und dann in DIAdem öffnen. Daher habe ich mir einen Anwenderbefehl geschrieben. Diese soll über Navigator.Events.OnFileLoading das Laden einer Datei abfangen. Daraufhin wird die Dateierweiterung der Datei geprüft. Entspricht sie der von mir vorgegebenen Form TDZ, so werden zuerst die gepackten TDM/TDX Dateien aus der TDZ in ein tempoeräres Verzeichnis entpackt und von dort aus geladen.
Der Anwenderbefehl wurde Einstellungen->Optionen->Erweiterungen->Anwenderbefehle aktiviert.
Damit ich die TDZ Datei auch im DataFinder sehe, habe ich ein DataPlugin für 'TDM Zip' erstellt. Die Prozedur ReadStore ist jedoch leer.
Beim ersten 'Laden' einer TDZ bzw. der dort gepackten TDM/TDX Dateien klappt auch alles einwandfrei. Der Anwenderbefehl wird ausgeführt.
Möchte ich jedoch eine weitere TDZ Datei laden, so erhalte ich den Fehler, dass das Laden der Datei xyz.tdz mit dem Ladeverfahren 'TDM Zip' fehlgeschlagen ist. Beim Datenimport ist das Kopieren der Massendaten aus der Datei xyz.tdz in die internen Daten fehlgeschlagen.
Benutzt DIAdem beim zweiten und folgenden Aufruf einer TDZ nur noch das DataPlugin und nicht den Anwenderbefehl?
Was muss ich ändern?
Gruß,
   Frank

Hallo Frank,
Wenn Sie schon ein DataPlugin fuer die TDZ Dataein haben, wozu brauchen Sie ueberhaupt den UserBefehl?  Also, laut der Fehlermeldung wuerde ich vermuten, dass das DataPlugin immer die selbe temporaere TDM und TDX Dataeien benutzt.  Ich tippe darauf, wenn Sie stattdessen im DataPlugin TDM und TDX Dateien derselben Dateiname der urspruenglichen TDZ Datei (und im selben Verzeichnis) erstellen lassen, dann wird es wohl klappen.
DateiName.TDZ ==> DateiName.TDM + DateiName.TDX
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • C/C++ routines to convert tdm/tdx files to text

    I need to write a C/C++ program to convert TDM & TDX file data into text files.  Does NI or anyone
    offer any example C or C++ source code to do this?  I have some large data sets (> 500 Mbytes)
    that I would like to break up to be analyzed using MATLAB or C/C++ routines.

    Hi,
    Please contact National Instruments support for further assistance with this issue or send email to  [email protected]
    Thanks.
    Tunde A.

  • Reading TDM/TDX files from PHP5

    Hello,
    Did someone know if a library exist to read a TDM and TDX file from PHP?
    I would like to plot som data from a TDM file on a webpage. The web server is running on Linux...
    Thanks,
    Yannick

    This might not be trivial. The TDM (XML-based) file uses several advanced XML techniques, so you'll need at least XPath in order to address objects in the file. Furthermore, you will need to gather information from different objects that are invisible in the user interfaces of DIAdem and LabVIEW. Not sure if they're documented. A proper description might be up on www.asam.org, but it is not going to be fun to read
    I have tried to use XSLT to publish hierarchy and properties of a TDM file as HTML, but gave up on it since handling of the # pointers was a nightmare.
    I'd love to hear about a successful approach.
    Herbert

  • TDMS index files does not have meta data but indicates presence of raw data in the TDMS file??

    Hello All,
    I am working on reading TDMS Index files into Matlab. So far i have been fairly successful in reading them when the data has been acquired for a short period of time (checked at 2 min). However when a 15 minute data has been acquired, in a few segments the meta information is not present but a variable in the header info for that particular segment says raw data is present. Does anybody know if sometimes meta information is not available but the raw data is actually present (segment wise) in the TDMS file?
    Many Thanks,

    That means the segment shares the same meta information with the previous segment. It doesn't have any new properties. Its raw index information is the same as previous.
    You could use the meta information of the previous segment to read the raw data of this segment. Hope this helps,
    Message Edited by Yunzhu on 08-03-2009 08:45 PM

  • Creating TDMS Waveform File using DDC_ functions in C 6.0?

    I am trying to implement an export written in C 6.0. I can make TDMS files using the DDC_ commands without any problem. But I cant figure out how to make waveform TDMS files. I figured if I added the wf_ properties I should be able to set the waveform=Yes. But it appears to be more complicated than that.
    Here is what I have working so far ... (excluding the error handling to make it easier to see)
    DDC_CreateFile(sDestFileName, "TDMS", gszinfoline1, gszinfoline2, gszinfoline3, gszinfoline4, &hOutputFile);
    DDC_AddChannelGroup(hOutputFile, szGROUP_NAME, szGROUP_DESC, &hgroup)
    DDC_CreateChannelGroupPropertyTimestampComponents(​hgroup,
                                                                          szCHANNEL_NAME,
                                                                          (unsigned int)year,
                                                                          (unsigned int)month,
                                                                          (unsigned int)days,
                                                                          (unsigned int)hours,
                                                                          (unsigned int)minutes,
                                                                          (unsigned int)wholeseconds,
                                                                          (double)fractionseconds);
    DDC_AddChannel(hgroup, DDC_Double, szCHANNEL_NAME, szCHANNEL_DESC, szCHANNEL_UNITS, &lphchannel);
    DDC_CreateChannelProperty (lphchannel,"wf_increment", DDC_Double, dInterval);
    DDC_CreateChannelProperty (lphchannel,"wf_xname", DDC_String, "Time");
    DDC_CreateChannelProperty (lphchannel,"wf_xunit_string", DDC_String, "s");
    DDC_CreateChannelProperty (lphchannel,"wf_start_offset", DDC_Double, 0.0);
    Any suggestions? (All the details on this in help are either aimed at LV or completely missing)
    Thanks much,
    Don
    Solved!
    Go to Solution.

    Hi Lindsay,
    Thank you so much for your reply.
    I'm not using CVI, I am using Microsoft C/C++ 6.0.
    Everything is fine if I make data TDMS files, but everything I have tried to make a waveform file has failed.
    The posted code has error handling cut out and you are right, i was missing the following call at the end.
    DDC_SetDataValues(lphchanneltime,  lpthischanneltimesarray,  (unsigned int)(scansinfile/decimationfactor));
    This code all works to make a TDMS data file but I have to include a separate time channel to make it graphable (not shown).
    I would rather specify the wf_increment and not include the Time channel with time values for each sample.
    I would have thought all I need to do is set the waveform property on each channel to yes but nothing I do changes that from "No" to "Yes"
    Kind Regards,
    Don

  • TDM Deployment File Errors

    I have devolped and application in LV 8.02 using TDM Express Storage vi's on a window XP Machine. I deployed this application to a stand alone 2000 Machine and I recieve error  "-2564  Open Storage". I have included all runtime engines and drivers with the package and yet the same message. This application works fine on the development system do I need plugins for target to use this file format?

    Greetings!
        You are missing the NI USI installer that is required to run the storage VIs. Please refer to the attachment for more information. The information is found from the LabVIEW help by searching for USI installer. Please let me know if this helps.
    Thanks much
    Avi Harjani
    Attachments:
    StorageVIs.GIF ‏51 KB

  • Kann den Akku nur über Usb laden

    Hallo,
    ich habe seit kurzen ein Neues Blackberry bekommen da mein altes defekt war. nun hat es auch die neue Software version drauf und ich kann mein Akku nicht mehr über das kfz-ladekabel bzw über das mitgelieferte Netzkabel laden sonder nur noch direkt über Usb. kann mir jemand helfen bzw sagen voran das liegt?

    Hallo,
    Wie geht es dir?
    haben Sie versucht, mit einem anderen Ladegerät?
    If you have an answer to your question then please click “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit.
    BB 8700 -> Bold 9000 -> Curve 8520 -> Bold 9700 -> Curve 9320 -> Bold 9900 -> BlackBerry Z10 + PlayBook 64 GB Wi-Fi

  • Wie kann ich in NAVIGATOR txt file berücksichtigen

    Hallo Zusammen,
    ich habe Messungen als txt-File bekommen, das keine Default-Format von DIAdiem, kann ich irgendwo steuern damit diese Format in NAVIGATOR suchen einblendet?
    Solved!
    Go to Solution.
    Attachments:
    Unbenannt.png ‏47 KB

    Über das Kontextmenü von "My Computer" kann man einstellen, dass alle Dateien angezeigt werden.
    Sobald ein DataPlugin für die Endung *.txt existiert, werden txt Dateien auch angezeigt, wenn der Dateifilter aktiviert ist. Ein DataPlugin kann einfach mit dem Text DataPlugin Wizard erstellt werden.
    Modul Navigator -> Datei -> Text DataPlugin Wizard

  • TDMS big file size

    I have been using .csv files to store my data.  Since I have a long time test to do, I begine to learn using TDMS files to save hard disk space.  But I found it generates two files, one of them is a index file.  Both are big sizes.  Any one is about 8 times greater than .csv file within first 2 hours.  TDMS files are supposed to be small size on disk.  I must have done something wrong?

    is TDMS more fasted as binary files ?
    it depend !!
    it depend how you build your binary file.
    If you make a simple binary modèle (ex : double) the tdms file is very much faster in writing, and very solwer on reading.
    After a deframentation, the tdms is faster in reading.
    When you create a complex binary file with size reservation, the binary file is faster.
    (increase a file size need a lot of time, so increase it for a big value, write all your date, and at end schrink the file to the good size).
    For more a 1 channel it can by comple to developp this binary modèle, but a have tested it and it always more faster as tdms (in read or write and befor or after deframentation).
    Other consideration, the TDMS driver lost memory when you don't record datablock with the same size.
    ex : you use hight spped daqmx channel, low speed channel and serial data.
    ex : 5 channel at 10000 sample/channel/cycle and 10 channel at 20 samples/channel/cycle and 30 channel at 1 sample/channel/cycle
    (typiquely SCADA value)
    during my test i lost 2Mb/h (i don't remeber the CAR number,sorry).
    With same datablock, you have no problem.
    best regard's
    EricC
    Ingénieur d'Application / Développeur LabVIEW Certifié (CLD)
    Application Engineer / LabVIEW Certified Developer (CLD)

  • TDMS & Config Files Comparison

    Hello,
    I'm not really new to the community since I had many queries that have already been asked before and I found an answer here, until now. I've been studying up on TDMS (File>Group>Channel) and its conceptual heirarchy seems to be very similar to Config Files (File>Section>Key). Now, I think it's possible to use the TDMS template for config files as well aside from measurement results but I thought I should ask...
    What are the advantages and disadvantages of TDMS vs Config (*.ini) Files?
    I haven't found any form of comparison between the two so far. I would personally excempt the Notepad accessibility of the Config File as an advantage since it would be better to limit the access to the system settings from non-authorized users.
    Solved!
    Go to Solution.

    For your addon question - this is why it's important to have proper error handling and a proper shutdown routine in your application.
    If you have any LabVIEW errors in your application you should handle these properly and if it's deemed to be an unrecoverable error then you tell your application to exit.
    You should handle your application being closed correctly to make sure that whenever possible you shut down gracefully and close all of your references (e.g. hardware, file references etc.) before your application exits. There's some good information about that on a recent thread here: http://forums.ni.com/t5/LabVIEW/Best-Practices-for-Gracefull-Application-exit-close/m-p/3094973#M885...
    Of course, there is always the possibility that you might get a fatal application crash or you might have a power cut or something - in that case you could periodically flush the TDMS buffer but there is also OS and disk-level caching to consider. 
    If you look at the Advanced TDMS VIs - you can disable buffering and according to the help "buffering does not occur at any layer".
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • TDM Search Files

    I would like to search many files for data (text entry) and return a list of files that contain the text.  I am considering using TDM or TDMS but I can't find any examples of doing data searches.  Speed and performance is not a concern so I am looking at TDM.  I dont see a way to set a directory and search within the directory for specif information.  I do not want to use DIAdem for this application.
    Matt Fitzsimons
    NI Alliance Member
    NI Certified LabVIEW Architect
    LabVIEW, LV-RT, Vision, DAQ, Motion, and FPGA

    I would agree with Jason.  While this may seem like a fairly basic operation to just "list the files containing the correct information" from the eyes of the programmer, it's actually pretty detailed.  In order for LabVIEW to gain access to the metadata of the files you're trying to search, a few steps are going to be involved.  As Jason suggested, if you'd like to achieve this In LabVIEW, you'd have to programmatically:
    Open each file
    Parse through its contents to determine whether or not it matches the criteria you seek
    Close the file
    then Iterate to the next file in the set.
    In a way, you're creating your own custom indexer to retrieve the desired information from your set of files.
    The reason I suggested DIAdem for this application is that, as I previously stated, this is basic functionality within DIAdem - the work is all done for you behind the scenes (hence the "mining" of data that you describe) by the DataFinder that uses minimal system resources in the background to index your data  That way, when you need to quickly search for certain criteria and list the files that apply to the situation, a programmatic routine like the one above isn't necessary; DIAdem simply references the information it has already collected in the course of its indexing.  I think this is perhaps one of DIAdem's strongest points - ease of data management. 
    I hope this helps clarify the situation!
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Can I save a TDM file without its TDX data?

    I have hundreds of data files that have been sorted (by date).  In certain cases, I want to analyze subsets of this data in particular groupings.  I would like to save these groupings in a TDM file but I don't want to another copy of the bulk data.  However, I notice that if I save a TDM, it automatically saves the TDX, and I'm not sure it's possible to save/open a TDM without its same-name TDX file.  Does anyone else have a similar need and/or know of a data management method that can suit my need?
    Thanks.
    Solved!
    Go to Solution.

    Hmm...  But it seems that the TDMS file simply puts all the information in a single file and, in the end, is almost as big as the TDX file.  What I'm trying to do is only save the meta data but not the bulk data, since I already have a copy of the bulk data in another set of TDM/TDX files. 
    Maybe I'm asking the wrong question.  Here is a simplified example of what I'm trying to do:
    I have several (let's say, 6) original TDM files.  Each of these original TDM files have 20 or more channels.  I've created a new TDM file, pulling out only 5 of the channels from each of the original TDM files but organizing them into 6 groups corresponding to the original 6 TDM files.  From this new TDM file, I've created a TDR file where the plots are based on the 6 channel groupings.  Due to this TDR to new TDM association, I think I need to save the new TDM.  However, that means I now have a new giant file that contains duplicate data from the original TDM files.  I don't want this duplicate data.  Being very new to DIAdem, maybe I'm just going about this the wrong way because I haven't figured out the "right way" to accomplish my needs.  Can anyone advise?

  • How to store data (in tdm files)

    I'm looking for advice on how to store data in tdm/tdx files.
    The main challenge is like this: At regular time intervals there is new data available (say every 10 minutes there are 10 minutes of new data available). All data is time based. So every ten minutes I may create a new tdm/tdx file containing this data segment. However, when i want to analyze the data i dont necessarily want to view 10 minutes of data from all channels, but maybe 20 hours of data from one particular channel.
    The way I've achieved this so far is to manually load each 10 minute segment of this particular channel and then add these parts together. This is both time consuming and cumbersome. Is there a better way to do this that I've simply not discovered yet? Is there a better way to store data to simplify this process?
    One solution is of course to save data from several 10-minute frames in one file, but seeing as there is a never ending supply of data i cant simply save all data in one giant file, it has to be split up at some point, and the problem will still remain.
    One factor to have in mind here is that this is rather large amounts of data (maybe 10GB each day), so the option to simply load all the data into memory goes out the window rather quickly.
    Feel free to ask if I've not made myself very clear

    Hi salte,
    If your test ever ended, and if you had LabVIEW 8.20 or higher, I would recommend using a TDMS file, which handles data appeands flawlessly.  DIAdem 10.1 now also does data reduction and index windowing during file loading for TDM / TDMS / DataPlugin files, so that you could easily load out only the part of the file you wanted to look at.  But since you describe your data acquisition as never stopping and amassing 10 GB per day, I agree that it would be impractical to use only 1 data file.  So we are stuck with some number of files which each contain a part of your measurement.  This approach can have advantages, since you can save operational properties for each "buffer" such as average value, dominant frequency, ambient room temperature, etc., and later on you can use the DataFinder to query out only the data buffers which meet specific conditions based on these properties.  The problem remains to load and assemble data based on multiple files.  This is an old problem in DIAdem, and one for which I have an efficient and I hope satisfactory workaround application.  It does what you describe already doing in the minimum amount of time and with the minimum amount of user interaction, and it can be highly parametrized to suit your particular situation.  The ideal way to start the application would be as part of a ResultsList custom menu.  This would enable you to query out the buffers you wanted, highlight those rows in the ResultsList, right-click and choose your custom menu, and WHAM! the selected buffers for your queried channel(s) are automatically appended together in the DataPortal.  Launching from a ResultsList custom menu would mean that you could skip the file dialog and just read out the data sources directly from the ResultsList selection.
    Let me know what you think,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Importing Data from Multiple DataPlugin Files.zip ‏198 KB

  • Dateihandle Problem

    Hallo zusammen!
    Aufgabenbeschreibung in kurz, ganz kurz:
    Also ich möchte eine Textdatei einlesen, die Daten sortieren (es entstehen mehrere tdm/tdx-Files), die sortierten Daten in Layouts (pro tdm je ein tdr-File) darstellen und die Layouts zu einem PDF-Dokument zusammenfassen.
    Nun hab ich mir 4 Scripte geschrieben, die all das machen.
    Das 5. Script ruft die Funktionen der 4 Scripts auf und es funktioniert (olê,olê)!
    Nun mein Problem:
    Nun hab ich mir gedacht, das ich das ganze grafisch aufrufen lasse, dabei wird durch ein mouse-event genau die abfolge der aufrufe aus dem 5. script gestartet.
    Aber leider bricht mein proggie zwischen sortieren und layouts erstelle öfter mit der Fehlermeldung 'Dateihandle Problem (Fehlernummer 6)' ab.
    Es kann dann eine tdm-Datei nicht öffnen, denke die ist irgendwo noch vom Betriebssystem gesperrt.
    Kann ich sie manuell freigeben? Warum geschieht es nur, wenn ich die Scripts aus der grafischen Oberfläche aktiviere?`
    Ich weiss ohne quellcode ist ne Anwort immer schlecht, aber über jede Anregung zur Lösung würd ich mich freuen!!!

    Hallo!
    Was du mal testen kannst ob 'nervöses' rumcklicken im SUD zum Problem führt. Es gab DIAdem Versionen und Controls in denen der Event_Click asynchron abgearbeitet wurde, also ggf. mehrere gleiche Events gleichzeitig abgearbeitet werden. War m.W. bei ComboBox ein großes Problem.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Diadem View does not reload saved data correctly

    I am not sure what is going on but my data which is loaded contains multiple groups with the same channel names.  This data is from a repetitive test so the data in all the files is similar.  I create tabs in view for each data group and plot five charts for each data set.  Everything looks good and I save the .TDV and the .TDM files.  The problem comes when I try to reload the .TDV file.  The data plots are all wrong with the exception of a few.  They also look to be the same plots carried through all of the tabs.  Not sure what is going on here but would appreciate a little help.

    Hi Team Player,
    We must try to reproduce the problem to find out what happens. Please,
    send me the *.TDV file as well as the *.TDM/*.TDX file and a
    description of the steps you have done. If your data are confidential
    you can send it to my email address, directly ([email protected]).
    Which exact DIAdem revision do you use (DIAdem menu -> Help -> About -> Versions)?
    Greetings
    Walter

Maybe you are looking for

  • HTMLDB_ITME.DATE_POPUP problems

    Hi, Since I did the HTMLDB patch my date_popup item is not working anymore. When I choose date in the popup calendar, the value returns in the first field , not the one where I clicked on the calendar icon. Here is my select : select htmldb_item.hidd

  • Write to file Question

    I am doing some expirimental modeling with a VI that many members of this board greatly helped me get going.  Part of this modeling is the creation of an arbitrary periodic function.  I've accomplished this using 30 "Y-Value" Inputs, and a frequency

  • Printing takes 2-3 minutes to spool

    I have a Lexmark E250dn printer. It worked perfectly for a long time. But, then it started taking 2-3 minutes for a document to print. It sits there with the message "sending data" and then suddenly prints a few minutes later. I've tried updating to

  • Partial delivery without GR Based IV in split valuation scenario

    Dear, We are using split valuation for our materials. I'm reading on http://help.sap.com/saphelp_di46c2/helpdata/EN/47/61017e49f011d1894c0000e829fbbd/frameset.htm the following sentence: In the case of partial deliveries for a purchase order, you can

  • Project Folder or Program Files???

    I'm having problems with drive too slow error messages and system overload, and shouldn't be... I'm using an external firewire 7200rpm drive for my audio. I've reformatted my audio drive, as well as reloaded Tiger onto a freshly formatted system driv