Saving array data from a waveform chart

I am using a CRIO 9004 and a 9237 bridge module to measure some strains from strain gauges. I've got one timed loop that reads the DMA FIFO and puts the arrays of values (16 data points, 4 per channel) into a queue. In the consumer timed  loop a For loop scales the binary data, auto indexes it into arrays, then the arrays are merged into a 2D array for the four channels  displayed on a waveform chart . Everytime the consumer loop runs it indexes 4 data points (per channel) yet the waveform chart plots them in a consecutive manner and doesn't overwrite the previous four. If I convert the arrays to waveform arrays I don't see anything on the waveform chart.
If I pass the 2D array of data to a array indicator inside or outside the consumer loop I get only 16 data points. I want to save the information that appears on the waveform chart  after the consumer loop but because I'm not using waveform data type I can't use the write waveforms to file vi. The waveform chart history buffer has been set to 195360.
Idealy we will run the four channels for 120 seconds charting the data and saving the data. The minimum data rate is 1613kS/s (403 per channel) The data can be saved after the loops have finished gathering and processing or while they are running. I noticed when I tried to write to TDMS it slowed the consumer down. Same thing if I use a shift register with the volume of data.
I suspect I'm not sending data to the chart in the correct manner ( usualy takes two attempts to "clear chart" using shortcut menu).  I'm not too familiar with timed loops /producer consumer loops  and just tried to put something together based on examples.
I've attached my host vi and front panel screenshot.

Hope they appear attached this time.
Attachments:
Basic DMA (Host).vi ‏444 KB
screenshot2.jpg ‏113 KB

Similar Messages

  • How to save data from a waveform chart to a file?

    Hi! I have a question:how to save a real time data from a waveform chart? attachement is a example,how can i do to save the data from 0 second to 25 seconds to a file ?thanks!
    Attachments:
    example.vi ‏23 KB

    You can use a property node to get the chart history as a array. Then you can write that data to the file. The data in the array in you example can also be writen to a file. If you only wnat a portion of the data to be saved, use the Array Subset function to get the part you want.
    Lynn

  • Export all data from my waveform chart to excel

    Hello, my name is Chris. I am just learning to use LabView. Everything I have learned so far is through these boards. Which is a valuable tool for someone learning. The VI I am working on is to monitor current from a unit we are testing. I am able to monitor current and have it running in what I believe to be real time. As I said, this is the first one I have made. I am trying to export all the data from my Waveform Chart to a report. Everytime I try I get one instance and it measures 0. I don't know what I am doing wrong. Any help would be appreciated. Also, if you have any suggestions on the all around working of this I would appreciate that as well. Thank you in advance.
    Attachments:
    Lp Current Test.vi ‏83 KB

    Hey Christophrt,
    If you are trying to display the microseconds for a waveform chart in LabVIEW here is how you can do it:
    Go to the Chart Properties>Display Format>X-Axis>Advanced editing mode>enter:
    %<%I:%M:%S%6u>T  as the format string and you will have the hours: minutes: and seconds to the microseconds. 
    If you are trying to display the exported data in microseconds in Excel, you will probably have to do some formatting changes in Excel to have that work.
    Regards,
    Tommy G.
    Applications Engineer
    National Instruments

  • How to take the print out of the entire data from the waveform chart

    i am using cont acq to spreadsheet file.vi to acquire data from a number of channels. this vi also plots the acquired data on the waveform chart. i want to take the print out of the entire data. how can i do it ?
    also how can i take print out of the data between given interval??
    please reply me
    thank you

    There are a number of different ways of achieving your goal. Depending on which version of LabVIEW you have and which development environment, the Report Generation Toolkit is a very powerful tool. Attached is an example that prints the acquired data without the use of additional toolkits.
    Jonathan Hildyard
    Applications Engineer
    National Instruments
    Attachments:
    DAQ_with_Print.llb ‏115 KB

  • How to save X and Y vaue from a Waveform Chart

    Hello Everyone!
    I'm implementing an adquisition systems that send data to a waveform Chart through VISA. All run properly, but I would like to save the data adquired to an excel file. I saw examples to how to save it, but only save the Y value.
    I would like getting the X and Y values in 2 columns different in the excel file.
    ¿Is it possible?
    ¿Can someone tell me how I can do it?
    Thanks for your feedbacks! 
    Solved!
    Go to Solution.

    I meant uploading the actual VI, not a picture of it. You need to fix your code.
    You should not be initializing the serial port in each iteration of the loop. Initialize outside, read in the loop, and close when the loop is done.
    Why do you have 2 VISA resource controls? Are you talking to 2 different devices?
    The event structure serves no purpose in your code. If you are trying to enable/disable the file writing, use a case structure that's controlled by a simple front panel switch.
    You should "remember" the path that the Write to Spreadsheet File uses. Otherwise you will be asked for the filename each and every time you try to save. You can do this using a simple Feedback Node:
    Since you are reading the value periodically, just use one of the Get Date/Time functions. You can use the Get Date/Time String to get a formatted string. Then you can format your value as a string, and build your array using those 2 values. Or, you can use the Get Date/Time in Seconds to get a numerical value. Be aware that LabVIEW's starting time is 12:00 a.m., Friday, January 1, 1904, Universal Time [01-01-1904 00:00:00], which is different from Excel. 
    Attachments:
    Example_VI_BD.png ‏1 KB

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Saving the data from an interactive adobe form

    Hi Gurus,
    I want to know how to upload the data from an interactive form (i.e the data sent by a person via email or URL.It is in XML format)  into the SAP database.
    Thanks,
    Raj

    Hi Vaibhav,
          I have designed an the interactive form which works both online and offline.In offline scenario when i am uploading the form the data form fields which has cardinality 1:1 are being fetched but how wil i fetch the data for the node of cardinality 0:n. i have used the code :
    node = document->find_from_name( name = 'attr' ).
    attr = node->get_value( ).
    attr is the attribute name of some node named node_info.
    When i use this code it fetched only the first line of the table i.e only the first value.
    How will i fetch the values for rest of the rows.Can u please guide me on this
    will reward points for sure.
    Thanks and Regards,
    srividya.

  • Saving the data from two info path forms in to a single list in share point 2010

    Hi ,
    I have two  info path forms are in share point page FM 1 and FM 2.
    In FM 1 I am getting data from lists by using drop down and casket drop down  and FM 2 i need to enter manually after entering
    i want to save both forms information(FM 1 & FM 2 ) in to a single list of  share point 2010
     If any knows the solution please reply me  
    Thanking You,
    Arun Darly

    Hi,
    Based on your description, my understanding is that you want to save the data from two info path forms in to a single list in share point 2010.
    We can't save the data from two info path forms in to a single list, but we can
    save the data from two info path forms in to a single library.
    Open the  FM 1 and FM 2 in Infopath(you have save it Locally once).
    Publish the FM 1 and FM 2 as content types named FM 1 and FM 2.
    Add the content types FM 1 and FM 2 into a document library, Then you can save the data
    from two info path forms in to a single library.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Saving all data from a while loop

    I already asked a similar question but it might not be very clear and there were some concepts that I could not well understand.
    1. I have a key pad to generate DTMF stream signal (I call it stream because it contains multiple tones which make up of a complete phone number)
    2. I would like to save it as a wav file but I guess other format is okay and because the write to wav file does not support append so for this particular case, I use write to waveform instead of write to wav
    My approach is to have a queue structure so I can write each iteration result to a file.
    i)When I try to retrieve the data, there is nothing but 0.
    ii)my intention is to get 8000 sample per second (fs = 8,000) but it save the data so fast
    I attached the file so if there is way to solve the problems, please help me. 
    Solved!
    Go to Solution.
    Attachments:
    SignalGenerator.vi ‏52 KB

    I believe what is happening is that your producer loop is iterating even when there is no key press and sending blank or default data to the consumer and overwriting the test.wav file.  
    Easy way around this is to put an event structure in the producer that only enqueues data when there is a key press.   I can't see into the Mathscript node so I'm not sure what's going on there, but I suspect the default output (e.g all of the Booleans are false) is for zero-length arrays on f1 and f2 and this is getting enqueued and overwrites any real data that might have been in test.wav.
    It should be possible to append to a .wav.  I have attached a proposed method.  Caution that this in your consumer will take longer and longer as the file grows as it needs to read in the file every time.  
    Attachments:
    Untitled 3.vi ‏8 KB

  • Saving the data from the spool

    I have this big data dump(120,000 records) from the table mseg in the spool. I have to save that to a local file for some analysis purpose. Saving that as a local file is not giving me the full data.
    Please give me any suggestions to get the full data.
    Thanks in advance.
    Regards,
    Tony

    Looks like SAP has a limit to 10 Pages. But, this can be modified. SP01>Execute with your selection, then Menu>Goto--> Display requests > Settings> you see the option to increase the page count.
    The above change depends on memories. Hope this helps.
    -Mann

  • How do I clear the data in a waveform chart before running the vi?

    I'm sending data via TCP and I want to have the chart displaying the sent data clear itself when I start the VI. How can I do this?

    you can use the History Data property and wire an empty array to it...
    (right click the control --> Create --> Property Node --> History Data)
    Dan

  • Saving Form Data From GUI

    I have a GUI which aims to save client's details (Name, Address and Phone No) for an estate agency. There are two types of client: Buyers and Sellers and am trying to get the clients details saved into the appropriate class depending on which client type was selected on the JFrame. I have two packages:
    *uwePropertiesDomain
    *uwePropertiesUInterface
    uwePropertiesDomain contains the following classes:
    *Buyer
    *Seller
    uwePropertiesUInterface contains the following class:
    *uwePropertiesUI
    I have written the following code for the submit button on the JFrame:
    private void submitButtonActionPerformed(java.awt.event.ActionEvent evt)
        if (evt.getSource() == submitButton)
            if (((String)clientTypeBox.getSelectedItem()).equals("Buyer"))
                uwePropertiesDomain.Buyer buyer = new uwePropertiesDomain.Buyer();
                //String[] clientInfo;
                buyer.save(new String[]{nameField.getText() , addressField.getText(), phoneField.getText()});
            else
                uwePropertiesDomain.Seller seller = new uwePropertiesDomain.Seller();
                //String[] clientInfo;
                seller.save(new String[]{nameField.getText() , addressField.getText(), phoneField.getText()});
        } And the following in Buyer/Seller classes:
    String[] clientInfo;    
    public void save(String[] args)
       this.clientInfo = args;
    }This all compiles, however, where is the data saved to? How would I go about searching for a client using their name?

    In your class, define a List such as ArrayList (easier than an array--you don't need to know the number of objects ahead of time).
    List buyerList = new ArrayList();
    List sellerList = new ArrayList();Then, in submitButtonActionPerformed, say:
    uwePropertiesDomain.Buyer buyer = new uwePropertiesDomain.Buyer();
    buyer.save(new String[]{nameField.getText() , addressField.getText(), phoneField.getText()});
    buyerList.add(buyer); // ADD THISAnd similar for seller.
    You may want a Buyer constructor that takes those three values, instead of having to call "save" separately.
    Now, you'll have a list of buyers and sellers, and you can perform searches on them (look up Comparable, redefining .equals/.hashCode, Comparator, etc.).

  • Saving ResultSet Data From JTable

    Hi! I need help! I am using a JTable to display resultsets from an oracle database. I am retrieving the columns and rows from the DB and putting them into vectors. Then I return the table and display it in a JScrollpane. I have a button which searches the db table for my query and fills the JTable with the results. Now, I am trying to save that result using a JFileChooser or some form of saving method. Does anyone have any idea how I could do this? Thanks.

    The JFileChooser will only give you a dialog that asks the user for a filename, it doesn't do the saving for you.
    Your question belongs into the swing or general programming category, since the database portion is all working, but here's a hint:
    You are trying to pull the data out of the table and save it to the file. Create a FileOutputStream for the filename the user choses in the file-choser, then iterate the rows and columns of the table (or the table's model (look at the JTable.getModel() method) and write the values to the file, maybe separated by commas and each row terminated by a carriage-return/linefeed combination.
    This should give you a nice CSV file (that can be read by Excel) containing the data that is in your table.

  • How to superimpose data from two different charts into a single chart?

    I have a single chart that lists numbers by month for a two year period like this:
    Jan 100
    Feb 200
    Jan 103
    Feb 199
    The numbers are all in the same column rather than different columns.
    I'd like to creat a chart that plots the data for each year on the same X axis, so that I can see the two january numbers, the two february numbers, etc. on top of each other. But nothing I've tried seems to work. Numbers seems to always put the second january after the first december on the x axis rather than recognizing it as a new series to be superimposed on top of the original january.
    Is there some way to fix this short of putting the data into a new column?

    What your describing is a table of wht I would call raw data. I would also have a summary table that would use functions like sumif and sumifs, then make my chart off that. This table would have each month in a column and the  years across as headers. ( if you're familiar with excel, it would be the equivalent of making a pivot table and chart, but manually).
    Jason

  • How to get the data from a waveform graph?

    Hellow!
    I have a waveform graph which has the experiment signal, so how can i do to save the X,Y data in a file?
    thanks!
    Mike

    Hii,
           You can store the data as shown in the vi, just use the signal data by converting it into the numeric form and give it instead of random data.
    Hope this will help.
    Thanks,
    Nishant
    Message Edited by Nishant on 04-16-2006 11:21 PM
    Attachments:
    file write.vi ‏31 KB

Maybe you are looking for