Saving an Agilent N1996A waveform trace to graphics/Excel files

Hello,
I am new to LabView.  I need to create a VI that will save an Agilent N1996A (CSA) waveform trace to a graphics file (PNG, BMP). The user will enter a filename through the front panel.  The Functions palette has a CSA ReadTrace.VI that sends the data to a waveform trace but I do not know what other objects or wires to use to save the data to a file specified in the front panel.
Additionally we need to export the X and Y arrays from the trace to an Excel file, which will also be given by the user through the front panel.
Thanks!
Nina

You can use the Get Image method with the appropriate write function on the Graphics & Sound>Graphics Format palette.
The Write to Spreadsheet File is just one of the File I/O functions you can use.

Similar Messages

  • How can I make waveform graph and/or excel file with two different dynamic DBL values?

    As the question describes, I have two dbl sources from a load cell and linear actuator (from firgelli). I want to make a load/displacement curve from the force readings from the load cell and the displacement readings from the linear actuator. The load cell outputs an analog signal that can be acquired by a DAQ and the actuator comes in with a board and VI program to control the speed and measure the displacement of the actuator to a sample rate of my choosing. Is there a way that I can make a VI where it continues to collect data and construct the graph I'm looking for?
    Solved!
    Go to Solution.

    A couple points about your application:
    1.  Synchronization.  Since you're ultimate goal is a stress/strain curve, it is vital that your force and displacement data be synchronized appropriately.  If your sampling is beyond a few times a second, this is not really possible without some form of hardware synchronization via either a trigger and/or sample clock.  Two NI DAQ boards can be synchronized this way easily, but it seems you're using 3rd party hardware for one of these processes.  Would need to know more about that board to know what options you have.  You could specify what your resolution is in distance, and how fast the article will be moving, to get an idea of how fast to acquire, and how well you'll need to synchronize the data.  Another option, since it appears each data stream will be sampled on a hardware-timed sample clock, they will be offset in time, but not skewed during the acquisition.  You may be able to identify a feature in the data set common to each and use that to remove the timing offset after the process is completed.
    2.  Display.  To display data during the acquisition process, I usually recommend at least one display that plots vs. time.  Much easier to spot irregularities with the acquisition process that way.  However, if you'd like to also plot force vs. displacement, you can use an XY Graph to plot parametrically. For Example, in your case you would use the Displacement data as the X coordinates, and the Force data as the Y coordinates.
    3.  Saving data to file.  I would recommend using the Save to Spreadsheet File.vi (File IO pallette) to save your data.  If you use a comma as the delimiter, and save the file with a *.csv extension, you will have a file that is easily read into excel.  The standard tab-delimited spreadsheet file is also fine, it will just require an extra step to read it into excel to specify to excel what the delimiter is.
    4.  Batch vs. Real-Time Recording (Data File).  If your process is short (< 30 sec) you may be better off acquiring the data, Storing it locally to the VI (Array - usually maintained in a shift register), and then writing the file with a header (acquisition parameters, test article information, data column headers) and the data all at once in batch mode to the file after the process is finished.  If, however, it is longer than that you would be better off starting a data file with a header and appending the data to the file as you go, so that if something happens during your test, you at least have data up to that point.
    Hope this Helps,
    Kurt

  • Writing Trace Info to and Opening an Excel File on command

    I am currently using a Read Traces (numeric) vi to collect values from Tags and output them to a XY Graph. Alongside the graph on my front panel, I would like a boolean control to command (when true) LV to write the data to a spreadsheet and open that spreadsheet so it appears on screen, ready for the user to view and then save the excel file where he/she would like.
    Is this possible? I am a little unsure what File I/O functions I need in order to achieve this? I have tried using the "Write Traces to Spreadsheet vi" available in the DSC module, but haven’t had much success. I have attached my code to show you how far I have got.
    Any help with this problem will be very much appreciated.
    Thanks,
    Stuart Wilson
    Attachments:
    Writing Trace Info to Excel File.vi ‏77 KB

    Hi Stuart,
    I have written an example piece of code for you which has the basic functionaliy that you want.
    The example plots random data to a chart. When the boolean is pressed this data is written to a spread sheet file and Excel is opened to display this data.
    As it is a generic solution you need to replace certain items when you incorporate the structure into your code: Instead of writting the history data of a chart you can use the "write traces to spreadsheet.vi" to write the data. The automation of excel can then be used in the same way as in the example.
    There is also an example available in the "LabVIEW Example finder" called "Write Table to XL.vi". This example takes the data from a table and cell by cell inserts it into an excel speadsheet. Which the operator can then save from within excel. However, this method is not the most efficient way to get data into Excel.
    I hope this is helpful.
    Emma R
    NIUK & Ireland
    Attachments:
    SR_300720_Example.vi ‏68 KB

  • Continuous saving data and showing waveform

    I want to continuous saving data and continuous watch the waveform on the graph..
    Now after saving one time, the waveform just stops and freezs. How can I make it continuously working?
    Do I have to use loop ?

    You need to show what you currently have so we can figure out your system and figure out exactly what you are looking for.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • I am trying to acquire several cycles of a waveform and save it to an excell file.

    Only one or two (I don't remember which) of the values shows up on the excell spreadsheet, the spreadsheet remains otherwise empty. I know that the waveform is being captured by the DAQ because it is graphed, and it looks fine. If someone could point to where I have gone wrong and offer some suggestions, I would greatly appreciate it. Also, if there are some obvious indications that I am missing some necessary understanding of what is going on within my vi, feel free to enlighten me.
    Thanks for all your help.
    Attachments:
    Acquire_N_Scans_save_to_ss.vi ‏87 KB

    The reason is that you are trying to wire a 1D arrray of WDT (waveform data type) to the file box. WDT is a special data structure where are stored not only the signal readings but also t0 (the time stamp = date of the first data point) and delta t (the time increment between to points). You need to reorganize the data before saving to a file. Use the "get waveform components" (in the waveform subpalette) to separate the time stamp from the data.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Save multiple waveform graphs and data in one Excel File

    Hi there,
    I managed to save data from waveform graph into excel file and saving the plot into excel but individually. I'm aiming to save both the data and the plot in an excel file. May I know how do I do it? I've tried using the Write to Measurement File vi and also the invoke node of the waveform chart but it's still not giving me what I've wanted. 
    The above was only for one analog input channel and I have 2 analog inputs each with their respective sets of data and plot. Is there a way to execute the data and plot of one input in one worksheet and another set of data and plot in another worksheet, all in one excel file?

    Hi there;
    I would recommend using the Report Generation Toolkit; it is the easiest way.
    You can use either the Report Express VI or the Appi to save all your data in both formats
    Greetings

  • How to Write Waveform graph data to Text File with user option to do so

    So, I'm new to labview and am having trouble writing one program in particular.  I have a waveform graph that runs for 120 seconds generating a sine curve.  I am, however, having a difficult time getting the program to write the x and y coordinates into a text file.  I have attached what I have so far.  
    The first task I was assigned was to write a program that creates a snusoidal curve on the front pannel adding one data point each half second for 120 seconds.  The plot should only start when the user presses a start button.
    The next part involves giving the user an option to write the generated data to a spreadsheet file called "sine.txt".  The file name and location should be hardcoded.  The file should contain the x and y coordinates of each data point in columns separated by tabs, also known as delimited.
    I have spent several hours tweaking the attached program and I just can't seem to get it to work right.  Any suggestions would help at this point.
    Sincerely,
    A frustrated chemistry student whose research mentor is out of town
    Solved!
    Go to Solution.
    Attachments:
    Sinusoidal Curve (saving to excel).vi ‏45 KB

    First, you are not creating Excel files.  You are creating text files.  And it seems that your Write to file is already creating X (time) vs. Y (data curve) that is tab delimited.
    Everything else you are doing is just too complicated or a Rube Goldberg.
    All you need is the attached.
    Attachments:
    Sinusoidal_Curve_(saving_to_Text_file).vi ‏69 KB

  • I saved my Form Central spreadsheet file once as a excel file but it will not allow me to save it a second time as an excel file.  It says that I cannot complete this action because the file me be open in another application, but it is not open in another

    I saved my Form Central spreadsheet file once as a excel file but Forms Central will not allow me to save the file a second time as an excel file.  I am informed that I cannot complete this action because the file me be open in another application, but it is not open in another application. What is the problem, and how do I solve the problem.  Thank you. Jeff

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • Refresh data in SWF based on excel file saved from SAP BW workbook

    Hi, is there a way to get data refresh in SWF dashboard from excel file as a data source. SAP BW workbook report will be saved as an excel file daily and placed in somewhere. I would like to create a dashboard which can connect to the excel data source and refresh on load.
    Appreciate your advice and help. Thank you.
    I am using Xcelsius 2008 and SAP BI 7.0

    Thank you.
    If I understand correctly from your advice, that is I should create QaaWs to pull data from SAP BI, which will return data in tabular format. Map the data in the cell range of a hidden tab, re-arrange and format the data into the row?
      Another concern: I need to display data for 4 quarters (Q1, Q2, Q3,Q4) in the dashboard, but QAAWS will only pulls data when the data is available in the database.
       Eg. Only data for 3 quarters are found in the database, QAAWS will return data for Q1, Q2,Q4.
             This will mess up the position fixed in the xcelsius. Do you have any suggestion on this?
       Sorry to bother u for the simple questions.
       Thank you.

  • I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    Leslie Tanaka
    Travel and detours have kept me from following up sooner. If the problem that you wrote about still persists.....
    Let us go back over that Adobe document regarding troubleshooting damaged projects.
    3. Delete the Application Preferences
    Where you able to follow that path and delete the Adobe Premiere Elements Prefs file at the end of the path? And, after you did, did the saved/closed programs still refuse to open? If you could not carry out this procedure, what were the limiting factors that kept you from do
    7. Test to see if individual media files are causing the problem.
    That is an important one. How far did you get into following the instructions given in the document? If you could not complete the test, what was the major block that prevented you from doing so?
    I want to make sure that we have gone through everything in that document and ruled all factors there in or out. If it was a matter of you not understanding the instructions, I am hoping that the above will channel you questions to me so that I can clarify anything that you did not understand in the Adobe document instructions.
    I do not recall if I asked previously. Even if you cannot open all your saved/closed projects, can you still open a new project and save/close it? Maybe even reopen it?
    Please review and consider.
    Thank you.
    ATR

  • How to make my waveform from excel file perodic in labview graph

    Hi guys,
    Previously I've made a vi which integrates the excel file, to plot the graph values in labview using the values in the excel file to give the me a better flexibility to decide what waveform i want it to be. Can i know how to actually make the graph periodic, as in the waveform repeats,  because currently it can just plot out the waveform accordingly to the values i inserted in the excel. I've attached my vi and aso my csv file together. Thanks guy.
    Attachments:
    12.csv ‏1 KB
    graph.vi ‏18 KB

    So do you want to read the same values over again?
    If that is what you wish to achieve then use waveform chart as opposed to waveform graph. I editted your code slightly so that you can see the different.
    I hope this helps!
    Mehak D.
    Attachments:
    graph.vi ‏18 KB

  • Error while saving the excel file

    hai all,
    i had an requirement to upload customer master data through lsmw while saving the data in excel file with extension as) text( tab delimeted)(.txt) it is not saving and displaying the message as " the selected file type doesnot support workbooks that contain multiple sheets. to save only the active sheet click ok."
    regards,
    karthik

    Ensure that you have not opened any excel file or text file with similar name.
    thanks
    G. Lakshmipathi

  • Database creation having a trace of the control file

    Hi,
    I want to move a database from one server let's say A to another server let's say B I have a copy of all the datafiles, redo logs, control files and init file of the database fron the server A. I have a trace of the control file.
    I copied all these files on the server B in the location /dispecer_date/oradata, except init which is in ORACLE_HOME/dbs
    I thought that the simplest method to recreate the database is from the backup of the control file writing in sql the command CREATE CONTROLFILE how is written in trace and replacing the word REUSE with the word SET in CREATE CONTROLFILE instruction.
    I obtained an error:
    ORA-01503: Create controlfile failed
    ORA-01160: file is not a data file
    ORA-01110: datafile: '/dispecer_date/oradata/system.dbf'
    Why? The db_block_size parameter is 4096.
    Thank you,
    Mihaela

    Here are the steps .....
    sql > shutdown immediate ;
    create identical dir structure on server b
    copy all datafile,controlfile,redologfiles and pfile to target server ,And put them in same dir as of source.
    now on taget server
    sql > startup mountpfile = path of the pfile
    sql > alter database opn
    or
    sql > alter database open resetlogs ;
    this will do the trick, I don;t think recreating the controlfile is a good option hare , becuse you likly to loose some data if you stick on that one.
    hare krishna
    Alok

  • Excel file corrupt after saving to another disk

    I have two PCs at home.: A laptop running Win-7 64-bit, and a desktop running Win-7 32-bit.  Both are running Office 2010.  Often, but not always, when I save an Excel workbook from one PC onto a shared hard drive on my home network and
    then try to open it on the other PC, the other PC displays the "file appears corrupt, would you like Excel to try to recover/repair?" message when I try to open the file.  This also happens sometimes when saving to a thumb-drive and attempting to open
    it on a non-connected laptopn running XP and Ofice 2007.  Most times, Excel successfully repairs/recovers the file without issue.  Infrequently, it doesn't repair everything.  Today it failed completely and was unable even to open the file on
    another PC.  I've tried various methods to copy the file.  I've experienced the problem when I use Windows Explorer to copy the file from one disk to the other, and also when using both DOS COPY and XCOPY commands.  The issue occurs with
    many, but not every Excel file I copy.  And it doesn't happen every time - only sometimes.  It seems to occur more frequently with certain specific files, and and rarely or never happens with specific other files.  It occurs in both directions
    (i.e. with both the 64-bit Win-7 machine as the "source" machine and with the 32-bit Win-7 machine as the source machine.)  All of the files I have problems with are .xlsm files.  I have not tried to confirm that it happens only with .xlsm
    files.  It doesn't seem to matter if the destination file is being overwritten, or if it is being created from scratch by the copy source.  I'm baffled.  Any suggestions as to why this is happening?  How I can prevent it?  Thanks.

    Hi,
    The Office 2010 you used on both computers are 32-bit or 64 bit?
    There are some differences between Office 32 bit and 64 bit.
    For more information, please refer to the link:
    http://office.microsoft.com/en-us/excel-help/choose-the-32-bit-or-64-bit-version-of-microsoft-office-HA010369476.aspx
    Jaynet Zhang
    TechNet Community Support

  • Can I programmatically force saving an XLTM template to save as an XLSM file in Excel 2010 without defaulting all Excel file types?

    I created an Excel template which includes VB and macros as an EXCEL.XLTM template file (I used a template file to keep users from overwriting the sample template file), but I have noticed that when users save the template, Excel 2010 defaults to saving
    the new file as a XLSX file (removing all the macros).
    I know you can set Excel 2010 to always save as a certain format, but I really would prefer not forcing all Excel files to be macro enabled for the user
    Is there a way to default the Save type to XLSM for this template only?  Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
    My users aren't exactly Excel savvy, so I wanted to make it as simple as possible for them.
    Thanks!
    Alan Edwards

    Hi Alan,
    >> Is there a way to default the Save type to XLSM for this template only?  Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
    In my option, you could achieve this by adding Application.GetSaveAsFilename Method to the workbook BeforeSave event. Some key code like below:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Dim FileNameVal As String
    If SaveAsUI Then
    FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Cancel = True
    If FileNameVal = "False" Then 'User pressed cancel
    Exit Sub
    End If
    ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    Application.EnableEvents = True
    End If
    End Sub
    But there is a limitation of this workaround, in this workaround, the save as will only support the macro enabled type, other save as types like "xlsx" will be ignored.​
    For more information about Application.GetSaveAsFilename Method (Excel), you could turn to the link below:
    #Application.GetSaveAsFilename Method (Excel)
    https://msdn.microsoft.com/en-us/library/office/ff195734.aspx
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

Maybe you are looking for

  • Bug when getting file path in non-english Windows Vista

    Hello, I'm getting an error when trying to get the file path of a video in a non-english Windows Vista... The code is: var file = "video.flv" var filePath = air.File.applicationStorageDirectory.resolvePath(file); filePath = filePath.nativePath; The f

  • I am unable to create the Matser repository in ODI

    Hi, I am using 10.1.3.5.0 ODi and Sql server 2008. I have installed the ODI successfully , but when i am trying to create the Master repository i am not seeing the driver for 2008. I have installed Microsoft SQL Server JDBC Driver 3.0 and copy the sq

  • Time-Service Warning ID 12

    In My Windows Server 2008 R2 OS in the Event Viewer there is an error pertains as Time-Service Warning ID 12 states-(Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC em

  • Add audio files and automatically convert

    How to set up automatic conversion in MP3 128kb/s audio when I add music to itunes. The problem is that I have to constantly convert all I add. This creates a duplicate and I have to look for them and delete them. This is not very convenient

  • FNDCPASS error in R12

    Hi: I used "FNDCPASS apps/apps 0 Y system/manager USER SYSADMIN syspass to change the sysadmin password. After change I bounced all, but it says "Login failed..." when I login. We have 12.1.3 with database 11.0.1.7 and Linux. I followed metailink not