Synchronisation Excel à Labview

Bonjour à tous,
Je suis étudiant en licence et pour un projet je dois activer un programme labview à partir d'Excel : je m'explique, avec une douchette je vais scanner un code barre, celui ci viendra s'incrémenter sur Excel et lorsqu'il s'incrémente sur Excel, le programme Labview doit se lancer.Est-ce possible? Comment doit ton procéder?
Merci de vos réponses, elles seront d'un grand recours.

bonjour, je pense qu'il faudra regarder vers l'activation du serveur ActiveX de l'application. En effet vous voulez piloter votre application LabVIEW depuis Excel, donc il faut rendre votre application LabVIEW serveur ActiveX, propriété du build, elle sera alors pilotable depuis Excel (passage et lecture des données). Une autre solution est de faire le contraire.... Vous réalisez une application sous LabVIEW et avec le report generation Toolkit vous pilotez Excel, via ActiveX. Cette dernière méthode est très simple.
Luc Desruelle | Voir mon profil | LabVIEW Code & blog
Co-auteur livre LabVIEW : Programmation et applications
CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

Similar Messages

  • Data acquisition synchronisation Arduino/LabView

    Hello,
    I'm trying to acquire force sensor values using an Arduino board (reading the data and controlling a motor) and LabView. The data acquisition rate is tunable according to the motor condition, meaning a high acquisition rate (short delay) during the ON state of the motor and a low acquisition rate (long delay) during the OFF state of the motor.
    I managed to acquire the data, but till now I always find some "0" values though I'm applying a continuous force on the sensor. I guess the main problem is the synchronisation of the "datarate" on the Arduino board and the acquisition time point in LabView.
    I hope that you could halp me, since I'm trying since weeks to overcome this problem. You will find both the LabView and the Arduino source codes in the attachment.
    Attachments:
    CBR control_opti.vi ‏206 KB
    CBR_Arduino.docx ‏15 KB

    Dear all,
    last week I had some limited time, which I could dedicate to my work with Labview. Unfortunately I'm not able to solve the problem with the Consumer/Producer architecture. It seems to be the appropiate solution, but due to my limited knowledge I'm not capable of doing that.
    I will add my modifications (CBR control_Prod-Cons.vi) to give you an idea about what I've achieved so far. I appriciate any help of you, since this story is driving me crazy. Additionally, I attach a JPG showing the readout I'm obtaining with the old version (CBR control.vi), where the red circles indicate the problem with the "0" values.
    Thank you again,
    Cheers 
    Attachments:
    CBR control_Prod-Cons.vi ‏203 KB
    sensor read out.JPG ‏164 KB
    CBR control.vi ‏206 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.

  • Labview signal express to excel

    Hello,
    I'm using Labview signalexpress to acquire a signal. My problem is that I acquire 20 seconds of my signal (and I see it on the graph), but the problem is that I can export to excel the only 1.35 seconds, whatever the number of samples. How could I export to excel the entire signal?
    Thanks
    Solved!
    Go to Solution.

    I don't have signal express but a quick search found this link.  It states that there is a setable limit on the size fo data sent to the clipboard.  
    "When you export data to Microsoft Excel, LabVIEW SignalExpress copies data samples to a clipboard for export. Use theMaximum Clipboard Data Export Size option on the Data page of the Options dialog box to increase the number of data samples the clipboard can contain. Depending on the amount of memory on a machine, large log files might not export successfully."
    You might be running into that limitation when you try this method.  Even if you increase the limit you will still not be able to paste more than excel's max size as discussed already.  You would have to paste it into a text file or some other program that can handdle that much data.  I would not use this method however.  Seems like it would be to easy to make mistakes that way.
    A .lvm file is just a text file so you should not run into any limits there.  This is what I would use. 
    Lukin
    Certified LabVIEW Developer

  • How to create a labview program and use it as a compiled prgram

    I am a mechanical engineer, and I have some formulas and equations that I used to obtain maximum thickness of pipelines and also in the design of steel structures, what I need now is to use Labview to put these huge number of formulas in one program. I can do that, but the problem after I make the program I want it to be used by anybody on  any PC which is not installed Labview on it, and that is the problem, I don't know if I can make an excel  sheet or something to be the interface that can be used by the user, and if I can, I hope that I can have the details of who to execute that.

    LabVIEW interacts with Microsoft Excel using its Active X hooks. Anything Microsoft has exposed in the Active X API, LabVIEW can do. This includes opening Excel, reading values, writing values, etc. Doing this can be tricky for a novice programmer and NI has created the Report Generation Toolkit for Microsoft Office that plugs into LabVIEW for a more streamlined experience. 
    The Developer Zone is a good place to start a search looking for Active X Excel examples: http://zone.ni.com/devzone/fn/p/sn/n16:en/sb/navsRel?q=microsoft+excel+labview&x=0&y=0
    As well as the Forum: http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391 
    Reading and writing to an open Excel file could become quite cumbersome however. If the Excel file is open and the user is interacting with it, writing to that same file will return an error saying that the file is currently open. It would have to end up like this: User opens file, modifies some fields, saves file and closes excel. LabVIEW program opens file, reads fields and writes a result, then opens Excel to display to the user the result.
    Is there any specific reason you want to use Excel as your user interface? You can use the front panel of a LabVIEW application to enter the data and display the results, all while writing this data to an Excel file for logging/reference in the future. 
    Message Edited by Stephen B on 11-17-2008 01:26 PM
    Stephen B

  • Filter on date and time from Live Office query panel (Excel)

    Hi,
         I'd like to know if someone already tried this.
    1- Create a univers with 3 fields.
    a. Field 1 type date: points to a type date field (ex: 2011-12-31 00:00:00)
    b. Field 2 type date: points to a type time field (ex: 17:00:00) -> which is basically 5pm
    c. Field 3 type date: points to a type datetime field (ex: 2011-12-31 17:00:00)
    2- Open Excel and using Live Office plugins
    3- Open the univers
    4- Drag the Field 3 as filters.
    5- Choose an operator ex: Between, Greater, etc.
    6- Open the calendar and select a date
    7- Modify the 00:00:00 to put something like 17:00:00
    8- Click away
    9- The time resets back to 00:00:00
    So my question is how do I have to setup the field in the univers so that we can query on the time using the univers in Live Office.  I say Live Office because in WEBI, it works fine.  Changing the 00:00:00 to something else doesn't make it reset to 00:00:00 when you click elsewhere.
    Trying with Field 1 and 2 does the same thing.
    Purpose of this is to be able to filter on parts of the day, like am (8am to noon) and pm (1pm to 5pm).
    BOXI 3.1 SP3
    Windows Server 2008 R2
    Netezza database
    Live Office 3.1 SP3 (Client)
    Excel 2007 (Client)
    Windows 7 (Client)
    Thanks,
    Edited by: Sing Phommavong on Feb 23, 2012 11:24 AM

    Hi n,
    please search for your problem in the forum. This has been discussed a lot of times before! (keywords: Excel LabVIEW timestamps)
    Excel stores timestamps as number of days (your 41866) and part of days (0.5798d = 13H55M). You need to convert those numbers using some (more or less) simple math to LabVIEW timestamps!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Excel program error 97 HELP

    HI!
     i am creating a program to search a word in excel and change it for another word i want...
    but when i start the programm, error 97 appears, and i don't know how to solutionate it, i have been reading more posts, but i don't get the best solution can you HELP ME?
    take my vi to open it!!!
    THANKS!!
    Attachments:
    excel_ni.zip ‏58 KB

    This still says nothing WHERE that error comes from. You seem to think that everyone is able to reproduce the issue on his local machine.
    But the error could have many sources, many of them possibly linked to YOUR specific machine:
    - Coding error (reproducable anywhere)
    - Depending on Excel/LabVIEW version (reproducable on machines only having the same Excel/LabVIEW version)
    - Certain settings (reproducable only on machines using the same settings, so you got to provide those)
    - Regional settings (excluding many PCs around the world not matching your regional settings)
    - Certain registry entries (most likely not reproducable anywhere else than your machine)
    - Corruption of components (most likely not reproducable anywhere else than your machine)
    You gave some kind of hint to yourself on the other hand with your reply:
    If the code worked till yesterday without that specific error: What have you changed on the code yesterday? If you revert your code to the version of the day before, does it again work?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Excel Graphs using Office Report Generation

    I'm using Office Report Generation and I would like to add a grpah to my excel spreadsheet using existing excel spread sheet data. 
    Right now the only way I can add a grpah is to load the data into labview and create a graph in a 2d array.  However that way the graph has no linkage to the data in the exc el spreadsheet.  I can't use a template to create the graph then load the data because different results require different methods.  However if I could modify an existing graph within labview I could use the template but I can't index a now labview created graph.
    Can anyone suggest anything?

    Hello,
    Thanks for posting to the NI Discussion Forums!  I think you might
    be right, and there might not be a conventional way to create your
    graph from the Report Toolkit (after all this is designed more to
    create a report from known and unchanging data that you can move to
    excel for demo purposes).  There might be some other ways to do
    this.
    My first recommendation if you would like to stick with the Report Gen.
    VIs, you can design an Excel Macro to generate a graph from the
    spreadsheet.  LabVIEW can execute the Excel Macro through the
    Report VIs (see the Report Generation->Excel Specific->Excel
    Advanced->Excel Macros palette).  There are some good examples
    and documentation out there about calling Excel Macros:
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DD2F56A4E034080​020E74861&p_node=DZ53040&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3D9D856A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DC6D56A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://zone.ni.com/reference/en-XX/manuals/323805A​-01/RepGenUG_07/
    If you do not want to use the macros, you might have more luck using
    ActiveX, or other means in which to interface with Excel than are
    provided in the Report Generation Toolkit.  There are countless
    examples and discussions about Excel, LabVIEW and ActiveX so I won't
    spend too much time here on it, but if you think you might want to use
    this as an option, let us know and I can see about finding some
    examples on it for you.
    Hopefully this helps!  Please let us know how things go.
    Travis M
    LabVIEW R&D
    National Instruments

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • Date and time from array of string

    I have managed to read information from an excel spreadsheet I am using and display different parts of it in indicators on my front panel. But the data being displayed for the cells that contain the date and time are showing up incorrectly.
    The date of 15/08/2014 shows in the indicator box as 41866 and the time of 13:55:00 shows as 0.579861111111111
    Is this something I need to change in the excel file or do I need to alter the data in the array before displaying it in the indicator.
    Sorry if this has been explained in the past. I just cant seem to see a previous solution.
    Thanks in advance

    Hi n,
    please search for your problem in the forum. This has been discussed a lot of times before! (keywords: Excel LabVIEW timestamps)
    Excel stores timestamps as number of days (your 41866) and part of days (0.5798d = 13H55M). You need to convert those numbers using some (more or less) simple math to LabVIEW timestamps!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • What is this Figure and... it's correct?

    2 questions:
    1) What is this figure (see under)? I want know what is the box (target_type) in which there is icon that I know. What is its function? How can I find it?
    2)  It's correct this for expert and excellent Labview programmer (see the Figure): to pass from cluster to merge signal?
    Thanks,
    Vanny
    Sweet, Beautiful and Young Female Physicist (SBYFP)
    (I speak a not very good english, so If U are Italian LabVIEW expert speak in Italian, if U speak in Eglish... please speak easy )
    My e-mail for personal contact: [email protected]_NO_SPAM_PLEASE

    From the Labview help :
    data is the data to write to the .tdms file. This input accepts the following data types:
    Analog waveform or a 1D array of analog waveforms
    Digital waveform
    Digital table
    Dynamic data
    1D or 2D array of:
    Signed or unsigned integers
    Floating-point numbers
    Timestamps
    Booleans
    Alphanumeric strings that do not contain null characters
    So your datatype is not supported. Which data do you want to save. Is it the waveform chart content?
    Also a tip then you start a new Labview Session always enable "show context help" in the help menu (short CTRL+h).
    F. Schubert is also correct then he says not to use the "fancy" dynamic data wire. The whole Express VI concept is just some flimflam glued ontop of Labview with some cheap glue. Stay away from it and you will become a much better Labview programmer
    Message Edited by Coq Rouge on 02-10-2010 12:13 PM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to call a subvi to run in background?

    i have a timed loop which is gathering data and storing it in an array.  when the array reaches a certain size, i would like to store it to a file while continuing to process new data into the array quickly.  how can i pass the array to a file storage vi from within the loop without preventing the loop from continuing to iterate until the file access is complete?  in other words, i would like to pass the data out of the loop and have the loop continue to run at the same rate while the data is written to a file as a lower priority task.
    thanks.
    Ben.

    Hi Ben,
          ...well, last-things first...
    > if i call a subvi with an invoke node, i can set "wait until done" to false.... but then how do i pass the data?
    Once you have a VI reference, you can us the "set Control Value" method to hand your array to the dynamically-called sub-VI, however...
    What happens if the sub-vi doesn't finish by the time another 2D array is ready? (I know that's not supposed to happen, but what if?)
    I think having a queue to which the entire 2D array is written as a single element would be better, and I doubt that launching a sub-vi and passing an array would be any more efficient than writing to an existing queue.  To be honest, I don't know whether the call to the sub-VI will pass the array by value or by reference.  If by value, then a copy is being created - why not create it in a queue?  If by reference, then you have two sections of code writing to the same buffer at the same time - opening the door for data-over-runs.
    In the old days, code took a big performance-hit by using Globals this way - frequent writes/reads.  Your application seem to fit a "Producer/Consumer" paradigm - which is routinely implemented using queues.
    With that much data, I'd be looking for ways to keep it in binary format for Excel - (LabVIEW uses a conventional binary representation for storing floats) - I'd be surprised if it isn't possible to keep it that way.
    If anyone else has ideas to share, I'm happy to step aside.
    bs05442 wrote:
    here's a little more about my situation, and why i am not using a queue--
    i am running two instances of the same dynamometer control application to allow a user to control a pair of dynos for tracked vehicle testing.  each instance of this vi is gathering status and measurement data off a CAN bus.  i want to log this data as well as (in the future) data from other control VIs running on the same computer.  so i set up a global variable to which each vi writes it's measurement data, and i have a logging application periodically (up to 100Hz) capture the status of the entire global as a new row in a 2D floating point array.  because i am adding a couple dozen elements each time the logger cycles, i did not want the performance hit of dynamically resizing the data structure to which i was storing the data, so i predfine the 2d array and then use an integer to store the index of the next row i want to write to.  the problem comes when i fill up the array (64k lines, the most that excel will process from a csv file)--i would like to store it to a file without inturrupting the logging, but the conversion from float to string plus the file access time takes up too much time to handle inside an iteration of my logging loop.  so i'd like to pass the array to another task which would take care of converting and storing it in the background.
    i'm afraid if i store the data in a queue, the application might slow down once the queue gets too large, and i don't want to bog down the other control vis that are running on the same machine.  if i call a sub vi to write that data, the current loop iteration does not complete until the file write is done and i miss a few periods of data.  if i want to  use a seperate  loop to monitor the array size and perform the file access, i need to make the array available to both loops, which seems to require making it a hidden control on the front panel.... but then i have to access this large data structure via local variables, which will give me a huge memory hit, right?  so i think what i would really like to do is pass the entire contents of the array off all at once to another vi, then let that vi store the data in the background while the fast loop continues to begin filling up its array again.  if i call a subvi with an invoke node, i can set "wait until done" to false.... but then how do i pass the data?
    thanks for any advice...
    Ben.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Why is measuring a frequency so slow?

    If I don't measure a the two frequency's I can get the program to write data about 7 times a second, but with the frequnceys it is only 1 or 2 times. Take a look at the program to check this out. Also on the graph there seems to be a buffer over run, data is written the the wrong side of the graph first.
    Attachments:
    twin_turbo_wo_water_to_air_data_output.vi ‏192 KB
    create_data_string_II.vit ‏24 KB
    Measure_freq_--_Sub.vi ‏46 KB

    There is still a VI missing from your list so I could not run your code. In the future consider saving your top level VI with "save with options">> development distribution. This creates a library of all the VIs.
    You are using write characters to file.vi. This VI opens a reference to a file, writes the data, then closes the file. This makes the VI very slow. Consider opening the file outside of the loop, writing to the file inside of the loop and closing when your are done. Open up the write character to file to get an idea of the VIs you will need.
    This kind of operation is usually best done using parallel loops--one loop for acquisiton and one for data storage. The tricky part is that you will need to use queues to transfer the data between the l
    oops. There are several excelent LabVIEW shipping examples of how to use queues. Open LabVIEW >> help >> examples >> optimizing applications >> sync. tasks.
    The queues will speed your code and reduce the buffer overflows because your data will be pushed into the queue as it is aqcuired and can be written to file in larger pieces speeding the write process.
    Jeremy

  • Test Engineer Opening-La​bView Programmin​g Skills Needed

    Basler Electric, serving the world market with power systems, control devices, and magnetic products for the past 63 years, is currently in search of a Test Engineer with excellent Labview software skills. This position will be located at our Corporate Headquarters in Highland, Illinois.
    The Test Engineer will be responsible for the development of new and existing test software, hardware, and procedures for all products. This includes, but is not limited to, LabView and Windows programs. In addition, the Test Engineer will estimate new test hardware costs, provide support to for UL/CSA certification, back-up support for in-circuit testing of printed circuit boards, and serve as technical support for technicians.
    Qualified candidates must possess a Bachelors degree in Electrical Engineering or Computer Science with 5 years of experience in developing production testing. Experience developing test software in LABVIEW is required. Also, must have a working knowledge of Visual Basic and Windows programming.
    Basler offers a competitive salary and benefits package along with a great opportunity for career advancement.
    Please send your cover letter, resume, and salary requirements to the e-mail address below. We prefer to receive attachments in Microsoft Word format or in an Adobe .pdf file.
    E.O.E. M/F/D/V
    Basler Electric
    e-mail: [email protected]

    Dear Sir/Madam,
    I read your message in NI Job board and am willing to talk to you about this position. My background is in Electronics and instrumentation and i have 1.5 years experience .I am recently wroking with AVON meters Pvt. ltd as software developer in labview and C/C++.
    My e-mail address is [email protected] I would appreciate your response.
    Looking forward to your reply. Thank you.
    Sincerely,
    prabjit behl

  • Ecriture de données dans un fichier existant

    Bonjour,
    Je suis en stage et j'utilise la version 8.5 de LV.
    J'acquiert des données analogiques que je dois envoyer vers une feuille excel. Cela marche presque correctement sauf que je souhaite écrire les données acquises dans un fichier déjà existant .Je voudrais que mes données soient écrites en face des cases déjà écrites pour obtenir quelque chose qui ressemble à "voulu.JPG" (en pièce jointe) mais ce que j'obtiens c'est ce que j'ai pris comme screenshot (voir: obtenu.JPG)
    Je met en pièce jointe également mon VI pour que vous voyez exactement ce que je fais.
    Merci pour vos réactions et suggestions.
    cdlt.
    edjo.
    ecriture de données dans un fichier existant excel labview
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    projet stage GO4.vi ‏55 KB
    voulu.JPG ‏3841 KB
    obtenu.JPG ‏397 KB

    Bonjour Edjo,
    Je t'ai mis des commentaires dans le code LabVIEW en pièce jointe.
    Normalement il t'est possible d'utiliser le VI directement en tant que sous-VI
    dans ton application.
    Pour faire fonctionner cet exemple ouvre le VI  Excel Set Data
    Specified Field.vi puis entre le nom de la feuille sur laquelle tu souhaite
    écrire tes données (i.e. Sheet1 il me semble qu'en Français c'est Feuil1)
    indique ensuite le début et la fin du champ où tu souhaite écrire tes données,
    rempli le tableau et lance le VI. Au lancement le programme va te demander de
    lui indiquer le ficher Excel. 
    Un ActiveX ou Component Object Model est un composant logiciel créé par
    Microsoft et est utilisé en programmation pour permettre le dialogue entre
    programmes. Je t'invite donc à aller sur le site MSDN pour
    avoir plus d'information sur les fonctions de l'ActiveX Excel.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/
    Pièces jointes :
    Set Excel Data 8.5.zip ‏38 KB

Maybe you are looking for

  • Cannot send email ("IMAP" server?)

    I got an iPhone 5c last week. Verizon set up my email accounts. I receive everything to my two cox.net mailboxes just fine on my new phone. Whenever I attempt to send an email I get the following error message: Cannot Send Mail - the user name or pas

  • Condition exclusion - how to only exclude certain ones.

    Hello, I have a condition type ZCPD that has the condition exclusion set to X (net price) in the condition record for ZCPD.  The issue is that I want condition ZDUT to be relevant even though ZCPD is set with exclusion.  What in the condition set up

  • HTTPS Without client authentication shows error of Certificate

    Hi Experts, I am trying to develop a SOAP to RFC scenario where in SOAP sender HTTP security level - HTTPS Without Client Authentication is selected. I have downloaded WSDL from Sender agreement and trying to test web service from SOAPUI.  Now as per

  • Mass upload of IPPE

    Dear All, We are in process of implementing IS-AUTO, for that IPPE is required as master data. I would like to know how to upload IPPE in mass as we upload material master using LSMW, please tell me any tool available for upload of IPPE in mass. Rega

  • If else in a procedure

    Hi, Everyone, I am new to pl/sql and when i am writing a if else statment in a procedure i get errors. could anyone please help me how to write this one procedure: create or replace PROCEDURE call_all_test (     b_bmonth      IN     NUMBER,      b_TE