Generate a waveform self-defined by reading an excel file

Hi all

Now, I'm generating a waveform of salt-defined by a PXI. Attached is a vi I built for the generation of AC signals, in vi, I used a signal generator to a wave of sinnusoidal of generrate of alternative voltages. I guess I can replace this signal generator with a block that can read an excel file which contains instances of time and their corresponding voltage.

Can you please tell me if this idea works. If it is, block who can do this job?

Thank you very much.

Yes you can.

The easiest is to have Excel to save the data to a CSV file.  Use of spreadsheet file to get data in LabVIEW.

(Search the forums for Excel.  This question has found thousands of times before).

I recommend you watch the LabVIEW tutorials online
LabVIEW Introduction course - 3 hours
LabVIEW Introduction course - 6 hours

PS: They are called functions or Subvi, not of 'blocks '.

Tags: NI Software

Similar Questions

  • LabVIEW allows to read an Excel file to a control and add a checkbox for each line

    As say the topic, I need to use labview to read an excel file and show it in a control, such as mclb; I should add a checkbox for each line then allow me to choose the line I want. What should I do? Thank you very much.

    guiming wrote:

    I can read an Excel file to a spreadsheet, but I have no idea how to do to add a checkbox for each line.

    Sometimes, all you need to do is Google. https://decibel.NI.com/content/docs/doc-25000

    http://www.labviewing.com/check-box-in-multicolumn-ListBox/

  • Report and read the Excel file

    Hi all

    I need to match the styles of paragraphs with Indesign and files the Excel file.

    Excel file consists of (approximately 500 paragraph Styles) naming of the files of standard paragraph styles

    Files InDesign with 100 paragraph Styles.

    My request:

    I need to generate the report if Indesign paragraph styles that are not in the Excel file.

    for example,.

    Indesign file Excel file

    h1                             H1

    h2                              h2

    h3                              BL

    tx                              tx1

    TX1

    TX2

    Create the report as:

    Paragraph error style is H1 and BL in Indesign file

    Created script:

    var myDoc = app.activeDocument;
    
    var myPstyles = app.activeDocument.allParagraphStyles;
    
    alert("myPstyles: " + myPstyles.length)
    
    for(i=0; i<myPstyles.length; i++)
    {
         var IndesignPStyles = myPstyles[i].name;
        alert(myPstyles[i].name)
        }
    //_____________________________________________________________
    
    //Help Here
    
    var myFile = File.openDialog("Choose a tab delimitted txt file:");
    if (!myFile){
    exit();
    }     
     
    myFile.open('r');
    while (myFile.eof==false){
         line=myFile.readln();
         line = line.split("\t");
         myFind = line[0];
    }
    
    
    

    Could someone help with this request.

    Thanks in advance

    Beginner_X

    Hi BEGINNER_X,

    First of all, you must convert the excel file to the format of files "*.csv or delimited by tabs. (I use commas .csv file).

    You posted in above code JS reading only the names of paragraph style. Then another code is read only comma-delimited text file, but you are not comparing the paragraph style in the list of excel files. You missed here.

    Please try the JS code below his works very well, but not generated the report file. I hope that you will generate the report of your side file.

    var myFile = File.openDialog("Choose a tab delimitted txt file:");
    if (!myFile){
    exit();
    }     
    
    var myArray = []
    myFile.open('r');
    while (myFile.eof==false){
        var line=myFile.readln().split(",");
        myArray.push(line[0]);
        }
    
    var myDoc = app.activeDocument;
    var myPstyles = app.activeDocument.allParagraphStyles;
    
    Array.prototype.contains = function(obj) {
        var i = this.length;
        while (i--) {
            if (this[i] === obj) {
                return true;
            }
        }
        return false;
    }
    
    var myMissingStyle =[];
    for(i=2; i
    

    THX,

    csm_phil

  • Read the Excel file

    Hi fellow coders, I need help on the topic of Excel files.

    Process of

    Read the Excel (5 worksheets) file > output is 5 table 2D > Covert table 2D in single array (Colum) > convert (String) data type of data (i/o, digital etc) > build Cluster table with table 2D data.

    I need help to interpret the secret 2D table in single table (Colum) > String convert to the relevant data type > building Cluster table with table 2D data.

    Happy coding

    Dave

    You could do something like this:

  • OBIEE 11G: How 'read' an Excel file from the file system?

    I wonder to provide a link to a page of dashboard OBIEE to read an Excel - probably open it in a new window.

    Can what method I use to provide a link to open and read a link to an excel file in a page of OBIEE dashboard?

    Thank you in advance.

    Check this link http://total-bi.com/2011/02/external-files-obiee-dashboard/

    If brand aid

    Thank you
    http://cool-bi.com

    Published by: Srini VIEREN on May 28, 2013 12:06

  • How to read an excel file .xls to a forms 6i

    Hello
    I have forms6i and webutil don't works with this version, I can read a forms6i excel file.
    Thank you

    If it's a web application, you might do the following:

    Download the file from the client to the application server, there is a FileUpload-bean in the sample forms.

    Write an ontop of some excel library such as Apache POI-RICH or JExcelApi java program to extract the necessary data.

    Use the importer-Forms-Java (I'm not sure, but it should be already there in forms 6i) to create a PL/SQL-wrapper around the java code. Now you can use pure PL/SQL for reading excel fields and process the results.

  • Date and time on the graph (read from Excel)

    Hi everone, I m new to this forum.
    I'm stuck with one of my projects.
    The program is, READ the excel file and it draw on the graph.
    Registered solar energy output is doing, basically I'm trying to see the chart of the outputs and readings at different times.
    I have problem to read time colum, I want to show in the time indicated on the excel on the chart.
    and like 4-5 minutes, to determine the curve because it has 9000 + points.  any suggestion to reduce points?
    I'm new to labview.

    Here's a very quick project on what you could do.

    Of course, you could also extract the headers and place them in the rings for a natural selection more. Only parties with controls belongs in a loop if users should be able to select the columns dynamically. You must also analyze the column time differently. Modify if needed.

  • Reading the data from an Excel file

    Hello

    I try to use the attached VI (adapted from an example provided by someone else in a different thread) to read an Excel file.

    It works well, aside from the fact that it leaves the file and Excel opened when it has finished running.

    How do I close the file (and Excel) by programming?

    Thank you very much

    Dan

    Try this.

  • LabVIEW can read data Excel with Excel installed Starter?

    I'm reading an Excel file, but I get the error-2147221164 try to read an Excel file and I think it's because of starting Excel. Is this the case?

    You probably found this:

    http://digital.NI.com/public.nsf/allkb/B7F980D169474D568625760E0055D55E?OpenDocument

    Who said Excel is not installed, but I think the problem is that Excel Starter (and the word by the way) is a not the component ActiveX.  This is what is used behind the scenes to talk to Excel, and without it, you will get several errors.

    EDIT: I can't seem to find where it says ActiveX is not included, but I remember having read - it somewhere.  Here is the wiki on this topic page.

    http://en.Wikipedia.org/wiki/Microsoft_Office_2010#Starter_Edition

  • How generate the waveform analog multi simultaneously.

    I use the relay Full.vi Gen to generate a waveform.

    I want to create another form of wave and start at the same time.

    Any suggestion?

    Hi turbot.

    The easiest way to make the two tasks simultaneously is to have two copies of this task in the block diagram. In LabVIEW, any function that has all its entries ready or a Subvi runs "simultaneously", so no additional real action must be taken to make them simultaneously. However, you must make sure that all entries of all your screws are to be executed simultaneously are ready at the same time (which means a set of functions that generate the wave does not need any input on the other). It's called the data flow model in LabVIEW. Read this for more information: http://zone.ni.com/devzone/cda/tut/p/id/6098#toc0

    I would you suggest to use an other sub - VI for opening and reading your file (as well as use a different file for each reading Txt Subvi relay). You can also make your Subvi re-entrant. For more information on screw reentrant, refer to this link: http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC

    I would also say that you pass the path to the main file of your VI by using a control in your Subvi, rather than using the constant you have now.

  • How to generate arbitrary waveforms FRO meter

    Hello

    I have a problem in the generation of the wave as shown in JPG below. Need to generate digital waveforms 2

    1. with the help of counter0 - digital waveform will be with pulse 60 (58 - good pulsations and 2 empty pulse)

    2. with the help of Freqout - digital waveforms should be to synchronize with a 40 pulse signal 2 signal should be high for then 5 impulses.

    I tried model digital generation with Boolean 2D table convert to digital waveforms. But somehow, I couldn't have expected waveform.

    If someone could help me in this problem.

    Thanks in advance

    Vijay

    FREQ Out is not able to generate either of two waveforms - it can only generate continuous pulse trains.  In fact, even one of the complete M-series meters would be unable to generate your "Signal 1" - you must use the 2nd meter to the signal from the door.

    Supported boards of series X buffered output of the counter and could therefore be used to generate a waveform.  You can use Freq Out yet, but the X series boards have also 4 full meters if this should be enough resources such as Freq Out is not necessary.

    Best regards

  • Generate Audio waveforms

    Hello

    I've searched the forums and couldn't find an answer.

    I have a nested sequence, and I would like to be able to see the audio waveform for help with editing. It does not appear even after that I used the "Generate Audio Waveform" function on the Clip tab in the menu bar. This function seems to do nothing at all in fact.

    Can someone help me?

    Thank you!

    Audio rendering, menu Sequence.

  • Pouvez Lightroom 5.7 read raw ARW files generated by Sony A7Rii?

    Pouvez Lightroom 5.7 read raw ARW files generated by Sony A7Rii?

    Hi Robertldoc,

    Lightroom 6.1.1 is the minimum version required to use Sony A7R II (ILÇE 7RM2) camera raw files.

    You can upgrade your version of Lightroom 6 Lightroom or Lightroom CC for the files to be recognized.

    You can also download DNG converter to convert the DNG files, before using it in Lightroom.

    For Windows: Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 9.1.1

    For Mac: Adobe - Adobe Camera Raw and DNG Converter: for Macintosh: Adobe DNG Converter 9.1.1

    I hope this helps.

    ~ UL

  • Generate an Excel file?

    Hello

    I have never generated an Excel via CF before and was hoping that someone here could help me? I looked through past discussions and I don't think they fully responded to my questions. What I have to do is to create a piece of code that I plan to run at a given interval of time that will generate an Excel using data queried, save the file to the server, and then e-mail the file Excel to a seller. It seems feasible to me, I do not know how to approach it. I saw last son people using the tag < cfcontent > to generate excellent data formatted in a browser, but I need these data will actually be displayed in excel. Help, please.

    Thank you
    Joe

    Well, I wasn't going with the CSV, I came up with my own solution which generates the Excel file, it saves on the server and it emails for which either with all the good excel formatting. That's how I did it, I hope this can help someone else in the future...

    Since Excel can read the HTML table formatting and use it to import in cells/column I thought it would be the best route to go for formatting a XLS file. So first thing required is to define a variable

    Cross and set up your table and whenever you have information of table, you must add to your variable set in text form to ensure that all the

    and">
    Now, what has been created is a variable with content that creates a cell with Hello world in it and if the if statement is true then another cell is created within the line with 2 line displayed. Now, for it to create a file, you will need to use cffile as such command...

    If you run this code, you will get your file excel on the server.

    JC

    Tags are also included in the otherwise it will throw everything...
    ">
    ">

    ">

    Hello world Line 2
  • Can LabWindows libraries call function inherited from read the Datalog file?

    We are currently updating some old software written in LabVIEW 6.0.3 to Java. One of the features of the original software is to create data files using the function "Write Datalog" and also remind these databases later using 'Read Datalog'.  To maintain backward compatibility with old data users, we want that new software to also be able to read and display the old datalogs.  I have read several posts here about how the only way to get data off datalogs uses the function 'Reading Datalog' of the same version of LabVIEW to write the paper in the first place. I have the original LabVIEW code so I don't know the structure of the data that has been written.

    I want to know if there is the same function in LabWindows libraries.  Specifically is there is no support for a 6.0.3% version of the function of reading Datalog to support interfacing with a call to java?

    To knock out a possible solution, this software is shared with clients.  We want to avoid the way of compiling an executable separated from LabVIEW to be distributed with the main Java software which batch processes all the old data files in reading them with the old function of LabVIEW and spitting out files in a new format.  We would prefer for the old files to be transparent open into the new software.

    WARNING: I use LabVIEW for dark days before the invention of the button cancel, but never touched LabWindows/CVI. Please enter slowly so I will understand

    Thank you all!

    I guess that is not a built-in library capable of reading files datalog LabVIEW simply because they do not have a fixed format... Even in LV, you will need to pass the data structure for the opening function in order to be able to read the data back.

    Searching the forum I found this discussion that can give you useful to begin with.

    Apparently, you need detect the beginning of the section of the data file after the initials "DTLG" and rest of the header (which is the part not documented). After this point, read the file should be simple if you know the data structure the program writer used. The data > storage section of LabVIEW help can give you information about the content of the memory of each type of data used.

    A simple test, I did write the clusters with a string and an integer shows that: 1. section of data begins at offset 0x22F; 2. the cluster is poured into the file preceded an int with the length of the string; 3. documents may have a variable length according to the length of the string; 4. There are no bytes of padding between elements of the cluster; 5. records are packed in the file consecutively.

    I did this test using LabVIEW2009: it is possible that older files of LV are structured differently.

    An alternative to this is to generate a DLL in LabVIEW that reads files datalog and passes their content to the appellant. Since you are experienced in LV, you are certainly more comfortable than me by doing this.

Maybe you are looking for