Data and plot it

Hi
I have one dream.
I want a program to plot the data I put in the table, and then I can save the table and the plot.
the attachment is a trial. it is not very good, but it tells the concept.
thanks
Cynitha 
Solved!
Go to Solution.
Attachments:
RD data to fig to file.vi ‏16 KB

well, I want my dream be fulfilled beautifully.
the table is not neat. and I don't know how to write the table and the plot
to file.
hopefully the table can be the following to put in data
x
y
Could you help me?
Thanks
Cynitha

Similar Messages

  • To read & save data from serial port (write to .csv file), and plot data as waveform

    Hi,
    I've been stuck with this problem for weeks and really need some help. I've been searching a lot but I can't find a proper solution.
    I am trying to use Labview to plot and display some parameters of a data acquisition system for a project.
    The data acquisition system is connected to a computer via serial connection through COM 1 port.
    The data acquisition system sends a serial stream of data (ASCII string with baud rate 19200), as shown below (from HyperTerminal),
    01:00:26,933.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    01:00:27,931.54,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    The serial data stream consists of a time stamp (as 1st data), followed by 16 individual channel data, separated by comma "," and each stream ending in return "\n". Each value of the data ranges from 1 to 6 digits (value of -5000 to 15000).
     I have no problem reading this values correctly using HyperTerminal, but I have problem to plot and display individual parameters of this serial string in Labview. I want to save the entire data in  a “.csv” file corresponding to all the 16 channels with time stamp and plot each individual channel parameter in a graph with time on X-axis.
    I am relatively new to Labview hope I can learn a lot from your help.
     Thank you

    Thank you Dennis.........
    Now I had modified the program incorporating1D array for gauge display.....but currently I have a new problem. The program is running updating the file, waveform graph and Gauge very slowly. Approximately once in every 15 seconds 16 data streams are getting updated in a bunch with gauge sticking to the last value rather than indicating real time value.
    eg.
    12:33:41,-3728.78,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:42,-3730.47,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:43,-3729.81,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:44,-3733.80,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:45,-3733.57,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:46,-3729.27,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:47,-3725.97,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:48,-3730.14,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:49,-3733.20,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:50,-3733.60,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:51,-3732.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:52,-3734.51,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:53,-3728.07,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:54,-3732.54,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:55,-3732.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:56,-3731.58,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    gets updated in a bunch after 15 seconds, rather than in every second. I thought the problem is with while loop but, i realised there is no delay associated with it..... Can u kindly help me in modifing the program so as it can update the waveform, file data and gauge in real time? (I have attached the modified VI file "suitcase new.vi" and the data gathered after executing the same as in "Trail.txt".)
    Thank You,
    Rahul
    Attachments:
    trail.txt ‏85 KB
    suitcase new.vi ‏44 KB

  • Read data from XML file and plot graph on Ms Words

    Hi,
    I'm using Visual Studio 2010, what I want to do is written in the title.
    so far i was able read and plot graph on a Form but i unable to use the same method on Crystal Reporting.
    The method plotting in Crystal Reporting is complicated and it require a fix data set or database which is not suitable for my case because every time the number of column and row or data will be different. (this is what i think base on what i found)
    is there a way for me to display the output on a ms words?
    and what is the method.
    thanks.

    Hi Huangcongmazhananzi,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss the VS IDE.
    I might not have the correct detailed answer you need, but I might lead you into the right direction to solve your problem.
    If this issue is related to the Windows Forum app, this forum would be better:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    But if it is related to the Crystal Reporting, you could post the issue here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0
    is there a way for me to display the output on a ms words?
    If it is related to the Office, maybe you could select the correct forum here:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    Best Regard,
    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.

  • Reading a text file and using data to plot a graph

    Dear Friends,
    I have the following problem...
    I have a text data looking like this;
    100000000
    1003ff001
    1010013ff
    1000003ff
    1023fe001
    102000000
    1023ff3ff
    1010013fd
    0ff0033fc
    0ff002001
    0fe3fd3ff
    0ff000002
    100000000
    1003ff001
    1010013ff
    1000003ff
    1023fe001
    102000000
    1023ff3ff
    1010013fd
    0ff0033fc
    0ff002001
    0fe3fd3ff
    0ff000002
    My Code should have a button , when you click that button it should ask you to choose a txt file to open this file from a specific place. The Indicators of the front panel should show me the ID , Name and Date. The data;
    100000000
    1003ff001
    1010013ff
    1000003ff
    1023fe001
    102000000
    1023ff3ff
    1010013fd
    the first 3 bits belong to X axis, the next 3 bits belong to Y and the rest 3 belongs to Z axis.  I have to convert those values to Decimal system, and plot them in a graph, 10 times a second , which means after converting and plotting 10 values , one second is over.
    I would aprriciate it very much if you could help me in this case....
    Thanks in advance.
    Message Edited by Support on 11-13-2007 01:03 PM
    Message Edited by Support on 11-13-2007 01:04 PM

    Some questions a teacher might ask:
    What's the display setting for the "\n" string diagram constant? Why?
    Is it better to read the file one line at a time or all at once?
    What would you do to be able to stop the chart display before it runs out of data?
    What would be different if we combine the two FOR loops into one?
    How would you display the header as a multiline string instead of an array of strings?
    Why is the scan format %03x instead of %3x? Would it make a difference?
    What is the purpose of the two items of the property node?
    What would you need to change to plot the data every 50ms? (change in two places!)
    Why is the error output of the property node wired to the first FOR loop? (After all, the error value is not really used anywhere there!)
    Instead of the two "array subset" operations, we could do it with one icon. Which one? (two possibilities!)
    So... be prepared!
    Message Edited by altenbach on 10-29-2007 11:31 AM
    LabVIEW Champion . Do more with less code and in less time .

  • How to measure and plot RMS value of real time data?

    hi
    i need to measure and plot real time RMS value of EMG voltage. I made a VI. But I dont know why it didn't work. Can anyone please help me out? My VI is attached  in 2013 and 2011 both version. One sample data is also attached. Thanks at advance.
    Solved!
    Go to Solution.
    Attachments:
    RMS.vi ‏47 KB
    RMS_2011.vi ‏41 KB
    Sample Data.docx ‏20 KB

    You seem to select EMG voltage vs Angle(Z-axis). Is that really what you want? More resasonable would seem e.g. EMG voltage vs. time.
    If you want to process the 3D (xyz data), you probably need to add some more math). Why are you taking the absolute value? RMS does not care about the sign anyway, right?
    They you are trying an XY graph with a single point, because your Y value is only a single number. You need an equal number of points for Y.
    Here's a quick modification that graph EMG(mV) vs. time(ms) and takes the RMS of the EMG data. See if this gives you some ideas.
    Please provide more information what you want to do with the angles.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RMS_MOD.vi ‏18 KB

  • Trouble shooting and plotting my ECG data (The VI. is included)

    Hello Everyone
    Im trying to simulate a ECG for a project. I choose the Wavelet Transform approach as I hear it would be more accurate and easier to create.
    Ive created a sample ECG signal with noise imposed on it now Im atteplting to filter out the noise and detect and plot the real ECG data.
    Ive come to realize I can't use a simple wave graph after the array function due to types of input data.
    How do I graph my data?
    Does youguys have any idea on the proper setting to get the best reading on my multiresolution analysis.vi ?
    Any Help would be GREAT thankyou
    Ive been staring at thie VI. for a long time....@_@....
    Attachments:
    ECG vi.vi ‏117 KB

    The outputs of the Wavelet Denoise Express VI and the Multiresolution Analysis Express VI are of waveform (dbl) type. When wired into a waveform graph, your information should populate within these graphs. Another route you could look at going for your application is mentioned in this discussion forum. It is a simulate ECG Signal Express VI, which I believe will give you the necessary inputs you are looking for. This might be a little easier to implement.
    David A.
    National Instruments
    Applications Engineer

  • Dynamic Creation and Plotting in CNiGraph

    Hi,
    I would like to create a temporary CNiGraph object, plot some data, and render it to an image.  I am able to create the object dynamically (I think) but I get a runtime error when trying to plot data (using ChartY) on the graph.
    The error is in the function AfxGetAmbientActCtx.
    My code for control creation looks like:
      CNiGraph niGraph;
    CRect rect(CPoint(0, 0), m_Size); // the size of the graph
    CDC *pDC = pWnd->GetDC();
    BSTR bstrLic = :ysAllocStringLen(/* stuff to generate the license */);
    niGraph.CreateControl("CWGraph", "", WS_VISIBLE, rect, pWnd,
                                  m_staticControlID++, NULL, FALSE, bstrLic);
            //use the static control ID to ensure unique IDs
    :ysFreeString(bstrLic);
    ChartPreviewData(niGraph, pList, settings);
                  // ... some untested code to render to an image follows 
     pWnd is a CPropertySheet (which is a valid window, but I am using as a dummy to temporarily hold the graph).  ChartPreviewData does this...
     void CXyzClass::ChartPreviewData(
    CNiGraph &graph, ... some other arguments....)
                    // some code to get the data ready to put in the NI vector
    CNiReal64Vector niVector(numPoints, pBuffer);
    graph.SetChartLength(numPoints);
    // Chart data and adjust delta X to reflect sampling frequency used
    CNiPlot plot = graph.Plots.Add();
    plot.MultiPlot = TRUE;
    plot.ChartY(niVector, (double) 1/pSeries->GetFs());  // crashes
    delete pBuffer;
    When I step through in the debugger, it looks like NiGraph gets created okay.  In fact, I can see it on the dialog.  However calling ChartY is giving me a runtime error.  I suspect I am missing something to do with ActiveX but I'm not sure what.
    Thanks, Nick 
    Solved!
    Go to Solution.

    Sorry, this is resolved.  I had a stupid error and was passing a zero-length vector to ChartY.
    I dicovered that way up on the call stack a exception was being thrown because of this. 

  • Read from csv file and plot particular columns

    Hello,
    I`m a new user of Labview and here it comes...my first major problem.
    Maybe this has been discussed before. I’ve made a search to solve my problem first but I couldn`t find anything helpful so I `ve decided to post a new message.
    So here is my problem:
    I`m working in a small semiconductor lab where different types of nitrides are grown using proprietary reactor. The goal is to read the collected csv files from each growth in Labview and plot the acquired data in appropriate graphs.
    I have a bunch of csv files and I have to make a Labview program to read them.
    The first part of my project I`ve decided to be displaying the csv file (growth log file) under labview (which I think works fine).
    The second one is to be able to plot particular columns from the recipe in graphs in Labview (that one actually gives me a lot of trouble):
    1. Timestamp vs Temperature /columns B and D/
    2. Timestamp vs Gas flow /columns L to S/
    3. Timestamp vs Pressure /columns E,K,T,U,V/
    I`ve got one more problem. How can I convert the Timestamp shown in csv file to human readable date in labview? This actually is a big problem, because the timestamp is my x axis and I want to know at what time a particular process took place and I also want to be able to see the converted timestamp when displaying csv file at first. I`ve read a lot about time stamping in excel and timestamp in labview but I`m still confused how to convert it in my case.
    I don`t have problems displaying csv file under Labview. My problems are with the timestamp and the graphs.
    Sorry for my awful English.  I hope you can understand my problems since English is not my mother language. 
    Please find the attached files.
    If you have any ideas or suggestions I`ll be more than happy to discuss them.
    Thank you in advance.
    Have a nice day! 
    Attachments:
    growth log.csv ‏298 KB
    Read from growth log.vi ‏33 KB

    Hello again,
    I`m having problems with converting the first column in the attached above file Growth Log.csv.
    I have a code converting xl timestamp to time and using Index Array traying to grab a particular column out of it but the attached file is written in strings so I guess I have to redo it in array but I don`t know how.Would you help me with this one?
    Attachments:
    Xl Timestamp to Time.vi ‏21 KB

  • How to connect mysql database to labview and plot the graph

    Hi all,
     I am doing my final year project about labview. I need to connect my mysql workbench database to labview and plotting two sinwave in same graph. I can already connected my labview to mysql and showing the data in labview table.But I need to plot the two sinwave in on graph according to table data. Eg: table data:      timestamp   wind speed  wind direction
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.5                 56
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.6                 60
      The attachemtn vi is about inserting file and plot the graph. And now I  want plotting the sinwave using table data and the  wind speed Y-axis,wind direction Y-axis in both side of my graph and the X-axis is showing the whole day timing like 00:00:00-24:00:00.  Can anybody combine these 2 vi to polting the graph according table data not according to file data.Thanks
    Attachments:
    Mysql.vi ‏11 KB
    Insert File.vi ‏25 KB
    Wind Project.vi ‏24 KB

    Please don't start a new thread. Stick to the original.
    http://forums.ni.com/t5/LabVIEW/How-to-plot-wavefo​rm-or-graph-using-table-database-which/td-p/294036​...

  • Import excel and plot xy graph

    Hii NI Forum Members,
    I would like to plot the XY graph  (2 vertical axes with pressure and temp and 1 horizontal axis time),in parallel the values are generated in excel sheet with 3 columns and with multiple rows.
    Hence,How can i import the excel sheet columns and rows and plot the generated excel sheet values in XY graph of LabVIEW
    Waiting for your vauable reply,
    Raj

    Why don't you use the Report Generation toolkit? It has plenty of Excel-related vis. You can import data from any of the worksheets and after garbaging the non-number data you can convert it to numbers as well (or if you do not have any string-cells, only numbers you can import it as a 2d numeric array by changing the array constant). If you do not wire any input to the report generation, it does not overwrite your data. (The excel sheet goes to template.)
    I just tried it with an xlsx file and worked fine.
    After importing the data you can manipulate it the way you want it, for example plotting it.
    Engage! using LV2012

  • Upload and plot text files

    Hi
    I would like to upload and plot as overlays several text files in labview.
    Uploading and ploting one file is not a problem but I want to load several and see them overlayed in a single plot.  Presumably I need a looping routine that uploads each file independently putting the data in an array, then plots each of the arrays to the x-y graph.  I just can't figure a way of doing it.  Can anybody help?

    Hi.
    Here is a small example (LV7.1)
    Message Edited by EVS on 09-05-2005 05:01 PM
    Jack
    Win XP
    LabVIEW 6.1, 7.0, 7.1, LabWindows/ CVI 7.1
    Let us speek Russian
    Attachments:
    Add PlotXY.vi ‏56 KB
    Clip_7.jpg ‏64 KB

  • Plotting dynamic data but plot showing previous acquired data too

    Hi, I am trying to plot a voltage-signal graph simultaneously, as it is being acquired by the computer from the SR830 lock-in amplifier. I have used a X-Y plot and placed it inside the for loop where the data is being acquired. <It only shows me the last point instead of all the points acquired earlier too. I want to retain the earlier data plot as well instead of just the last data point but want to update the graph as the data are acquired sequentially. If I put the x-y plot outside the loop. it will acquire a set of data before plotting which is not desirable in my case, as data has to be plotted dynamically. Can u guys please suggest me a way. Am I doing something wrong? thanks in advance.
    Please find the VI attached. 
    Solved!
    Go to Solution.
    Attachments:
    select voltage freq amp VISA 6.vi ‏67 KB

    Cory K wrote:
    altenbach wrote:
    The "built xy graph" express VI has a "reset?" input. Wire a true to it to reset the internal data. In your particular case do a "=0" on the iteration terminal of the inner for loop and wire it to the reset input.
    Now I'm confused. Does he want to keep the previous data or not?
    He made it sound like he is only getting 1 point in the graph, but he wants to keep all of the data in the graph
    Sorry, my message was incomplete. You need to double-click the "build xy graph" express VI and un-check "clear data on each call".  Easy enough?
    Whenever you want to start over, wire a true to the reset input to clear the history.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    xy.png ‏29 KB

  • Read and plot multiple lvm

    Can I read multile lvm files and plot them all on the same chart like I for can spreadsheet files in labview. I try to do this, but it says that I have the wrong format. The works for if I replace the read lvm express vi with a read spreadsheet function. It also works if I just read one lvm file, but not if I set the number of loop iterations to be greater than 1. I have attached my vi here.
    Attachments:
    lvm to multiplotxy.vi ‏91 KB

    Hello Timothy,
    As long as a LV Measurement File Read can read each file individually, I would combine them using merge signals vi.  This will combine all of the data from all of the files into a single signal.  You can then get your information from the signals (the columns of data).  I would also be sure to read from different LVM files by passing in an array of paths where the LVM files are.  This way, you will not be reading from the same file over and over again.
    Steven T.

  • For a few months now my ical keeps jumping back and forth.  It's very hard to use my calendar as it doesn't open on today, it may stay a few seconds and then it goes backwards to random dates and forwards.  It doesn't sit still so I can see what I have on

    My iCal is driving me nuts.
    It won't sit still when I am looking at my calender.  I try holding it still with one finger, two fingers and it just moves.  It jumps to random dates and I have no confidence in it any longer.   I use my calendar all the time and this just isn't good enough.
    I have gone into the apple store and they said they hadn't seen that before.  It did it while I was there.  They restored the phone and it didn't make any difference.
    I have turned the calendar off in settings - mail - icloud - deleted and then turned back on again.  It didn't help.
    I put the Google Calendar app on in the hopes I would have a calendar that wouldn't frustrate me and it is so slow in responding, I have deleted it.
    I see online that many others are having the same problem with their iCal. 
    It would be great to know the solution.
    Please help

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    Refer to this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538

Maybe you are looking for