Scaling of TDMS files

Hello

Someone has a good example of VI for scaling of TDMS files. I have capured data using the attached VI and I want to change this data in a new file by using the scaling slope and intersection derived a calibration VI. I thought it would be simple, but when I followed the example OR doesn't change it anything but the writing of information scaling for the PDM file properties. The data remains the same.

Thank you

Dan

Hello

According to your here attached excel file, I don't know if the meter works or not. But I think it works! You set 0.033939 = slope and intercept =-8.962304 on the 'Raw data' group and the DATA on this group looks quite compatible with this METER.

This excel file attached does not a "Scaling of raw data" group but a group of "Raw data" which is not in line with your description.

Please join the PDM Moose and a scale TDMS file here, it is perhaps better to understand the reason. (I can fix the slope = 1 and the ordinate at the origin = 0 to read the raw data of the scale tdms file.)

Here is allowed to attach both PDM and zip file.

Tags: NI Hardware

Similar Questions

  • Card data scope of device to the TDMS file buffer

    How transfer brought data card device buffer to TDMS file directly bye passing buffers LabVIEW and Windows. In the same way as DAQmx configure logging (VI) do we have any function scope?

    The API OR-SCOPE doesn't have the ability to record data acquired directly on the disc like the DAQmx API offers.  All data must be retrieved from the on-board memory, which makes data transfer OR-SCOPE kernel driver via DMA, and a copy must then happen to transfer data from the space of the kernel in user space (LabVIEW), how it can be manipulated.

    The main reason for this flow is because the calibration scale occurs in the NOR-SCOPE driver and not the material.  So if you were to save data directly to the disk as DAQmx, he stock raw ADC codes, without correction calibrated.  The API OR-SCOPE allows to recover the coefficients of scale if you want to apply them at a later date after extraction of the data from the hardware.  To optimize flow of data applications, it is recommended.

    The only exception to the logging directly on the disk would be the Oscilloscope Reconfigurable SMU-5171R.  It is being implemented with LabVIEW FPGA firmware using the design of Instrument libraries, code is open for editing.  With the open nature of this software stack, it is possible to implement "direct to TDMS" functionality with LabVIEW FPGA Read region node.

    I hope this helps!

    -Nathan

  • TDMS file corruption when using FTP

    I use FTP to transfer files a cRIO to computer TDMS.  The transfer looks like it works; However, when I try to open the crowd using TDMS files Viewer, I get an error indicating that the file in not a PDM standards.  That being said, I use Windows to FTP the same file to compare.  I use the PDM viewer to open this file very well... no problems.  Have any ideas?

    Did you find the difference between the size of the TDMS files before and after the transfer? If so, maybe it's quite possible that the "transfer mode" software FTP questions, maybe you can try to use "binary" instead of "text" for fashion?

  • How to merge and write analog inputs, and export data to a tdms file?

    I have a vi who writes analog inputs in tdms files. I also want to write the analog output signals, which are 2d table entries in the same PDM file with additional columns representing the analog output signals. How can I get this feature?

    Ashaironix wrote:

    Hey Crossrulz,

    So you're saying that writing two files tdms with entries as HAVE and AO, will write everything in a file single tdms AOs and Ais?

    N ° you write in the same file, just different GROUPS.  TDMS is a hierarchical data format.  You have the file, group, channel.  Waveform data will actually in the channel data.  But you can have metadata on any level.  So, I do a group I and a group of the AO.

  • Concatenate with DIAdem TDMS files, depending on the time

    This question is in French and English.

    Hello

    I'm trying to find a way to concatenate/merge several files TDMS analog measurements with DIAdem 2012, in order to have more than one file. I be provided with attachment 1.

    I am beginner in DIAdem and don't know not the language of the script code. En 986KO on this forum, I found the script 'Import data from several Files.VBS use', and changed lines 17 and 18 not 'csv' by replacing "tdms" (as it was stated on another topic on the forum). This script also appealed to "concatenate groups."

    The problem is that the TDMS files contain several groups (the slots on frame of measures Canada) each containing several different channels. This script concatenates so each group and the result makes more sense the script to modifier is certainly "CONCATENATE Groups", but in what way?

    Thank you

    Olivier

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I'm trying to find a way to concatenate/merge several files TDMS analog measurements with DIAdem 2012, in order to have at the end only one file. You can find these files with my mail 1.

    I am a beginner in tiara and do not know the language of the script code.

    By searching on this forum, I found the script 'Import data from several Files.VBS use' and changed lines 17 and 18, replacing 'csv' by "tdms" (as demonstrated in another topic on the forum). This script also uses "groups of concatenate.
    The problem is that the TDMS files contain several groups (pointing to the slots on the frame measurements), each containing several different channels. If this script concatenates each group and the result is meaningless. I think the script that needs to be changed is "CONCATENATE Groups", but how?

    Thank you

    Olivier

    Hi Oliver,.

    Try to run the script you downloaded once for each group and encodinng group to load in the assignment of "ChannelSet" in line 10 using the index group, like this:

    ChannelSet = "[1] / *" or ChannelSet = "[2] / *".

    I just found out that this example breaks in 2014 DIAdem because the 'DataFileHeaderAccess' command has been relegated and replaced by a new.  I need update soon.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Opening of TDMS files larger than 500 MB in LabVIEW

    Hello

    We were faced with a problem when opening files TDMS connected using a LabVIEW, PDM Viewer (the vi in palette Advanced TDMS) application, or by creating a new PDM vi player. The recorder app is built using TDMS functions in palette file.

    When the TDMS files are everywhere higher than 500 MB or the application hangs or crashes. It can sometimes give full error memory.

    I browsed the forum and found the screws to split large TDMS files into smaller files and then open them. The other option is to use NI DIAdem. Currently, we use the option of the tiara. We do not want to modify the application to split the files into smaller sizes.

    I'd like to understand why this is happening for files of these formats. I can easily play TDMS of 100 or 200 MB files.

    The configuration of the system plays a role in the present? How is it that DIAdem can open the file and cannot LabVIEW?

    request explanation

    Thank you

    Freelance_LV wrote:

    [..]

    What I want is to know if upgrade to Win 7 and LV 64-bit will solve this problem, without cut it files each time, or use the TDMS vi Viewer.

    More likely since the channel data is placed in a very wide range and fragmentation of memory makes it very hard on 32 bit with LV 32-bit OS. Another thing that could be a problem on your 32 bit LV: display data as it creates a copy of data. So maybe the original data of the channel can hold in memory, but tries to display it sweeps away memory.

    Another thing for 32-bit applications is to check the largest block of data you always free. Use tools like VMMap for your request of fragmentation of memory snapshot.

    As I wrote already, a generic application 64 bit triggers the limited "insane" values depending on the operating system like Windows 7... still, there are limits.

    Norbert

    EDIT: The link of Windows 7 go to the physical memory table on the whole system. This does not reflect the virtual memory available to a single process. Scroll down to the table "and address space limits of memory" a virtual memory figure that can be assigned to a process 64-bit on Win7 x 64. The value is 8 to...

  • write with a fixed size tdms files

    Hi guys, I'm stuck with the problem of how to write a series of files tdms with each file has a fixed size of continuous analog sound recordings. Each file is named by the timestamps. The solution that I am trying at the moment is to create a new tdms file all the few seconds (provided) using the PDM open function. This idea implies a case structure for the State. When it is true, the new file name is created and then the open function tdm is called. When it is not true, I would use the name of the file created earlier. However, I do not know how to get the filename that is created previously, and so I'm unable to wire the false conditon of the structure of the case. Any help would be appreciated.

    An excerpt from play with him:

  • Name of the TDMS file for use in Diadem report

    I received a large number of TDMS files collected with Signal Express 2014 and all of these files are called voltage.tdms in several subfolders, when I opened a sample of these files in Diadem I see that they have unique names in the field title properties voltage.tdms and so I would like to use this in a report model that I created. What I failed to find it is an easy way to capture the value of this title and put it in my report model, there is a variable called ChnDataFileName name, but it gives me "voltage.tdms", I don't see any of these variables to extract the field title, anyone know how to access this field?

    Hi ADobson

    The easiest way is to drag & give up the property from the data of the report portal. Then you will get something like

    Title: @Data.Root.Properties ("title"). Value @.

    Hope that helps

    Winfried

  • Creation Waveform TDMS file using the functions DDC_ in C 6.0?

    I'm trying to implement an export written in C 6.0. I can make the TDMS files using the DDC_ controls without any problem. But I can't understand how waveform TDMS files. I thought that if I added properties wf_ I should be able to define the waveform = Yes. But it seems to be more complicated than that.

    Here's what I work until now... (with the exception of 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,
    year (unsigned int),
    months (unsigned int).
    days (unsigned int).
    hours (unsigned int).
    minutes (unsigned int).
    wholeseconds (unsigned int),
    (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? (Details of this aid are intended for LV or completely absent)

    Thank you very much

    Don

    Hi Don,

    Thanks for the additional information.  After doing research a bit more, it seems that there are 3 required properties so that the property of waveform to be set to yes.  These are wf_start_offset, wf_increment and wf_samples.  If you add in a call such as the following, this should solve the problem:

    DDC_CreateChannelProperty (lphchannel, "wf_samples", DDC_Int32, 5);

    Just replace with the length of your table 5.

    Kind regards

  • Write a new TDMS file hourly

    Hello NOR community,

    Currently, I am trying to write a VI that creates a new file TDMS every hour and CompactDAQ Ethernet chassis moving data folders. Please see the related code. Right now the code only adds the current TDMS file and do not write a new file on the given time interval. I would like for a new file to be created every hour, so that the files do not get incredibly large.

    Also my travel writing not data data anywhere near correct recovery. Right now it seems to collect a point of data per second, where I rate of recovery at 100.

    Any advice would be greatly appreciated!

    Thank you.

    Chris

    1,000 points at a rate of 1000 s/s.  This means that the DAQ Assistant will take 1 second to read the data.  Now, going through the process, you are just to get the first waveform and then take the first point in the waveform.  As a result, you get 1 sample of the 1000 you spent a second capture.

    This is so a few things, I'd say.

    1 replace your graph with a graph.  A graph keeps a history and can directly take the table of waveforms.  There is no need to further add all the data in this diagram.

    2 play with scales in the DAQ Assistant.  You can apply a linear scale to individual channels, eliminating the need for this loop.

    3. use the logging option in the DAQ Assistant (there is a tab just for that).  You can enable the logging of PDM and he will do everything for you.  You can even have cover multiple files based on the number of samples.

    If after all this, your code should be reduced to something like that

  • How do you find the name of the Group and channel your TDMS file name?

    How do you find the name of the Group and channel your TDMS file name?

    Nevermind, I've used the file viewer.

  • Import data from the .tdms file and comparing with the measured .tdms file

    Greetings,
    I want to make an application that writes the values measured in a .tdms file.
    But I want to do a separate database in a .tdms file that contains the theoretical values.
    After the measurement, the application must compare the measured values with the theoretical.
    If the application needs to read that a cell of the .tdms file.
    Is this possible?

    Thank you

    Here are some materials:

    http://www.NI.com/white-paper/3727/en

    http://www.NI.com/white-paper/5696/en

    I also recommend that you can start with examples of PDM in LV to get acquainted.

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

    I have hundreds of data files that have been sorted (by date).  In some cases, I want to analyze subsets of these data in specific groups.  I would like to save these groupings in a TOC file, but I don't want another copy of the data block.  However, I notice that if I record a TDM, it automatically records the TDX and I'm not sure that it is possible to save/open a TDM without its same name TDX file.  Someone else has a similar need and/or to know a method of data management that may be suitable for my needs?

    Thank you.

    Although there are technical ways such as Brad described it is built directly into the mechanism to implement your use case.

    What you can try to do (if possible) use datafinder to define your new file as a query and load the results of the query instead of a file of tdm.

    • Find a query that contains contains the strings that you want to load it:
      for example, channels where channel.name is channel.name root.creationdate or 'abc' and 'def' is...

    • Load the result of the query in the data portal

    • You can save these queries as tdq and those file that allows you to set your content of the resulting file/portal of the tdm

    The result is almost equal, because if you delete files tdm you assembled tdm file would be invalid and the query would return fewer channels.

  • Get the properties of a large TDMS file is very slow

    I have a very large file PDM with about 3000 properties. After that I open the file, it will take about 2 sec to read a property with the PDM get properties VI. I'm reading all the properties, so I can do some calculations on them. It takes too long to read them all. Y at - it a faster way to read. I think now I should have stored the values in a channel, but it does not help my situation.

    George

    Thank you for your answer, George!

    Then, I'm afraid that there is no simple workaround solution unfortunately. If possible, you may want to consider splitting the TDMS file to some smaller TDMS files. We had similar bugs report, on the performance of the PDM get properties, especially when having a large number of properties PDM, we worked on possible optimization now.

  • How combine tdms files

    Can someone help please...

    My compact rio records in recent weeks, and to avoid loss of data (power failure etc.), the connected tdms files are divided into segments of 10 MB. The trouble begins when I try to attach the files to back up. The only way that I can find is to drag all the files in the tiara browser window, and then use the copy data view operations data table for each section of the file block - make a note of the new total line as the original file increases in length. It is a very boring and repetitive task.

    Does anyone have a script function to perform this task in batch?

    Concerning

    Karoline

    The most effective way to do this is actually through the shell:

    copy /b "C:\temp\merge tdms\test 0.tdms" + "C:\temp\merge tdms\test 1.tdms" + "C:\temp\merge tdms\test 2.tdms" /b "C:\temp\trash\blah.tdms"
    

    It is safe to concatenate the files TDMS_INDEX, also a long time that you concatenate them in the same order. It is also safe (and more practical) to remove them. Tiara will be re - generate.

    If you plan to use wildcards so for example to merge all files in a folder, you may need to find a way to make sure that they get concatenated in chronological order. Windows do not by default.

    Herbert

Maybe you are looking for

  • iPhone ios 9.3.1 6s keyboard

    Hi, in short, you used to power press and hold the number of characters on the keyboard of the iphone and it would display alternatives, a good example is the key of £, which, on my 5 s on IOS 9.1, you press it for a long time and it shows many signs

  • iPhoto ' 09 on Snow Leopard does not appear geotags more!

    Suddenly iPhoto ' 09 v8.1.2 (424) on Snow Leopard 10.6.8 does not appear geotags more! They have always been correctly posted so far... Neihter for old photos (taken by iPod touch 4th generation with iOs 4, but also other cameras to gps), nor to the

  • Import MATLAB generated the file ascii in the Analog Waveform Editor

    Hi all I tried to create signals by the Analog Waveform Editor. I have some Waveform generated from MATLAB and recorded as ASCII files, following the instructions on this Web page OR, but it did not work properly. For example, if I produce a column t

  • Function N_Dist returns a 0,0 on any number smalle than 1.0E - 17

    Function (advanced analysis library) N_Dist (QC, &ber);) Returns a 0.000000 on any number I passes below-8,4, but the reverse InvN_Dist, if I pass a 1.0E - 18, the return value is valid.

  • software update for 6to4 adapter

    Microsoft 'fix it' says I need to update software for the 6TO4 adapter - cannot find and update for this card. Device Mgr says: this device does not work properly because windows cannot load the drivers for this device. (code 31)  I am running Window