Addon Excel TDMS files

Why are there at - it a field 'NI_ChannelName' (column H) when it is in double channel labels in column A?

longwalker,

You can change the 'name' to what you want, but you shouldn't change "NI_ChannelName" because it is only used by and for the NOR-DAQ to mark the name of the virtual channel producing the waveform.

Tags: NI Products

Similar Questions

  • 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.

  • Convert/import to Excel TDMS

    So I a few LabVIEW code what newspapers to TDMS very well.  I installed PDM Excel add on Excell 2007 and it imports the PDM very well and it looks good.

    What I want to do now is instead of having just I want file PDM, as with the equivalent XLS.  As if I imported the DDHN in Excel and then save the workbook in XLS or XLSX.  So I wanted to import the PDM file programmatically, get the active workbook from Excel and then programmatically save the active workbook in XLS or XLSX in the same directory as the original PDM.

    I have problems with the first step in my plan.  I see here there are a few details on how to call import TDMS using ActiveX, but when I use it I get an error.  Call ShowAboutDlg or ShowConfigDlg work fine, but when I call the import it I get a "an unknown error has occurred: 0 x 80004003" I think that it is an invalid pointer.

    The VI that I used to try to import a TDMS file is attached.  Recorded in 8.20, importing TDM 3.1.0.25, running with Excel 2007 on XP SP3. Thank you.

    EDIT: The VI is pointing to a TDMS file that comes with LabVIEW 2009, this path may need to be changed.

    Thank you ykdoubles, your VI has been very useful.  With he was able to accomplish my goal to be able to convert to PDM to XLSX with Excel and add it on.  Here's what I came up with for anyone who is interested.

    If you have Excel 2003 it may not work, or you may just need to update some of the calls.

  • TDMS file creates several tabs data. You want to create only one.

    Hello NOR community,

    I am currently using the DAQ Assistant with my pots of chain record travel over a long time interval (see annex VI). I then use the vi "Write to a file as" to save the data in a file TDMS (see 'Write the file settings' photo attached for all the parameters chosen for the writing of the file). The file is written, however when I open the PDM file, the document creates a tab in Excel for every second of recorded data (please see attachment ""). It seems that the TDMS file is grouping all data every second, and then by creating a new group of data.

    How can I get the file to write all data on a single tab instead of creating multiple? I don't want to concatenate hundreds of tabs in a single great sheet.

    Thank you

    Chris

    You should not use the comment.  I just removed who and everything worked for me.

  • Integrated Properies of TDMS files

    I found a problem with CVI 2010 SP1 built-in properties of a PDM file reading.

    Functions:

    • TDMS_GetFileStringPropertyLength with property TDMS_FILE_NAME
    • TDMS_GetFileProperty with property TDMS_FILE_NAME
    • TDMS_GetChannelGroupStringPropertyLength with property TDMS_CHANNELGROUP_DESCRIPTION

    error-6629 TDMS_PropertyDoesNotExist if these properties exist but are an empty string!

    I think that this error is returned only if the property is not really exist, not if it is an empty string.

    I have seen this with example TdmsReader provided with one of my TDMS files.

       

    Hey Vix,

    The file was created in CVI or LabVIEW? When you create the TDMS file in CVI, the name property is required or the TDMS_CreateFileEx returns an error. However, the TDMS vi open (with the create option) does not require the property name to set. So if the file has been created in LV, so unless the name property has been specifically created, then there is no. In the Excel plugin, if the name property does not exist, it uses by default the name of the file (the name property does not necessarily match file name).

    Since you have access to LV, you can simply add this property yourself with vi TDMS Set Property. It can also be a good habit of always set the 4 standard properties when creating files in LV TDMS

  • TDMS file written in red

    Hello!

    I would like to know if is it possible to write a column in excel (with a tdms file) in a color. Or if it is possible to make the word "failed" appear in red in the excel file.

    Thanks in advance!

    Jessica

    Discover this TDMS conversion Excel, I did.

    https://decibel.NI.com/content/docs/doc-36555

    It takes a PDM and transformed it into an Excel file, but it makes all the cells that contain the green card, and anything that contains red Fail.  Also, it creates a summary spreadsheet better and freezes the first row and column in the data sheets.  You can take it and do something similar after the import is done, ActiveX are working to make the file that you want, and then save it.

  • Simultaneously view several TDMS files?

    We store the data of 2 channels into 2 separate TDMS files, but I need advice / analyze the togther.  How can I open two or more TDMS files at the same time?

    Why don't you write just a VI that reads files, extracts the data of interest, and then displays the parts you want to see together?

    There is also a plugin Excel for PDM.  I guess you could open two instances of Excel and to compare the data in this way, even if I never tried.

  • 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

Maybe you are looking for