Excel to labVIEW usage

Hello,
I know that you can use labVIEW to write/read to/from excel. If you use labVIEW to read an excel file (CSV) what can you do it with it afterwards. I've seen quite a few videos and tutorials on reading/writing excel files, but I have not seen one that actually uses the excel file to do something in labVIEW. 
I think something like that is quite useful, and it seems like I just cannot find some examples or tutorials on that. So, I was wondering if someone could point me to the right direction in learning something like that, where you actually use the excel file in labVIEW, rather then just read it. 
I think that something like this would be directly related to the data type that comes out of reading an file, which would be like a 2d array string or integer. I was unable to find much on using 2d arrays as well. 

We do behavioral experiments that involve moving speakers around in a dark room, playing sounds, possibly flashing lights, then asking subjects to "point to the sound" or "follow the sound with your eyes" or "push the button when you notice the missing sound pulse".  An Experiment typically consists of 100-200 Trials.  For each Trial, there are about 120 variables that can be set to determine (a) where the sound will be located, (b) if and how it moves during the Stimulus, (c) what sound(s) play during the Stimulus (including how loud, how many pulses, how often the pulses come, and a few other parameters), parameters for flashing lights (including a laser that can move), parameters for stationary lights, etc.
We use an Excel Workbook to organize each Experiment.  One Worksheet that we call Experiment has values that remain constant during the Experiment (like the Subject identifier, Version of the software, names of the Configuration files).  Another, the Trials Worksheet, has a row for every Trial, with a column for each of the 120 parameters that determine "what happens" during the Trial.  We also have a few "Output" columns at the end that we record a few Trial-specific data points, such as the number of samples recorded during the Trial (since LabVIEW is taking all kinds of analog and digital data).
To make things easy for the Experimenter (at the expense of the poor LabVIEW Developer), we designed the Workbook with two Experimenter-friendly Rules.  First, if a particular Trial Parameter, say Flashing Light #1, was not going to be used in this Experiment, we simply delete those columns from the Trials Worksheet, leaving us with a Worksheet containing only relevant Columns (typically 40-60).  The other thing is that if a particular Trial value is going to be a constant during the Experiment, we simply add its identifier as a new entry on the Experiment Worksheet along with its constant value and delete it from the Trials Worksheet.
This works very well.  Early in the development of this system, I timed how long it took to read (I don't remember how many, maybe 30 or 40) Trials, write some "fake" results in their Output Columns, then save the resulting Workbook.  I think it was about a second.
Needless to say, this would have been a nightmare without the Report Generation Toolkit.
Bob Schor

Similar Messages

  • Visual studio online - Excel power query usage and samples needed

    Background
    Visual Studio Online does not offer much in the way of reporting, when compared to (onsite) TFS... unless you utilize the REST API functionality.
    The Visual Studio Online REST API is fairly extensive, but not very 'reporting' friendly to applications like Microsoft Excel.
    Question
    Are there any good examples of Microsoft Excel Power Query usage - to acquire and create reports via the Visual Studio Online REST API?  I've searched - but surprisingly haven't found anything of substance.  It is fairly simple to call a VSO REST
    query using Excel Power Query, but not so simple to iterate through the lists within lists, etc... unless you are familiar with 'M language'.

    Hi,
    Thank you for reaching out to us. I am currently researching to gather more information with regards to your request. I shall revert back to you with an update at the earliest. Sincerely appreciate your patience.
    Regards,
    Nithin Rathnakar

  • Open CSV files in Excel through labview

       Dear,
    Am not famillar with *.csv files but I would like to know if it's possible to : open a CSV files in excel through labview.
    I can't used ActiveX for my application. This application is on Labview 8.2
    Regards
      Massif

    Hi Massif,
    a .csv file is a spreadsheet file, so use the "open spreadsheet file" VI.
    Cheers
    Edit:
    Dang, I'm always 30seconds behind you smercurrio!
    Message Edited by lmtis on 04-22-2008 10:27 AM
    Jim
    LV 2013
    Attachments:
    csv.png ‏2 KB

  • Error -2146960888 when opening excel from labview using active x

    attempting to open an instance of excel from labview using active x, I even tried using the "open excel and make visible.vi" found on this site. I get errors every time, Inserting a break right after the property node, I found that it does open excel with no active workbook. once the program runs to ompletion excel terminates. The error is on the line right after the property node executes.

    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External
    Attachments:
    XL97table.zip ‏29 KB

  • 3D Pie chart from Excel to labview

    Hi every one,
    How can I Import a 3D pie chart from Excel to labview ?
    Thx

    There is no direct import mechanism for that. You would need to re-create the pie chart in LabVIEW, as LabVIEW has different 3D graphs than Excel. You would need to get the data out of Excel and use the 3D graphs to draw it. As for getting the data out of Excel, there have been numerous posts on reading data from Excel using ActiveX - just search for "read excel labview". You can also find many links to lots of other examples in the Excel thread. Please note: the Excel thread is a repository of links. Do not post a question in that thread.

  • Excel with Labview

    hi every bady, 
    Any one can tell me how can I import an excel file to LabVIEW 8.6 ??  I need to read it and make some treatements on it on LabVIEW !
    Thanks
    Solved!
    Go to Solution.

    Do you mean read excel? What do you mean by treatments?
    You can use report generation toolkit or ActiveX for accessing Excel in LabVIEW.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • LIRE UN TABLEAU à 2 DIMENSIONS DEPUIS UN FICHIER EXCEL SOUS LABVIEW

    SVP, je suis débutante en labview
    et je cherche à importer des données (real et string) d'un tableau sous un fichier excel vers labview, je souhaite afficher ce tableau dans labview (le nombre des colonnes est 7 par contre le nombre des lignes est variable) et ensuite plus tard utiliser ces donnees
    svp aidez moi, donnez moi un exemple

    Si vous avez le Report Generation Toolkit, puis il ya des exemples disponibles via le finder par exempleLabVIEW. Il suffit de rechercher l'excellence.
    Sinon, voici quelques exemples sur la façon d'accéder et d'importer votre tableau Exceldans LabVIEW:https://decibel.ni.com/content/docs/DOC-12287 and http://zone.ni.com/devzone/cda/epd/p/id/3409
    (en utilisant Google Translate)

  • What is advantage of excel over labview measurment file

    hi
         i am doing some data acquision work in labview..i want to know that for data storage which  will be better   , microsoft excel or labview measurment file..       whats advantage &disadvantage of same

    Well in my opinion the best type of file depends on your needs, really... I don't think that one is intrinsicly better than the other.
    Do you need to be able to read your file with another soft than labview ?
    Do you need to have particular headers on your file ?
    If you make list of all the possibility you want relativly to your data files then we can discuss on the best format, do you follow me ?
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thanks

    Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thank you in advance.
    Regards Robert

    In the example finder  ">Help>Find Examples >>search for Excel", you'll find a sample program called "ActiveX Event Callback for Excel".
    It opens the Excel Application..  You can build on this to open/create new worksheet(s), etc.
    RayR
    Message Edited by JoeLabView on 06-20-2007 08:21 AM
    Attachments:
    OpenExcel.PNG ‏34 KB

  • How can I have a csv file read from excel to labview.

    Hi,
    I would like to read multiple csv files from excel to labview, creating a duplicate of the tables in excel, which would allow me to then draw some graphs for data analysis and comparison between the two.
    Are there any examples that could be useful to what I am trying to do?
    Thanks

    Patel33 wrote:
    From one of the csv files, I only require 3 of the columns. Is there a way to only read that part of the csv file?
    No. The characters in a file are just one long string and delimiters and linefeeds are special characters that defined where fields and lines start and end. As such, columns are interlaced into the file and consists of many small sections, where the position depends on the number of characters in each field, which is typically variable. You really need to read the entire file, then only look at the interesting columns later.
    LabVIEW Champion . Do more with less code and in less time .

  • How to import timestamps from excel into labview

    hello everyone, how to import timestamps from a column in excel into labview?
    I am bugged with this problem for long now... can anyone help please?
    Now on LabVIEW 10.0 on Win7

    LV and Excel use a different reference time (LV was 1.1.1904?). You need to convert between both references. I don't remember the details how I did it and I'm away from my code base.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Commander des filtres excel via labview

    Bonjour,
    J'aimerais commander des filtres dans un tableau excel via labview. Est-ce que cela est possible ?
    Merci d'avance
    Résolu !
    Accéder à la solution.

    Pour ceux qui aurais le même problème, voici le lien qui m'a aidé
    http://forums.ni.com/t5/LabVIEW/How-to-filter-a-excel-spreadsheet-column-using-Labview/m-p/256723/hi...

  • Lire un fichier Excel avec LabVIEW 2010

    Bonjour,
    je cherche comment ouvrir un fichier Excel avec LabVIEW 2010.
    J'ai essayé avec les outils génération de rapport -> Excel specific, comme expliqué dans un autre post, mais ca ne marche pas du tout.
    Je vous envoie le VI et le fichier Excel si besoin.
    Le but serait de pouvoir lire un tableau et l'afficher.
    Merci d'avance,
    Gabriel de Ramecourt
    Attachments:
    Lire fichier excel.vi ‏14 KB
    Gtest2l.xlsx ‏9 KB

    Bonjour,
    Veuillez publier en anglais sur ce forum anglais. Si vous le souhaitez, vous avez une communauté française sur ce lien.
    En effet avec les outils de génération de rapport, il est possible de lire le tableau et de l’afficher.
    J’ai repris votre code pour afficher les données d’un fichier Excel.
    Vous pouvez aussi regarder l’exemple (de la Developer Zone) suivant :
    http://sine.ni.com/devzone/cda/epd/p/id/3177
    Les liens suivant peuvent vous aider à utiliser le Report Generation Toolkit.
    http://zone.ni.com/devzone/cda/tut/p/id/3178
    http://digital.ni.com/public.nsf/allkb/EFCE1C25DCE​7483E86256CAF00539451?OpenDocument
    http://digital.ni.com/public.nsf/allkb/180EA23CF46​8B3C186256EA2007BE83A?OpenDocument
    Cordialement,
    Samuel G.
    Hello,
     And thank you for posting here. Please post in english on this english forum. If you want, you have a French community on this link:
    http://forums.ni.com/t5/Discussions-de-produit-de-​NI/bd-p/4170
    I translate your post for the other user.
    Gabouch want on this program to get all the data on LabVIEW form .xlm file.
    Samuel G.
    Samuel G. | Application Engineer Team Leader
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet
    Attachments:
    Lire fichier excel-2-LV2010.vi ‏15 KB
    temp excel file.xls ‏14 KB

  • Accessing the Solver AddIn to Excel from LabVIEW

    I would like to be able to set the parameters and run the Solver AddIn in Excel from LabVIEW. I know that from LabVIEW you can install the different AddIn's but is there anyway to access the actual AddIn once it has been installed?

    Hi Karin -
    I believe your answer is ActiveX.
    Briefly, ActiveX allows application a (e.g. LabVIEW) to control application B (e.g. Excel, Word, etc.) programmatically. The kicker is that application B must export that functionality to LabVIEW. We ship an example with LabVIEW that controls Excel via ActiveX, it will give you a head start. We do not provide extended support for ActiveX programming simply because there are literally thousands of applications we could control. Microsoft might be able to shed more light with an Excel ActiveX programmer's reference or some relted document.
    good luck-
    ben schulte
    national instruments

  • Excel to labview

    I have run a LV program. I have stored the data into an excel worksheet. I have cleared the graph from the front panel. Now I would like to see the graph again in the front panel. Is that possible? Feeding saved data back into the LV to look  at the graphs again.

    reading a tab delimited file is much easier than inporting from excell, but you can open a reference to excel in labview and manipulate data through activeX control properitirs and methods.  You should even be able to open a workbook, get a sheet and save as all through automation, but I havent done this for a while.  I have been trying to save data in a more open standard like XML or ascii text.  Thomas is right if you want the fastest method (assuming small number of files) just save it back as a text file and open it with a read spreadsheet vi.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

Maybe you are looking for

  • Black borders on import from camcorder

    When I import into iMovie from my Sony TRV520 camcorder I get a smaller image with black borders. Is there a way to get the full image? I'm using iMovie 6.0.3

  • Inline and floating locked in portrait view

    My photo book was rejected today because it's not viewable in portrait format.  My intention was to have the book ONLY be viewable in landscape format and that it's more than obvious that you need to turn the pad to landscape to view it–the thing is

  • Can some photos from ipad be transferred to mac or external hard disk

    can some photos from ipad be transferred to mac or external hard disk

  • TS1424 Purchased a song that won't download...

    A song I just purchased won't download. I did all the proper troubleshooting steps and it still won't download. Can I get a refund? ...It's showing up as purchased but won't download (error-1000000 is showing up)...what can I do?

  • ITunes wont burn all songs in a playlist

    I am trying tyo burn a cd from my playlist. I have all the songs selected but when I hit the burn button, several of the songs become unselected and it then burns only the remaining selected songs. There appears to be sufficient space on the CD and I