TDM Importer Excel start index automation

I am trying to create a macro within excel to import and format data from a .tdm file.
The files to be imported sometimes exceed the 1M row limit in Excel, so when this happens, I want to generate two workbooks. One of these workbooks should be generated from a start index of 1 and the other should be generated from a start index of 1048576. Right now I use the silent mode to give a start index of 1 and then rerun the importer and enter 1048576 manually for the second workbook.
My question is: is there any way to set the start index through a macro?
I have considered using the sendkey command to generate the "tab tab 1048576 enter" keystrokes required, but excel cannot interrupt the call object command in order to do this.
Many thanks,
Alex
Solved!
Go to Solution.

Alex
I have done quite complex processing with DIAdem.  Your request is not a big deal to do in DIAdem.
For max flexibilty, you can take out references to the channel. Like shown below in oChan01.  This will allow you to handle a channel like an array. The limitations on this approach is speed,  The built in functions are faster than this approach, and should be used as much as possible.   The chnfind command is one examle that is much faster to find a specific value in a channel.
OptionExplicit'Forces the explicit declaration of all the variables in a script.
dim oChan01,i,oGrp,dVal
set oGrp = data.Root.ChannelGroups("EXAMPLE")
set oChan01 = oGrp.Channels("Time")
for i = 1to oChan01.Size
   dVal = oChan01(2)
next
Paul

Similar Messages

  • Why does TDM Importer start up when I open an Excel file in LabVIEW, and how can I stop it?

    I have a new application using LabVIEW 2012 SP1.  I open an Excel file using the Report Generation toolkit and when I do so, a small TDM Importer window pops up on top of the Excel file.  
    How can I prevent this?

    Hi Steve,
    The TDM Importer pops up because the report generated in LabVIEW is in the TDMS file format.  TDMS is a binary file that requires an importer to make sense of the binary data and translate it into an Excel spreadsheet.  As per this white paper, the appearance of the floating toolbar is expected behavior:  http://www.ni.com/white-paper/5874/en/
    To the best of my knowledge, you cannot get rid of the floating toolbar unless you uninstall the add-in, in which case you probably would not be able to open your LabVIEW-generated reports.  However, as of Excel 2007, the toolbar is embedded in the "Add-Ins" tab instead of floating on your spreadsheet.  You can see how the toolbar looks as of Excel 2007 in step 6 of this white paper:  http://www.ni.com/white-paper/5885/en/
    If there is a way to embed the toolbar in Excel 2003, it would be the exact same way you would embed any other floating customer toolbar in Excel.  In other words, I don't think this has anything to do with the fact that it's NI's add-in.  This is just the way Excel 2003 and earlier treats add-in toolbars.  Someone on these forums may well know a way to embed it (perhaps a macro?), but you may have better luck contacting Microsoft.  I'm not sure whether it's even possible for a user to embed the toolbar.
    David R
    Applications Engineer
    National Instruments

  • Convert/Import TDMS to Excel

    So I have some LabVIEW code which logs to TDMS just fine.  I installed the TDMS Excel Add on to Excell 2007 and it imports the TDMS just fine and it looks good.
    What I would like do do now is instead of just having that TDMS file, I would also like to have the XLS equivalent as well.  As if I imported the TDMS in Excel, and then went to save the workbook as XLS or XLSX.  So I wanted to programatically import the TDMS file, get the active workbook from Excel, and then programatically save the active workbook as XLS, or XLSX in the same directory as the original TDMS.
    I'm having problems with the first step of my plan.  I see here there are some details about how to call the TDMS import using ActiveX but when I use it I get an error.  Calling  ShowAboutDlg or ShowConfigDlg work just fine, but when I call the Import it I get a "An unknown error occured: 0x80004003" which I believe is a invalid pointer.
    Attached is the VI I was using to try to import a TDMS file.  Saved in 8.20, running TDM Importer 3.1.0.25, with Excel 2007, on XP SP3. Thanks.
    EDIT: The VI is pointing to a TDMS file which comes with LabVIEW 2009, this path may need to be changed.
    Message Edited by Hooovahh on 03-11-2010 09:08 AM
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Solved!
    Go to Solution.
    Attachments:
    Import TDMS 82.vi ‏9 KB

    Yeah sorry forgot that I used that OpenG VI, attached is another version which doesn't use it for those of you not on the OpenG bandwagon.
    I've been using this VI for a little while now and it's worked great on several machines.  But recently I've started to see problems where I get an error 97, LabVIEW:  Null Refnum was passed in as input.
    This happens for me coming out of the property node ITDMAddin.  I probed the reference going in and its value is 0, with the variant data also of value 0.  Any ideas on how this could happen or what can be done. 
    I changed the COMAddIn propety node from Object to Description and the string is "National Instruments TDM Importer for MS Excel" So that makes me believe that I am getting the reference to the AddIn but for some reason the Object property returns a value of 0.
    EDIT: Okay I think I figured it out, if Open New Instance is TRUE for the Open Automation it works fine. Not sure why but it fixes it, a new version with the fix is up.
    Message Edited by Hooovahh on 06-01-2010 05:36 PM
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Convert TDMS to XLSX80 fixed.vi ‏41 KB

  • TDM Importer in Excel 2003 does not appear in the COM Add-In Menu

    I have a program that will create a TDMS file with the data, and after execution is complete, I would like to import the data into Excel and manipulate it using a macro. I can import the file manually and run the macro by opening a second file containing the macro, but opening up the second file is a hassle.
    I would like to expand the macro so that it automatically imports the TDMS file, and based on what I've seen on the forums, in order to do this, I need to register the TDM importer as a COM Add-In. When I go to the COM menu in Excel and try to add ExcelTDM.dll, it does not appear in the menu.
    Some additional details that may be helpful:
    Excel TDM Importer is version 3.4.0.0
    I have already tried uninstalling and reinstalling the importer
    Using the Excel toolbar works to import the data
    Double-clicking on a file works to import the data
    The installed files are located at C:\Program Files\National Instruments\Shared\TDM Excel Importer. Moving them to C:\Program Files\National Instruments\Excel TDM had no effect.
    Thank you in advance for your help.
    Solved!
    Go to Solution.

    StefanR wrote:
    Does the simple VBA example as described here:
    http://www.ni.com/white-paper/10207/en
    work in your case?
    No, it doesn't. Excel does not see the add-in in the COM Add-In window, so I cannot access it using VBA.

  • Error with TDM add-in using COM automation ImportFile

    The importer works fine within Excel. However, when using automation from within LabVIEW I keep getting error "-2147417851" on the output of method "ImportFile".
    Code snippet below.
    The PC I'm using has...
    OS = Windows 7 
    Excel 2010, all latest service packs and Office updates.
    LabVIEW 2009
    TDM for Excel Add-In v.3.5.1
    The exact same calls work on another computer with the following:
    OS = Windows XP
    Excel 2007, all latest service packs and Office updates.
    LabVIEW 2009
    TDM for Excel Add-In v.3.5.1
    Can't seem to find any docs or reason for it not to work. The libraries show up as registered from the dropdowns. The Importer works from within Excel. I've rebooted updated and reinstalled and rebooted what feels like a million times already. What am I missing here? Any ideas?
    Solved!
    Go to Solution.

    Mavis: Thank you not only for a meaningful reply , but the actual solution!
    A small detail: I found that I could not disconnect right away or I'd get another error - waiting to disconnect until after I had a chance to save the file ensured that it was fully loaded.
    Is this documented somewhere? The VBA code example on this page http://www.ni.com/white-paper/10207/en/rating/2 shows the call to connect, but there doestn' see m to be any doc on the method.
    Also, this solution begs the question: how did the code with the earlier version of the add-in work correctly without specifically calling 'connect' first? I'm sure someone will say it doesnt' matter, but that's what threw me for a loop all along;  it might very well matter to the next person that runs into the same problem. Worked in Case A, how is Case B different?
    Thanks again, Mav.
    Can I call you Mav? 

  • Import Excel with mutiples sheets into Oracle

    Hi,
    I got a few questions here, I did some google-ing but I would like get clarifications:
    1. In order to make Excel "talks" to Oracle with External Table, do I need to convent the Excel file into .csv?
    2. Apparently my Excel has mutiple sheets (20+), do I need to save each sheet individually as 1 single .csv before they "talk"?
    (sounds like it...but I "hope" there is another way...-_-)
    3. I am using TOAD and the tool "Import Table Data" can read .xls and .xlsx directly, however I will have to do 20+ times for each sheet... beside that, is there any other quicker way to read the Excel files?
    (even if I use External Tables I have might have to save each sheet into a .cvs for 20+ times...-_-)
    Thanks everyone in advance...
    My questions sounds stupid.....=_=!!

    Which DW are you using - DMX on Mac? It didn't have that
    option. This is
    not an Educational version issue - it's a Mac issue.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Terry_Straehley" <[email protected]> wrote
    in message
    news:fm85u9$5ec$[email protected]..
    > From a 11/06 post
    > <<Hi, My Dreamweaver MX Education Version does NOT
    have the Import to
    > Excel
    > option. I am using "Excel 2003 (11.6560.6568) SP2, Part
    of Microsoft
    > Office
    > Professional Edition 2003". If I start with a blank page
    in Dreamweaver,
    > click
    > on File, Import, I only have the options "XML into
    Template", "Word HTML,
    > and
    > "Tabular Data". Does anyone know why I don't have the
    "Import Excel" >>
    >
    > This was not answered in the thread I copied it from. I
    have the same
    > problem.
    > Can some one answer the question?
    >

  • Importing excel data into oracle tables

    Hello gurus,
    Importing excel data into oracle tables..
    I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
    Finally i was totally confused in terms how to get this done....
    Here is wat i have
       - Excel file on local computer.
       - i have laod data into dev environment tables(So no risk involved, but want to try something simple)
       - Oracle version 11.1.0.7
       - Sqlplus and toad (editors)
    Here is wat i like to do ....i dont know if its possible
        - Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
       SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
    Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
    If you suggest sqlloader, any code example will be greatly appriciated.
    Thank you so much!!!

    Hi,
    user642297 wrote:
    Imran,
    This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
    Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
    try this:
    load data
    infile 'C:\dest.csv'
    into table dest_table
    fields terminated by "~" optionally enclosed by '"'
    TRAILING NULLCOLS
    (name,
    owner_nm,
    description_column,
    UPDT_DT DATE 'MM/DD/YYYY')
    {code}
    you can get more info about sql loader and your error here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    http://www.allinterview.com/showanswers/53766.html
    And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
    Any thoughts ???
    It is same as a delimiter text file.
    steps to create a .dat file (from a excel file):
    1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
    2. Save the file as unicode text.
    3. Open the file in text editor and remove all the tabs (find an replace with blank)
    4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
    5. Your .dat file is ready.
    Regards
    Imran
    Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Tdm importer macro

    Hello, I am recording data into a TDMS file and I am using the TDM Importer add-in for excel to open the tdms files in excel.  I am trying to make a program that will do this automatically, ie: the user clicks a button in my vi to open the file in excel.  I think i could do this using a macro, however I need help making the macro.  Is it even possible to make a macro that uses the tdm importer add-in?  I tried recording a macro but I don't think it recognizes any functions from the add-in.  Has anyone done anything like this?
    Thanks
    Bryan

    Hi Bryan,
    One quick question, why are you writing to a TDMS file instead of a spreadsheet?  Are you doing this for speed? 
    In any case, I have attached a simple program that I wrote that should convert the TDMS data into a format that can be read by Excel.  Please take a look at this, and let me know if you have any questions.
    Best of luck on your application, and have a wonderful day!!!
    Regards,
    Ching P.
    DAQ and Academic Hardware R&D
    National Instruments
    Attachments:
    TDMS_To_Excel_Converter.vi ‏78 KB

  • No data found from start index 2 to end index Error

    I'm trying to import a .csv and I keep getting this error  when I press the Next button:
    No data found from start index 2 to end index
    I know it is because my Date column in my csv, because when I take it out I don't get the error
    I have the date in YYYY-MM-DD format so I don'd understand why I am getting this.
    Can someone please advise me? I attached the error and screenshot of my csv
    Thanks,
    Connor

    Ahh, now I understand what you mean.
    It seems that all of your error-processing is done/implemented with DBMS_OUTPUT.PUT_LINE calls, also inside the procedure PROCEDURE_FOR_TRANSFER.
    And it is NOT throwing a NO_DATA_FOUND exception (what most of us here at the forum were thinking).
    It is outputting a message text that has the substring "ORA-01403: no data found" in it: something very different than an exception.
    And you want some solution to hide lines with that substring right?
    What you could do (but this is getting silly if you ask me...) is use DBMS_OUTPUT.GET_LINE(s) right after you invoked PROCEDURE_FOR_TRANSFER and get ("pop") all message lines yourself (that is before SQLPlus is doing that), filter the line(s) with "ORA-01403: no data found" substring in it, and put_line ("push") all remaining message lines back.
    Edited by: Toon Koppelaars on Jul 28, 2009 9:56 AM

  • Importing excel files - problem with single quote

    When importing excel files using 1.5, I can't get data with single quotes (') imported.
    When I run the insert statement given in SQLPlus I get "ORA-01756: quoted string not properly terminated", which is different than the error that SQL Developer gives me (see below).
    Also, I have a numeric value shown without a thousands comma-separator in the XLS file that I'm trying to load into a varchar2 field. But, the insert statements have added a thousands comma-separator which I don't want.
    REM Error starting at line 1 in command:
    REM INSERT INTO table (ID, NAME, CODE)
    REM VALUES (2427407, 'Ed-u-care Children's Center', '73,000');
    REM Error at Command Line:2 Column:37
    REM Error report:
    REM SQL Error: ORA-00917: missing comma
    REM 00917. 00000 - "missing comma"
    REM *Cause:   
    REM *Action:
    One last thing, TOAD gives a way to automap columns chosen from XLS to the columns in the database. It sure would be nice to have this functionality in SQL Developer.
    Thanks,
    Steve

    Did you consider both to be bugs (i.e., single quote issue and thousands comma separator issue)?
    Thanks

  • TDM Import Error

    I'm trying to open my data file in Excel spread sheet. There are 5000 sheets and Excel stops at sheet 4749 on two different computers.
    "TDM Importer" " An unknown error occured: 0x80004003.
    I'm using Excel 2010 32 bit version with the TDM importer add-In , I have the tdms.dll installed.
    Any reason why it crashes?
    Thanks

    I've never seen a file import/conversion for Access but that doesn't mean one doesn't exist.
    The error code 0x80004003 appears to be an invalid pointer. Perhaps the TDMS file is corrupt or the excel importer can't handle something about that  measurement group.
    Hooovahh is right, the TDMS file viewer would probably do the job.
    Assuming you have LabVIEW installed: Programming > File I/O > TDMS Streaming > TDMS File Viewer.
    If you only have the TDMS files but no LabVIEW then the TDMS Excel import function recommends NI DIAdem for large data sets.
    Looks like someone has compiled a stand-alone version of the viewer here.
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Import Excel with Import Wizard / Problem during the import of "Actual Work" column

    Hello,
    I am trying to import an Excel File (*.xlsx) to Project Server 2013 through Project Professional 2013 and Import Wizard.
    I am having trouble when I try to include the column "Actual Work". After selecting the columnsmapping I am getting a strange error message saying that "The File cannot be oppened","Make sure, that the Filename and Path is right"
    and some other strange messages concerning compatibility, although I am using the same File, which works perfectly without the "Actual Work" column.
    I have tried as well with csv and the outcome was the same.
    Any help is welcome!
    Thank you in advance,
    Ioannis

    Which DW are you using - DMX on Mac? It didn't have that
    option. This is
    not an Educational version issue - it's a Mac issue.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Terry_Straehley" <[email protected]> wrote
    in message
    news:fm85u9$5ec$[email protected]..
    > From a 11/06 post
    > <<Hi, My Dreamweaver MX Education Version does NOT
    have the Import to
    > Excel
    > option. I am using "Excel 2003 (11.6560.6568) SP2, Part
    of Microsoft
    > Office
    > Professional Edition 2003". If I start with a blank page
    in Dreamweaver,
    > click
    > on File, Import, I only have the options "XML into
    Template", "Word HTML,
    > and
    > "Tabular Data". Does anyone know why I don't have the
    "Import Excel" >>
    >
    > This was not answered in the thread I copied it from. I
    have the same
    > problem.
    > Can some one answer the question?
    >

  • Import KM Search Indexes?

    Hello,
    Is it possible to import existing Search Indexes(including its properties, Datasources, Permissions) from one portal landscape (Dev) to other (QA)?
    We are building a new QA environment and have bunch of search indexes that needs to be created in this environment
    Appreciate your responses
    Thanks,
    Kiran

    Hi,
    I never tried, but you can export and import the Index configuration settings with the export/import function of the configuration iView.
    You find the settings below the Global Services, only when the export is started.
    See also here https://forums.sdn.sap.com/thread.jspa?threadID=418589
    Regards,
    Sascha

  • How to import excel file in oracle 10g suit

    Respected all,
    i am working d2k6i now i am going to 10g suit and i want to import excel file so anybody help me how to do it? Thanks in advance.

    Hi,
    This forum is dedicated to Oracle SQL Developer Data Modeler, so it is possible to get an answer here, but it is not very likely.
    Try to get help in in more appropriate forum from here
    https://forums.oracle.com/forums/main.jspa?categoryID=84
    Regards

  • IMporting Excel Spreadsheets

    Hello
    We recently upgraded RH in our company from x5 to HTML 6,
    build 099. In a project I worked on with X5, I had imported Excel
    spreadsheets saved as html and generated a primary layout without
    any problem. However, in 6, when I would generate a layout, it
    would get to Updating Files and RH would crash without any error. I
    narrowed it down to 10 html files that were all Excel spreadsheets
    saved as html and imported into my project in x5. If I deleted
    those 10 files, the project would generate the layout. If I
    imported any of those files, it would crash again.
    To recreate the spreadsheets in RH wold just be too time
    consuming, and really inefficient as I expect to get regular
    updates on these spreadsheets to have available on this website via
    our intranet. Has anyone encountered this before? and
    recommendations?
    Thanks!

    Hi BradPrid and welcome to our community
    Did these spreadsheet files have any conditional text
    applied? If so, I believe a problem exists with merged table cells
    (which seem quite likely coming from Excel) when you use
    conditional text.
    If you can't seem to sort it, one thought would be to simply
    import the Excel HTML files as baggage files. Then simply link to
    them or maybe use redirects.
    Cheers... Rick

Maybe you are looking for

  • HP Officejet Pro 8600 Plus will not copy even after hard reset

    HP Officejet Pro 8600 Plus on Windows 8 OS  Will print from computer; will scan documents & save to computer; will NOT copy document on the unit. Shut down printer; unplugged from wall and back of unit; held on/off button for 60 seconds; plugged back

  • The Downloaded PDF file does not contain the Signature through BSP pages

    HI, We have an requirement for Distributing the FORM 16 to all Employee's through our Website, where the user will login and download his own FORM 16 ( TDS Certificate) This FORM 16 ( TDS Certificate ) is generated in SAP ( ECC 6.0 ) in Payroll Modul

  • Code order in sq02, Problem in the selection fields in sq01

    Hi all, I'm writing a query with sq01 and sq02. In sq02 I have some joined tables, and 2 extras fields named: "TIME" and "LEFT_ER". in this fields I wrote a code to calculate something from fields in the tables. The problem is: 1. When I write the co

  • Error in Fiscal Year Change

    Hi, i am trying to change the Fiscal year of Fixed Assets in AJRW. however some of the assets are showing error as below. Asset 442525-000 in Co code ABC : Error in Fiscal Year Change. Message No. AA707 Diagnosis The fiscal year change in asset has p

  • Question about Sky Sports F1

    Hello, I am a big formula one fan and watch via the sky sports f1 channel however due to the sky price hikes & finances in general something has to give and with the rest of the sports channels not getting watched its been decided that the sports pac