Runs a PDM file

I'm pretty impressed by the ease and effectiveness of logging TDMS especially with Daqmx Configure Logging.vi bypassing OS non-determinisme and storing it directly in the file defined in the hard drive.

I managed to store a large file DDHN logging more than 250 kech. / s.

Initially, I thought that I would have to data bases programming but TDMS technology seems to work ok. There is however a limitation that can probably be resolved and I might need to reconsider the databases.

The amount of data could charge us on a graphic record of 1000 px more 100KS/s. I designed a few custom cursors and they only work when the file is saved to 1KS/s for a period almost a 1 hr. At any higher sampling rate, my beloved sliders just go on!

Secondly, the only kind of "Standard option" that I could see with TDMS uses 'TDMS set the next Position' vi. As with databases, can we say TDMS to extract the say every 2200 to 2300 pm?

Thanks in advance

Waris K

PDM reading has an Offset and Count entered just to get the samples you want.  The hardest part is going to be determining what samples you need.  It will take just a little math, since you know the start time and the frequency of sampling.

Tags: NI Software

Similar Questions

  • Channel import from time to tiara from a PDM file

    I have a generated Labview tdms data file has the timestamp clock computer written in the file as a string. When I add this tdms file to the portal in DIAdem data it is important this time string channel, and I can't trace this as the x-axis data. I would like to import this time string of the tdms as a weather channel file easily. Is this possible?

    The work around I have found is to import the tdms file in excel, and then save as an excel file. I can then import this channel since the Excel using the Excel Import Wizard and specifying the time stamp column is a weather channel. Surely, there must be a better way.

    Thank you.

    Hi PRinOR,

    Here is a VBScript script that converts each text string "Time Stamp" in the data portal to a 'Time Stamp' datetime string.  You can run this VBScript manually whenever you load one of these TDMS files in the data portal, or we could implement to run automatically on your computer as an event of BROWSER loading custom.

    If you can convince the controller LV for a Brown wire entry datetime to the PDM file, then this new channel of data will appear as a column of values datetime correctly recognized in Excel, even if the display in Excel will be different from the datetime string in your TDMS file because Excel does not this default format (I think it's possible with a custom display Excel datetime type) display type.

    Brad Turpin
    Tiara Product Support Engineer
    National Instruments

  • PDM file with automatic backup on corrupts the data.

    When I test data stream into a file to PDM using AutoSave = true, data is corrupted in the 'package' #3 and beyond.

    I write matched double/DateTime data to a TDMS file configured as TdmsWaveformLayout.PairedTimeAndSampleChannels.

    When I try to read the PDM file, for example using the sample application to drive, I get all sorts of errors. Notably, the number of timestamps is not equal the number of samples (values y). More data is corrupted. In other words, the timestamps are invalid and the sample data is essentially random.

    This happens every time I write the third package/lot and beyond. If I write a single sample, followed by another single sample, the third will be corrupted. If I write 1 kilosample, followed by 1 kilosample, sample no. # 2001 will be corrupted.

    I guess that something is very wrong in the automatic backup routine, as data are always written correctly when I explicitly save the PDM file.

    It's using MS 8.9.0.246 in Visual Studio 2008 SP1 using .NET framework 3.5 SP1 on Windows 7.

    The TDMS file is created in the following way. Note that AutoSave is set to false to avoid the bug.

    TdmsFile f = new TdmsFile (tdmsFilename, new TdmsFileOptions (TdmsFileFormat.Version20, TdmsFileAccess.ReadWrite, true, TdmsByteOrder.Native));
    f.AutoSave = false; Must not be set to = TRUE because of a bug in Measurement Studio!

    TdmsChannelGroupCollection channelGroups = f.GetChannelGroups ();
    ChannelGroup TdmsChannelGroup = new TdmsChannelGroup (...) Unique ID...) ;
    channelGroups.Add (channelGroup);

    f.Save (); Needed when AutoRecovery is set to false.

    TdmsChannelCollection tdmsChannels = channelGroup.GetChannels ();
    foreach (IDicomInstance instance in series. Instances)
    {
    tdmsChannels.Add (new TdmsChannel (string. Format ("{0} (time) ', for example.") Signal.Name), TdmsDataType.DateTime));
    tdmsChannels.Add (new TdmsChannel (string. Format ("{0}", for example.) Signal.Name), TdmsDataType.Double));
    }
    channelGroup.WaveformLayout = TdmsWaveformLayout.PairedTimeAndSampleChannels;

    Every 10 ms, a double array [100] happens (with information in a DateTime table clock [100]). The data is stored in the file TDMS in a simple way:

    AnalogWaveform wf = AnalogWaveform. FromArray1D (sample. Data.Samples);
    WF. Timing = WaveformTiming.CreateWithIrregularInterval (sample. Data.Timing);
    WF. ChannelName = sample. Source.Name;
    WF. UnitDescription = sample. Source.UnitOfMeasurement;

    ChannelGroup = _tdmsFile.GetChannelGroup (... TdmsChannelGroup Unique ID...) ;
    TdmsChannel channel = channelGroup.GetChannel (... channel... name);
    channelGroup.AppendAnalogWaveform(channel, wf);
    channelGroup.Parent.Save (); Needed when AutoRecovery is set to false.

    This is what the TDMS file looks like in the sample player application:

    For those who can run in it before we are able to get a fix on, a viable solution is to turn off auto-save and save the TDMS file any time a change to the file is made manually, such as after adding channels or groups, or write data.  This will not negatively affect performance, because that's exactly what the property of automatic backup.

    It should also be noted that this problem arises when you use the layout of the TdmsWaveformLayout.PairedTimeAndSampleChannels waveform.

    I'll post back later when we have a fix for this problem.

    Sorry for the inconvenience that this may cause,

    NickB

    National Instruments

  • allow to create or write a PDM file with labview 2014

    Hello

    I need help. I'm new with LabView. I tried to create a PDM file, but it does not work. My code in the link below is really simple, but I don't know what the problem is. My code doesn't throw any errors so I don't know what to look for in the internet. Once my code is excuting, no file is created. I use LabView 2014 and my laptoop has windows 7 on it.  My question is, in all I need to do whenever I create a new VI of specific configurations that will be play/create/write a .tdms so that my code may work correctly because the writing in a .txt file works perfectly.

    Thank you and sorry for my English

    Hi bmtanguay,

    you want to run your VI on your cRIO9074?

    Where do you think your cRIO creates this file? A cRIO is a clean computer - and it has its own 'hard drive '. This is where your file is created: C partion on your cRIO!

    You cannot create a file on your Windows pc from a VI running on your cRIO!

  • I can't uninstall Firefox. I tried my Add/Remove programs and have tried the intsruction given to manually run C:\Program Files\Mozilla Firefox\uninstall\helper.exe. and it won't work. Firefox is the only program that I am not able to uninstall u

    I am unable to uninstall Firefox. I have tried my add/remove programs and have tried the intsruction given to manually run C:\Program Files\Mozilla Firefox\uninstall\helper.exe. and it will not run. Firefox is the only program I am not able to uninstall using the normal methods
    

    This has happened

    Just once or twice

    today

    User Agent

    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SIMBAR = {357DAD02-321A-4E1D-8305-C8CE3D8CA934}; .NET CLR 1.0.3705; .NET CLR 1.1.4322;. Media Center PC 2.8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152 .NET CLR 3.5.30729)

    I ' v tried running C:\Program Files\Mozilla Firefox\uninstall\helper.exe.
    It does not work.

  • Satellite X 200 - 25 G: problem of Flash Cards - Run time error file TCrdMain.exe

    Hello world!

    I don't know how, but I have a problem when my windows Vista from (running)
    The problem is with these file TCrdMain.exe this file is for Flash cards, end running every time when I put my PC on (with windows startup). But I see this problem: "Run time error file TCrdMain.exe ' and I should click Close.
    I don't know where can I uninstall this program and when I find that driver (Software) (if I uninstall and then install this driver, maybe that everything will be OK). This is the main problem.

    And another question...
    There are so many programs with this computer (laptop), and if I want to install Windows XP for example, where can I find everything (each programs) there may be 10 or 15 pograms.

    It will be a big problem if I change my OS. Y at - there a site where I can download, everything...
    Thanks for the replies, nd sorry about my English :-) skills
    Best wishes from the Bulgaria and have a nice day!

    Post edited by: me

    null

    Hello

    I'm not very well why the executable Run TCrdMain.exe error, but it is certainly up to Toshiba FlashCard software and the FlashCard belongs to the package Toshiba Vista added value m.

    Kody is good. Reinstall the VAP and check if this helps solve this problem.

    With regard to the question of the other;
    You are right; the notebooks are preinstalled with many different applications. But it is necessary because the laptop supports many different features.
    However, if you want to install XP OS on the X 200 PSPB9E series, you will need drivers Toshiba XP and all need Toshiba XP drivers are available on the European driver Toshiba page

    You must install all the drivers available if you want to use all the features of the laptop.

    Concerning

  • Cannot open the PDM file with excel 2016

    Hey guys,.

    I have Office 2016, LV 2015 and (I checked my "TDM Excel Add-in" file) the Excel Add-in 2015 of CT.

    I have attached a picture of what I get when I try to open the PDM file with excel.

    So, I found something strange. I checked active supplements under the excel options and the TDM Excel Add-in is listed as inactive (and is called a COM-add-in). I tried to activate it, by checking the box (see the second picture), but that does not change. Interesting is the last line of my second attached photo:

    Translated it means: ' loading behavior: a runtime error occurred when trying to load this Add-In.

    I have 10-64 bit operating system like windows.

    Someone at - it a solution?

    Kind regards

    Slev1n


  • How can question I run an executable file in the background?

    Hello

    I'm trying to run an executable in the context of LabVIEw, but none of the methods described in the forum and on ni.com seems to work. I use LV 2011 on a 64-bit Windows 7 machine where it is important.

    I tried the method described in "How to make an executable in the background as a marketing app?" (http://digital.ni.com/public.nsf/websearch/4A8B626B55B96C248625796000569FA9?opendocument&Submitted&&... but I always see a fragment of a window at the bottom near the start (Exhibit 1) key.) Table 2 shows that it consists only of the title bar. (I customized the appearance of the window as described and added the two points

    HideRootWindow = True

    UseTaskBar = FALSE

    in the *.ini file.)

    I also tried to disable all other items in the menu customize appearance of window with the same result.

    Then I tried the method described in "Ongoing execution of an executable of LabVIEW as a background process" (http://digital.ni.com/public.nsf/allkb/EFEAE56A94A007D586256EF3006E258B) addition of the FP. Open the VI method and affecting the hidden state. I got the same result (table 1).

    Should I do more or different for my version of windows? I appreciate your help. Thank you.

    I found the problem. It was a wrong directory for the build name. I continued under an older version of the executable with the default window settings. The method that is described in how to run an executable file in the background as a startup Application? "(Works... http://digital.ni.com/public.nsf/websearch/4A8B626B55B96C248625796000569FA9?opendocument&Submitted&& .

    Sorry, for wasting your time. Mea culpa.

    Peter

  • How to add a time stamp to a PDM file

    I need to add a time stamp to my PDM file.  Currently, I take an array of doubles, their conversion to a type of dynamic data, then send to tdms_write.  I have to add a timestamp, but I can't find a way to do it.  I also tried holding the timestamp, converting it into a doube, U64 and I64 and adding that to my table before the dynamic data conversion type, but when I lose precision.  I need to have at least millisecond resolution.  I know that I lose accuracy because the timestamp is two 64-bit values.  top 64-bit are set to seconds since the epoch and lower 64 bit are fractions of a second.  I would even send these two numbers divided in my happy tdms file and conversion at a later date, but can't seem to do it again.  Any help would be appreciated.

    The natural way would be using a waveform.

    You can add your timestamp as two U64 (using cast to array U64) as properties of the channels as data t0.

    Tone

  • ChnListBox... of another PDM file

    Hello world

    I would like to draw a waveform channel, given any string value x and value any channel there, I selected in a dialog box.

    It's pretty easy if both channels are owned by the same PDM file, as you can see in the code below (works on my computer):

    Option Explicit  ' force explicit declaration of all variables in a script.
    Dim DisplaySheet, DisplayArea, oMyCurve

    Call UserVarCompile ("WaveformPlot.VAS")
    Call SUDDlgShow ("Dlg1", "C:\Documents and Settings\All Users\Documents\National Instruments\DIAdem 11.0\Documents\WaveformPlot.SUD", NULL)

    Call View.Sheets.RemoveAll
    Dim oMySheet: Set oMySheet = View.Sheets.Add ("Sheet1")
    View.ActiveSheet.Cursor.Type = "line".
    Set DisplaySheet = View.Sheets ("sheet 1")

    Set DisplaySheet.Areas.Item = DisplayArea (1)
    DisplayArea.DisplayObjType = "CurveChart2D".
    Call View.Sheets ("sheet 1"). Areas.Item (1). DisplayObj.Curves.RemoveAll
    Set oMyCurve = DisplayArea.DisplayObj.Curves.Add (XChannel_, YChannel_)

    I created two user variables named XChannel_ and YChannel_ so that I can use in my SOUTH file.

    Everything is perfect... but I am asked to select the channels to any PDM file. The two channels selected may not belong to a same file PDM.

    I don't know how to handle that I don't think that there is a command that would allow me to use 1 channel 1 TDMS file without loading completely. Help, I have seen several methods like ChnNameGet with DataFileHeader, but none of them really treat my problem.

    I hope someone will help me.

    Thank you.

    Near Hi,.

    Let me first address the selective channel loading component of your post.  If you also want to help by the way all the information required of the SUDialog to the VBScript DIAdem, we can address that next.  For a single channel to load a data file, you must know the following information:

    Full path to the database (disk + case + name + extension)

    Name of the use to use to read this data file

    The name or Index of the channel group channel is in

    The name or Index of the string to load

    GroupRef = 'GroupName' ' OR '[1].
    ChannelRef = 'ChannelName' ' OR '[2] '.
    ChannelPath = GroupRef & "/" & ChannelRef ' ' GroupName/ChannelName' GOLD ' [1] / [2].
    Call DataFileLoadSel (DataFilePath, ChannelPath, use)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • repair error 2503 PDM file to recover data

    Hello

    I met a system failure, while writing data to a file of PDM and subsequently can no longer access the PDM data and get "2503" code say error this file is not in line with the style of PDM file format.

    I read the forums and have seen some solutions and has tried to fix the file using other vi but the closest, I had a partial recovery with the majority of deleted data. My file must have four sets of data, tests are the first 3 and the 4th is the important data, recovery seems to delete the data in the last section, which is the important thing and the file is greatly reduced. I did this on a copy of the file so still have the original.

    Delete the index file doesn't help at all.

    I tried to copy and opening of another place that does not work.

    I opened in a file Analyzer that provides a load of code in the hexagonal section, I don't understand, but the last entry made at a reasonable time for the data collected and useful stamp.

    The data are relatively simple, different channels of the same format of an acquisition of measurement data.

    It seems that the data is always there that the file is of a reasonable size for the expected data, but I don't know how to fix and read the data, its really important to access the data, can anyone help?

    the files are attached

    Thank you

    -camm-

    There are 17 segments in the file. #1 à #15 segment are all about 'Thermocouple, Thermocouple #1, Thermocouple #2' groups and channels in them. the 16 segment #, #17 talk about "Thermocouple #3" and channels in it that you are not really worried. These 2 segments stored only metadata about them. If everything went right, it should be a #18 segment that needs to store the raw data on it for «Thermocouple #3» channels And this segment should begin at offset 0xCA000. But there is no such segment. The data offset 0xCA000 is not follow the format of the PDM. Analysis all data after 0xCA000, it is not even a piece of bytes corresponding to the format of the header of PDM. All data after 0xCA000 looks like spilled invalid souvenirs in the file when the system crashed. And it decreases the size of the watched file "reasonable."

    The conclusion is that the raw data for "Thermocouple #3" had not been recorded in the file.

  • How to increment a PDM file name

    Hello

    I have a vi that register data in a PDM file. So I'm using tdms open file and write to the file of PDM. In addition, I want to increment the file name. The user must write the name of the file, for example if the file is named test I want to the next file is called test1, test2, etc.. Now, if I forgot to change the file, simply replace automatically and I lose all my saved data.

    Can you help me to get an easy method to save the data in the file with the incremented automatically name please.

    Thank you

    Hi Nico_AT

    Maybe what your are looking for? The just VI tries to start the file. Is there no mistake it will be close and start the following and so on.

    Concerning

    Tobias

  • Internal error of screw, PDM file storage

    I use LabView 8.5.1, DAQmx 9.0.2. and a module OR USB6216.

    I have set up on my request a task as follows: 15 channels activated with a sampling rate of 1sample/10 s (very slow). My purchase has to work for a few days or more.

    Sometimes, I get the error "Internal storage screw" (code - 2500). so I can't read my file TDMS (see attached file) and I can't deal with my data.

    You know the exact meaning of this error on the case of a PDM file. Yo have a solution to process my data?

    Best regards, Daniel.

    This tdms.dll was released with LabVIEW 2010. TDMS.dll is backwards compatible, it means that you can still use this dll with LV 8.5.

    You can right-click on tdms.dll and choose "details" to see the version.

  • End of the file has detected the error for more than one column of a PDM file playback

    Hello fans of LabVIEW,.

    I write the data in several columns of a PDM file. After that, I would like to read the data in each column to treat it.

    writing data works without any problem, if I get a PDM file with say 4 columns of data. When I try to read these columns now, LabVIEW always gives me error 4 "end of file" for all but a PDM read functions. Regardless of the number of columns I've read or how big they are, its still the same. LabVIEW reads a column and gives the error for all other tdms read functions.

    Does anyone has an idea how to solve this problem?

    A picture of my VI and the error is attached.

    Pls find attached extract

  • How to write the Date/time of the PDM file property

    On the page root of the PDM file, there is a predefined, property called ' Date/Time' in the first row.

    I would use it to save the timestamp when the tdms file is created. But in the help file.

    I find that the following property constant. So, how can I write to the field of property ' Date/time '?

    Property Constant Data type
    Name TDMS_FILE_NAME String (char *)
    Description TDMS_FILE_DESCRIPTION String (char *)
    Title TDMS_FILE_TITLE String (char *)
    Author TDMS_FILE_AUTHOR String (char *)

    Thanks for any idea or suggestion.

    You are not sure if it's exactly what you want, but have you tried that?

    CVIAbsoluteTime            CVItime, *t = NULL;
    TDMSFileHandle          deH = 0;
    
    // Create TDMS file and set some properties
    errChk (TDMS_CreateFileEx (file, TDMS_Streaming2_0, TDMS_ByteOrderNative, 0,"example.tdm", "someText", "title", "author", &deH));
    
    // ...
    
    GetCurrentCVIAbsoluteTime (&CVItime);
    errChk (TDMS_SetFileProperty (deH, "Date/Time", TDMS_Timestamp, CVItime));
    
    // ...
    
    // Save and close fileerrChk (TDMS_SaveFile (deH));TDMS_CloseFile (deH);
    

Maybe you are looking for

  • Red screen

    I dropped my iPad 2. It is out of warranty. When I tried to turn it on it started with a red screen with a battery symbol. After a few seconds, he would cycle to a gray, then black screen, then repeat the loop. It would not keep pressed power button

  • How to read / write to a HID device with call a library function?

    I had tons of problems to read from a device USB HID in VISA. I had no problem make a driver for him and write it in LabVIEW. However, whenever I try to read using Read Visa, Visa USB Control In or interrupt USB event get different types of error mes

  • How to reset the volume of C and D cacacities?

    The C drive capacity is about 20 MB and the capacity of the disk D is approximately 59 MB. C must be greater than D for a faster start. How to reset the volume? Can I use CD to my computer?

  • WRT54G2 Configuration for satellite Internet

    I am technician for our unit. We recently bought a package of TS2 satellite internet. We have a Switch Linksys SD2008, hooked up to the modem. Switch, I have 3 WRT54G2 wireless routers in different places in our area of the company. Each router is co

  • What is the ISO repair and how can I get it?

    I get an error that my file Wim D/Sources/install file does not exist.