How to Add points on graph from a text File ?

Hello and Good Morning to all,
I have a text file with my data and i read them by using the Read From Spreadsheet File VI,i enter the path where my file is saved,read all rows delete the first row because i don't need it and my problem is that in the text folder i have specified date and time which i want to be my X axis in my Graph and Y axis to be the Vout that means i have to use a XY Graph ,below you can see my data:
Date        time              Vout  
3-9-2012 7:45:37            2,35
3-9-2012 7:45:39            2,75
3-9-2012 7:45:41            3,15
3-9-2012 7:45:43            3,50
1) Is the text file format compatible with the input of the graph command?
I do not find a LabVIEW function which convert the “date” from the text file (example:3/09/2012 07:45:37) into a compatible format for X axis for the graph.
(Conversion from string format => into a “date and time” format)
Can someone please provide a code solution for this problem?

Hi gstathatos,
                         See all the threads given below:-
                         http://forums.ni.com/t5/LabVIEW/Add-points-on-XY-graph-with-time-step-not-constant/td-p/1507066
                         http://forums.ni.com/t5/LabVIEW/Add-points-on-graph-from-a-text-File-Date-and-time-include-in/td-p/1...
                         http://forums.ni.com/t5/LabVIEW/read-double-waveform-text-file-and-and-plot-graph-in-labview/td-p/10...
Thanks as kudos only

Similar Messages

  • How do i read complete line from a text file in j2me?????

    how do i read complete line from a text file in j2me????? I wanna read file line by line not char by char..Even i tried with readUTF of datainputstream to read word by word but i got UTFDataFormatException.. Please solve my problem.. Thanks in advance..

    That is not my problem . i already read it char by char.. i am getting complete line..But this process is taking to much time..So thats why i directly wanna read complete line or word to save time..

  • SQL Loader-How to insert -ve & date values from flat text file into coloumn

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide.

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide. Try something like
    someDate    DATE 'DDMMYYYY'
    someNumber1      "TO_NUMBER ('s99999999.00')"
    someNumber2      "TO_NUMBER ('99999999.00s')"Good luck,
    Eric Kamradt

  • How can i delete a UserName  from a text file using Strings or io.

    hi i m trainee
    i have been assigned to make java program which deletes a UserName and
    his Passwor from a Text File
    i m unable to do it using the code below
    plz help
    do reply
      import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java .applet.*;
    import java.io.*;
    class Del extends JFrame  implements ActionListener
         String s2;
         JTextField CWDMUserDText = new JTextField();
         JButton CWDMSecDelButton = new JButton("DELETE");
         JLabel CWDMUserLabel = new JLabel("USER NAME");
         JPasswordField CWDMPassDText = new JPasswordField();
         JLabel CWDMPassLabel = new JLabel("PASSWORD");
         //String user,pass;
         /* CONSTRUCTOR*/
              Del()
                   Container contentPane=getContentPane();
                   contentPane.setLayout(null);
                  setLocation(400,200);
                   contentPane.add(CWDMUserDText);
                   contentPane.add(CWDMSecDelButton);
                   contentPane.add(CWDMUserLabel);
                   contentPane.add(CWDMPassDText);
                   contentPane.add(CWDMPassLabel);
                  CWDMUserLabel.setBounds(20,70,100,25);
                  CWDMPassLabel.setBounds(20,100,100,25);
                   CWDMUserDText.setBounds(150,70,100,25);
                   CWDMPassDText.setBounds(150,100,100,25);
                   CWDMSecDelButton.setBounds(80,135,100,25);
                   CWDMUserDText.addActionListener(this);
                   CWDMPassDText.addActionListener(this);
                   CWDMSecDelButton.addActionListener(this);
                   contentPane.setBackground(Color.CYAN);
                   setVisible(true);
                   setDefaultCloseOperation(EXIT_ON_CLOSE);
         public void actionPerformed(ActionEvent ae)
                  if(ae.getSource()==CWDMSecDelButton)
         //             user = CWDMUserDText.getText();
         //          pass = CWDMPassDText.getText();
         //          showarr();
                   s2 = CWDMUserDText.getText();
                   CWDMUserDText.setText("");
                   CWDMPassDText.setText("");
                   DelUser(s2);
              public static void main(String args[])
                   Del myframe1= new Del();
                   myframe1.setSize(300,200);
                   myframe1.setVisible(true);
              public void DelUser(String s)
                   //int a;
                   try
                        FileReader fr = new FileReader("file.txt");
                        BufferedReader br = new BufferedReader(fr);
                       String s1;
                       int a;
                       int len = s.length();
                       System.out.println(len);
                       //s2 = CWDMUserDText.getText();
                        while ((s1=br.readLine()) !=null)
                             if((a=s1.indexOf(s))>0 && (a=s1.indexOf(s))!=0)
                                  System.out.println(a);
                        fr.close();
                   catch(FileNotFoundException e)
                        System.out.println("exception occured");
                   catch(IOException e)
                        System.out.println("io");
         }

    Some tips:
    1) If you are adding or deleting stuff from a text file you need to write a new, modified file and then, optionally, do something like:
    rename the old file to whatever.bak or the like.
    rename the new file to the old.
    2) Don't depend on System.out so much on a GUI application. For example if you get an exception use javax.swing.JOptionPane to display an alert (and show the message from the exception). You can write the stack trace to System.out if you want.
    3) Don't muck about with calculating bounds for screen objects, let a layout manager sort it out. I like BoxLayoutManager for most things like this.
    4) For bonus points do your IO in a separate Thread. Generally you don't want anything happening in an actionPerformed method which significantly delays it's return. The method should launch a new Thread to do the job, and disable the button until the Thread finishes.

  • How can I add random mail signatures from a text file?

    I'm trying to add a different quote to every email that I write... is there a program or way for Mail to pluck and append a quote at random from a external file of quotes?  (I'm not talking about the standard "Random" feature built into Mail.)
    There must be one out there, but I can't find it.  I'm using Snow Leopard and Mail 4.5

    Hello,
    Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
    a console app.
    using System;
    using System.IO;
    using System.Linq;
    namespace ConsoleApplication1
    internal class Program
    private static void Main(string[] args)
    var result =
    from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
    .Select((line, index) => new { Line = line, Index = index })
    .Where((s) => s.Line.StartsWith("ComboBox"))
    select T
    ).ToList();
    if (result.Count > 0)
    foreach (var item in result)
    Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
    Console.ReadLine();
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions.

  • How to import data into JTable from a text file?

    thanks in advance!

    My guess is you will have to read the data in from the file, parse it, populate some vectors or something and use those vectors to instantiate the JTable. You could use FileReader to read in the data:
    FileReader in = new BufferedReader(new FileReader(file));then use StringTokenizer to parse it.
    m

  • How to read every line from a text file???

    How can i read every line from my text file ("eka.txt")
    now it only reads the first line and prints it out.
    What is wrong with this?
    import java.io.*;
    import java.util.*;
    class Testi{
         public static void main(String []args)throws IOException {
         BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
    File inputFile = new File ("eka.txt");
    FileReader fis =new FileReader(inputFile);
    BufferedReader bis = new BufferedReader(fis);
    String test=bis.readLine();
    String tmp= "";
    while((bis.readLine().trim() != null)) {
    int spacefound=0;
    int l=test.indexOf(" ");
         for(int i=0;i<test.length();i++){
         char c=test.charAt(i);
         if(c!=' ') tmp+=""+c;
         if(c==' ' && (spacefound<1) && !(tmp.equals(""))){
         tmp+=""+c;
         spacefound++;
         if(tmp.length()==l) {
         System.out.println(tmp);
         tmp="";
         spacefound=0;
         if(tmp.length()<l){
         for(int i=0;i<=(l-tmp.length());i++)
         tmp+=""+' ';
         System.out.println(tmp);

    Try this code, Hope it servers your purpose.
    import java.io.*;
    import java.util.*;
    class Testi {
         public static void main(String []args)throws IOException {
              BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
              File inputFile = new File ("Eka.txt");
              FileReader fis =new FileReader(inputFile);
              BufferedReader bis = new BufferedReader(fis);
              String test=bis.readLine();
              while(test != null) {
                   StringTokenizer st = new StringTokenizer(test," ");
                   while(st.hasMoreTokens())
                        System.out.println(st.nextToken());
                   test = bis.readLine();
    }Sudha

  • How to execute code from a text file?

    Hello all!
    How to execute some code lines from a text file? For example my file is:
    String varname = "somecontents";
    JFrame frame = new JFrame();
    frame.setVisible(true);How can I get contents of this file and parse them if I want get new JFrame and access to the variable varname?

    I mean the PHP would generate a readable Java source,
    for example some variables with some data, and I just
    dont know what to do with file if I want generate the
    xls file from my saved data, could You help? :)Some variables, some data, PHP, Java, XLS file??? Al rather vague.
    You need to explain in more detail what it is you're trying to do if you want an answer to your question!

  • Average Data from multiple text files

    I am new to labVIEW hence a little help is appreciated:
    I have a 100 txt files with two columns (tab separated) for X and Y value.
    I need to average the Y values to generate one single txt file and generate X versus Y graph.
    So how do I read the data from these text files? (without having to select each one of them individually) and how to average the data and create a XY graph from it?
    Thanks in advance
    Solved!
    Go to Solution.

    Use X-Y Graph.
    You were able to get two arrays of X and Y points from text file right?
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Reading Each String From a text File

    Hello everyone...,
    I've a doubt in File...cos am not aware of File.....Could anyone
    plz tell me how do i read each String from a text file and store those Strings in each File...For example if a file contains "Java Tchnology forums, File handling in Java"...
    The output should be like this... Each file should contains each String....i.e..., Java-File1,Technology-File2...and so on....Plz anyone help me

    The Java� Tutorials > Essential Classes: Basic I/O

  • Retrieving certain line from a text file

    Hi,
    I would like to know on how to read a specific line from a text file using NetBeans IDE 6.1? Below is the content of my text file and my code.I will appreciate if anyone can help. Thank in advance= D
    Matrix1.text
    <matrix>
    rows = 2
    cols = 2
    1 2
    2 4
    </matrix>
    I would like to retrieve the interger 1,2,2,4.
    MyCode.java
    import java.io.IOException;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    class Matrix {
    double [][] element;
    static void getFile(String fileName) throws IOException{
    int counter = 0;
    BufferedReader br = null;
    try{
    br = new BufferedReader(new FileReader(fileName));
    String line = br.readLine();
    while (line != null){
    line = br.readLine();
    System.out.println(line);
    counter ++;
    System.out.println("Total line : " + counter);
    br.close();
    }catch(FileNotFoundException ex){
    System.out.println(ex.getMessage());
    }

    Wonders wrote:
    Thank for reply=D
    Yap the row and column will change but i had already parse these lines into my code. However, i am still figuring on how to get the integer number 1,2,2,4 of the text file using while loop and not include the "</matrix>" in the reading. Can this be done?If the numbers you want are at fixed byte positions in the file that are known ahead of time, you can use java.io.RandomAccessFile to skip to those positions. However, that seems unlikely.
    If, as is the more likely case, those are not at fixed positions, you'll have to read everything preceding them. (Note that this is not a Java issue. This is how file I/O works.) You'll need to ignore the lines that are meaningless to you (read those lines and do nothing with them) figure out, by whatever rules you have--line numbers, preceding tokens, whatever--when you're at the lines you do care about, and then read and process those lines accordingly.

  • How can I plott data from a text file in the same way as a media player using the pointer slide to go back and fort in my file?

    I would like to plott data from a text file in the same way as a media player does from a video file. I’m not sure how to create the pointer slide function. The vi could look something like the attached jpg.
    Please, can some one help me?
    Martin
    Attachments:
    Plotting from a text file like a media player example.jpg ‏61 KB

    HI Martin,
    i am not realy sure what you want!?!?
    i think you want to display only a part of the values you read from XYZ
    so what you can do:
    write all the values in an array.
    the size of the array is the max. value of the slide bar
    now you can select a part of the array (e.g. values from 100 to 200) and display this with a graph
    the other option is to use the history function of the graphes
    regards
    timo

  • How to add music to iPhone from computer?

    How to add music to iPhone from computer?

    fcolonna wrote:
    I have an iPhone 5 and my iTunes doesn't look like the screen shot above at all.
    All of the screenshots above are from iTunes 11
    fcolonna wrote:
    I find it extremely frustrating to build play lists now with the new iTunes 11.01
    This has nothing to do with the OP issue. Try starting a new thread in the appropriate forum...
    iTunes for Mac: iTunes: Apple Support Communities
    iTunes for Windows: iTunes: Apple Support Communities

  • How to add pdfs n movies from my PC without creating ne library

    How to add pdfs n movies from my PC without creating ne library... Does iTune has ne converter tht can convert movie into format that iphone can play..

    That's easy, while connecting the iPod to the computer on Windows with iTunes 7.3 installed hold down the Shift + Ctrl keys. This will stop the iPod from auto-syncing with iTunes and the iPod will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. If your iPod shows up ok in iTunes you can change it to manual from there.
    http://docs.info.apple.com/article.html?path=iTunesWin/7.3/en/keycuts.html
    (it's also in iTunes > Help if you forget)
    Message was edited by: Katrina S.

  • How do I remove padlock icon from all my files?

    On one of my drives, every single file has a little padlock icon superimposed over the file icon. I recall when I did a clean install of windows 7 RC over my Vista install, I wasn't getting write access to the drive so I had to take ownership of the drive and mess with the security settings before it started working normally.
    I have to admit, I find the security settings in all versions of NT mystifying... For instance, although my account is in the administrators group, having full access to administrators never seems to work. I always have to add my individual user account and explicitly give it full access.
    In any case, I can't remember exactly what it took, but after messing around with the security settings for a while, I eventually was able to have full access to the drive and have no problems reading/writing/deleting files and folders, but there's the padlock icon still on everything.
    Can anyone explain how to get rid of it, and/or maybe point me to a good, clear, understandable guide on how to properly set NTFS permissions.
    Thanks!

    <form id="aspnetForm" action="edit" enctype="application/x-www-form-urlencoded" method="post">
    <input id="__VIEWSTATE" name="__VIEWSTATE" type="hidden" value="/wEPDwULLTEzNzk0MzkwMDlkZD6SorGRLWx4w+alHb7GRMyulXR+" />
    </form>
    Windows Client TechCenter
    <input id="SearchTextBox" class="TextBoxSearch TextBoxSearchIE7" name="SearchTextBox" type="text" /><input id="SearchButton" class="SearchButton" name="SearchButton"
    src="http://i1.social.microsoft.com/globalresources/Images/trans.gif" type="image" /> 
    Sign out
    United States (English)
    Australia (English)Brasil
    (Português)Česká republika (Čeština)Danmark
    (Dansk)Deutschland (Deutsch)España
    (Español)France (Français)Indonesia
    (Bahasa)Italia (Italiano)Magyarország
    (Magyar)România (Română)Singapore
    (English)Türkiye (Türkçe)Россия
    (Русский)ישראל (עברית)المملكة
    العربية السعودية (العربية)ไทย (ไทย)대한민국
    (한국어)中华人民共和国 (中文)台灣
    (中文)日本 (日本語)香港特別行政區
    (中文)
    ZYBORG
    Resources for IT Professionals
    HomeWindows 7Windows VistaWindows
    XPLibraryForums
    Windows Client TechCenter >
    Windows 7 IT Pro Forums
    > Windows 7 Security
    > How do I remove padlock icon from all my files?
    > a9d3326a-9af4-4d81-9f6e-0df9575b4fea
    <form action="/Forums/en/w7itprosecurity/thread/16474fcf-688b-4eae-88f4-804306bafc0f/a9d3326a-9af4-4d81-9f6e-0df9575b4fea/edit" enctype="application/x-www-form-urlencoded" method="post">
    Edit Message
    <textarea cols="100" rows="20" name="body"><blockquote> <p>Hi,</p> <p>This is a new feature of Windows 7 RC. If a folder's ownership is SYSTEM, the icon would be appears.</p> <p>To
    remove the icon, please change the ownership of the folders. You may refer the following website.</p> <p><a href="http://www.vista4beginners.com/Change-permissions-take-ownership">Change the permissions and take ownership of your
    files and folders&nbsp; Windows Vista for Beginners</a>&nbsp;</p> <p>Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft
    does not guarantee the accuracy of this third-party contact information.</p> <hr> Arthur Xie - MSFT</blockquote> <p>You may call this a feature but I call it rediculous. The security and ownership system deployed in win 7 is beyond
    belief and horribly BAD!</p> <p>I have files which have disappeared from view under start / all programs which are clearly on my system. They can be seen by an administrator only account but not by a users acccount which has administrator privs.
    That really makes great since!</p> &nbsp;Returning to Win XP looks like a good option to me. Anyone who changes the ownership of an entire drive is asking for latent problems when various areas within windows needs ownership of SYSTEM or Trustedinstaller
    and others which were overwritten with the change.</textarea>
    <label for="hasCode">Resource.HasCodeLabel</label><input name="hasCode" type="checkbox" value="true" /> <label for="reason">Reason</label><input name="reason" type="text"
    />
    <input title="Submit" type="submit" value="Submit" />
    </form>
    Need Help with Forums? (FAQ)
    © 2011 Microsoft. All rights reserved.
    Terms of Use|Trademarks|Privacy Statement|Contact
    Us
    <script type="text/javascript"></script> <script type="text/javascript"></script> <script type="text/javascript"></script> <noscript></noscript> <noscript></noscript>
    This forum even has bugs! look at this mess.

Maybe you are looking for

  • TS1702 just purchased a new HP computer and cannot open itunes....am getting an error message

    Just purchased a new HP computer and I keep getting an error message when I try to open itunes, I contacted HP and they told me to contact apple

  • Choosing jdbc driver for Oracle 9.0.1 with sdk 1.4.1?

    Hi all experts... I am really beating my head over this... I had java sdk 1.3.1 installed and i am writing an application for oracle database 9.0.1 The driver i had was a classes12.zip file that i included in the classpath to run the application. Now

  • Solaris 10 x86 - Xorg freezes

    Hi I installed Solaris 10 in a Toshiba A10. I'm using it with no problems, but if I left the computer idle (without keyboard/mouse input) for about 20 minutes, Xorg freezes (at window manager, dtlogin greeting, xlock, ... any place) Accesing the mach

  • UTILISATION FLASH PLAYER INEXISTANTE ?

    je ne peux plus jouer à mes petits jeux en ligne à partir de face book ni lire certaines vidéos en ligne car le message "vous n'avez pas installé ou mis à jour flash player", apparait systématiquement. J'ai déjà installé avec succès FP car un message

  • TreeSet/TreeMap problem

    Hi everyone! I'm trying to implement a Scheduler which insert some Deadline in a TreeSet (sorted by expiration timestamp): another Thread "read" TreeSet in order to remove Deadline expired. For this purpose my Deadline class implements Comparable int