Automatic files in Excel import of PDM

I was looking at the NI TDMS for Excel import plugin and it seems that the latest version of the plugin uses the COM API that could allow to import feature be used automatcially. There is a page of brief info on this here http://zone.ni.com/devzone/cda/tut/p/id/10207 but I am new to Excel Macros and VBA, so I don't know how to get this tutorial what I'm willing to do.

Specifically, I wonder if anyone knows (and could see an example of) how to do the following:

Starting in a labview VI, the user would choose a path to a PDM file. Once the path is selected, the VI would call the PDM import excel plugin and run it on the file.

After playing with things, I discovered the solution to this, and I'm posting for everyone in case it may be of some use. To use this solution to work out of the box, you will need the report generation tool. If you don't have that, you would need another way to launch labview Excel and run a macro. I hope that someone who has the knowledge of how to do which will display the part in this thread for those who do not have the Toolbox

To begin, open excel and in the menu bar, select Tools-> macro-> Visual Basic Editor. The source of the macro that you create is:

Void TDMImport (fileName)
' Get TDM Excel Add-In
Dim obj As COMAddIn
Set obj = Application.COMAddIns.Item ("ExcelTDM.TDMAddin")
obj. Connect = True

"Only confirm importing ' Description' for root properties."
Call obj. Object.Config.RootProperties.SelectAll

"Show County group under the name of property.
Call obj. Object.Config.RootProperties.Select ("Groups")

"Select all properties available for group
Call obj. Object.Config.GroupProperties.SelectAll

"Import custom properties".
obj. Object.Config.RootProperties.SelectCustomProperties = True
obj. Object.Config.GroupProperties.SelectCustomProperties = True
obj. Object.Config.ChannelProperties.SelectCustomProperties = True

"Import the selected file
Call obj. Object.ImportFile (fileName, False)

"Record to the bottom of the active workbook
Dim workbook as an object
Set workbook = ActiveWorkbook
End Sub

Once you have copied/pasted into the editor to go to the bar and hit file-> export the file and save the macro under one. BAS file

You will also need to go to tools-> macro-> Security and select the Visual Basic Project Trust so that the macro be called from LV

Once all this is done, you can use the attached VI (recorded in LV 8.6) food just the way DOWN and the TDMS file via the controls on the front panel and click Run and the PDM import will be done automatically.

Tags: NI Software

Similar Questions

  • 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


  • codec error, I get the message (file cannot be imported because the codec required not installed) how to install appropriate codec?

    original title: codec

    I have windows vista Home premium.  I get the message (file cannot be imported because the codec required not installed) how do we install the right codec

    ... How to install appropriate codec

    There is an excellent set of codecs available here.
  • Microsoft excel import settings.

    Hi Forum,

    I need a help to Select ' show the Import Options ', while placing files using excel script

    and then parameter:

    tableFormatting = TableFormattingOptions.excelFormattedTable;

    I can't find the reference to the foregoing anywhere,

    Icant find settings changed in the options of place settings, when I use the code below.

    {with (App.excelImportPreferences)}

    tableFormatting = TableFormattingOptions.excelFormattedTable;

    }

    Please help to do this.

    Thank you

    Dhinak.

    Hi Dhinak,

    The documentation for the properties/methods can be found here

    http://jongware.mit.edu/idcs6js/

    You can search for other versions of CS documentation if you are not using the CS6.

    Here's an example of how you can set the properties that you see when you check "show import options" in the user interface:

    var doc = app.activeDocument;
    
    var excelPrefs = app.excelImportPreferences;
    excelPrefs.tableFormatting = TableFormattingOptions.EXCEL_FORMATTED_TABLE;
    
    var frame = doc.rectangles.add ({geometricBounds: [1,1,10,7.5]});
    
    frame.place (File ("~/Desktop/test.xlsx"), false);
    

    Lindsay

  • I gave permission to import bookmarks from safari, but they did not. Firefox file poster not import.

    I just downloaded firefox on my mac. I dragged in applications, and then on the desktop. It opens, he asked if I wanted to import bookmarks from safari, yes ticked.
    But he did not and audit assistance told to use the file - import from firefox, but the file does not import indicated in the diagram above
    How can I get my hundreds of bookmarks please?

    This can help you.

    Export bookmarks from Safari

    Go to file-> export bookmarks. Safari stores bookmarks in a HTML file. Save the HTML file on the desktop or any other location of your choice.

    Import bookmarks into Firefox

    Go to bookmarks-> show all bookmarks. This will open the bookmarks library.

    Click on import and backup...

    Select Import bookmarks into HTML... of the menu drop down.

    Locate your exported HTML file from Safari.

    You can use Safari bookmark exporter to export bookmarks to a simple HTML file when exporting to a file HTML is not supported by Safari.

    Download link http://homepage.mac.com/simx/public/products/SBE1.1.dmg

  • The numbers don't convert/export of files in Excel

    Spin Numbers ' 08, Version 1.0.3

    OS X Version 10.10.5, Yosemite

    I started by spending eight hours per person in total entry of data into a new file numbers "clean". Once completed, I needed to share this data with anyone who has only Excel. So I thought I'd just to export this file in Excel and send it to him. But...

    When I try to convert a file of numbers in Excel, data I click file > export > Excel, Next > select the destination > export.

    I get the error message: "Error exporting the file 'nom_archive' could not be found."

    Where 'filename' is a file I probably had on my hard drive a few years back, but is long gone.

    I tried cutting all the data of the file numbers I'm trying to convert to and paste into a new file numbers. Same error message.

    Anyone ever heard of this, or knows how to get around it?

    I have not heard of it, but another option would be to open the document numbers, select all and copy paste into a spreadsheet of LibreOffice, then save in Excel format. You can download and install LibreOffice toll-free and it has excellent compatibility with Excel: https://www.libreoffice.org

  • How can I maintain the original size of the JPEG file when you import into Photoss?

    I noticed that when I use pictures to import images from the SD card in the camera, the images are substantially smaller than when I drag the same image directly from the SD card on the desktop. In general, a 3.6 Mb picture somehow diminishes to about 2.6 MB. I'm wrong and get frustrated to this drop in image quality!

    Any help / advice will be highly appreciated. Thank you

    In what circumstances you see this small size?

    Photos did a bit of copy bit when importing images in its library.  If you drag the thumbnail of an image on the desktop you bet that the preview version, which will have a small file size.

    Export the image on the desktop via the file export Export X Unmodified Originals ➙ ➙ menu option will give you the full size file that was imported into the library.

    Drag the thumbnail on the desktop will get you the original file.

  • Cannot get the file to be imported.

    I tried the method of JoseIbarra - I did as suggested but cannot get the file to be imported in the services file. He never asked me if I wanted to add the information in the registry, so it is still on the office. Don't know what to do from here.

    Please stick to the initial conversation.

    Is this you speak of course (*first conversation*):
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/how-do-i-get-print-spooler-back-into-my-Windows-XP/ed014329-1bd3-458d-9C93-bbb306fc731f

    You also made this one:
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/print-spooler/c4610093-a96f-4476-B263-eecf5b8fc339

    (but please do not reply to this one...)

    And this one:
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/continuation-of-print-spooler-problem/0e885d7b-3e64-42ee-A248-9d9f2a8e26c5

    (Even once - keep the * first conversation * going.)  Written on it.  Show how this conversation continues spreading around.)

    BTW - my suggestion has not changed.  I still think that you get just around issues that still exist, probably, by fixing the little things you need at a given time.

    Backup important files/folders (for you) (including documents, photos, music, Favorites, Internet favorites, files installable application, serial numbers, product keys, spreadsheets, you saved to the desktop email, etc.) and wipe the disc completely - I'd even a zero writing on the disc (formatting) before installing the operating system from the original installation media.  Then install your applications and restore your files.

    As to what they were asked to do... Always seems that you saved the file as a *. TXT file and not a *. REG or there is much more wrong with your machine (see my suggestion above.)

    Visit this web page to look at the photo on the left (a first) to see the screenshot of the possible is the desktop icons and let us know if it looks like the left or right of each photo version (answer here or in the longer conversation.)  * Ignore the first part of the file name - as you might have named something else than "addspooler."

    To check if you saved incorrectly or if there is something wrong with your system (or two) - right click on the file you saved and choose 'Properties' from the menu you get.  Under the 'Général' tab, she said, "file Type: registration entries (.reg)" and "opens with: Registry Editor" or something similar?  Visit this web page to look at the picture on the right (second) to see the screenshot of the possible look at the windows of the property and let us know if it looks like the left or right of each photo version (answer here or in the longer conversation.)  * Ignore the first part of the file name - as you might have named something else than "addspooler."

  • When you import a song from itunes for windows moviemaker I get the message (file cannot be imported because the game to version Recentepour the file codec is not installed)

    original title: codec

    When you import a song from itunes for windows moviemaker I get the message (file cannot be imported because the game to version Recentepour the file codec is not installed) how can I fix it?

    Install the codec.  Really.

    Something like GSpot to understand that one.

  • Sensory Touch on dv7-1451nr automatically launch Microsoft Excel

    Sensitive touchpad on HP dv7 = 1451nr will automatically launch microsoft excel. The volume control will still work but excel continues to run each time it is typed.

    either you have a microsoft or keyboard wireless mouse? If so click on Start menu, go to start of field research - in the start search field type in msconfig press on enter - click on the tab of boot-now you will see start point and producer. biggest startup item list, so you can read it. then you're going to amine low indicate find you something that says microsoft and microsoft pro inteli (or something to that effect. If you find microsoft inteli its probably going to be the one below it.) Uncheck the two boxes. then click on apply and then restart the computer and see if pressing the volume open excel keys. If it persists. Return to msconfig-go back to start point - at this stage you will look for something that says that the launch buttons hp fast. Uncheck the box, click apply then OK and then restart the computer. now, when the computer restarts, and make you your icons, see if excel is opened at this time while pressing the volume up and down keys. Please post back if this does not work for you or just message me and I'll be more than happy to explain the process :-)

  • Must be able to open the .csv file in Excel separated by two, and; -Windows 7 list separator

    Original title: list separator Windows 7

    Hi, I was wondering is it possible to add 2 values to list separator?  I need to be able to open the .csv file in Excel separated by two, and;  At the moment I can only do that if I continue to change the list separator value in the regional settings of Windows Alternatively, depending on which file I want to open.  Is it possible to add both?  I tried to add, and; separated by spaces, but it did not work.  Any suggestions would be much appreciated! Thank you!

    It may be one, sorry.  But you can use an Excel template or Excel macro to analyze and open any kind of delimited file of reproducibly (even give you one-click button on the toolbar in Excel to do if you wish), and this is probably the best option.

  • He had to 'associate' type .tsv file to Excel

    I can't understand how to have Win7 and Office 2007 open .tsv file using Excel type. Someone knows how to do this?

    You can go to the control panel > default programs > associate a file type, the Protocol with a program. If it is already listed, you can modify the default Excel application. If it is not listed, you can add it.

    --

    Dustin Harper
    E-mail address is removed from the privacy *.
    http://www.mstechpages.com  Microsoft News, support, FAQ, and much more!

    "BaystateMark" wrote in message News: 5be7c910-0b02-4b7b-b041-235513631f59...

    I can't understand how to have Win7 and Office 2007 open the type of file... TSV using Excel. Someone knows how to do this?

    Dustin Harper * address email is removed from the privacy * http://www.mstechpages.com---aide Windows and Support Page

  • On windows 7, right click - new - * file * does not appear to create folders, I see other files word, excel etc. are appearing but not "folders".

    On windows 7, right click - new - *file* does not appear to create folders, I see other files word, excel etc. are appearing but not "folders".

    When I try to create Folders by right-click - New, it does not appear.

    Help, please.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
     

     
  • XLF file for Excel BI Publisher 10.1.3.4.2 models

    Hi all

    Can someone explain how we generate the translation file of Excel in BI Publisher 10.1.3.4.2 models.

    Best regards

    gt1942

    Please note that only the following types of models are supported for translations

    RTF models

    RTF models

    Style RTF models

    BI Publisher model (.xpt)

  • "Import the results of import operations have not been executed."   The following files were not imported because they could not be read

    Use Windows 10 and lightroom cc.

    All of a sudden I can't import pictures from my memory card.

    "Import results.

    Some import operations were not performed.

    The following files were not imported because they could not be read. »


    Anyone having the same problem

    Hi SwedishBirch,

    Make sure that the destination location is set correctly and has full read and write permissions.

    And make sure that the program is updated: keeping up-to-date for Lightroom

    Kind regards

    Claes

Maybe you are looking for

  • Windows 7 - Eco Mode

    I just bought a new toshiba A500 with windows 7 already on it, and the Eco button does not work on it? Actually there is no power for the 'eco mode' plan at all. Is something wrong with my computer missing this driver or not windows 7 everything simp

  • How to download TV programs Italian streaming?

    When I look on the Italian programs streaming on line, they all stop and start and many programs are only available for viewers of the local population. Unless I can download I'll have to put up with this frustration. I live in apartments, I am not a

  • Can I still use the toner cartridge after deposit of 2 and a year and a half?

    I have a HP CE505A toner cartridge model in a sealed box, but the box have a date on it his 20111003 (I think that refers to October 3, 2011). Now my question is if I unseal the box can I still use the toner cartridge (whereas 2 years and a half elap

  • Lost Powerpoint presentation

    Hello My laptop is restarted, I lost a powerpoint presentation. It doesn't have a name yet, just presentation 1. How can I find it?

  • Pix VPN PIX

    I tried using Cisco for the creation of a vpn site to site, located at http://www.cisco.com/warp/public/110/38.html. However, for some reason, this isn't working and I don't know where to start looking. I have attached the configs and see the crypto.