How can I convert a Waveform to a String-For​mat?

Hello,
I write with "SQL-Execute.vi" datas to an Access-file. The "SQL-Execute.vi" needs a statement in String Format. And that is my problem. My source-datas (that I want to save to Access) are Waveforms. How can I convert the Waveform datas to a String Format?
Thanks for help!

Wire the waveform to the Get waveform componants function...from that you get t0, delta t and the sample values. Now you can generate whatever string you want based on that information...
You could e.g. wire the Y array to a for-loop in which you calculate the time of each sample by taking t0 and adding delta t multiplied with the array index, then you could convert the Y value and the time to strings using the seconds to time string and number to fractional string functions...etc etc...
MTO

Similar Messages

  • How can I convert an int to a string?

    Hi
    How can I convert an int to a string?
    /ad87geao

    Here is some the code:
    public class GUI
        extends Applet {
      public GUI() { 
        lastValue = 5;
        String temp = Integer.toString(lastValue);
        System.out.println(temp);
        showText(temp);
      private void showText(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            tArea2.setText(text + "\n");
    }

  • How can I convert  an ArrayList to a String[]

    Hi,
    How can I convert an ArrayList (only with strings) to a String[] ?
    I've tried this :
         public static String listToString(List l) {
              StringBuffer sb = new StringBuffer();
              Iterator iter = l.iterator();
              while (iter.hasNext()) {
                   sb.append(iter.next().toString());
                   if (iter.hasNext()) {
                        sb.append(',');
              return sb.toString();
    But what I get is an array of xxxxx@435634 (for example).
    Thanks a lot !

    Strings are Objects but not all Objects are Strings and at least one of the elements in your List is not a String.

  • How can I convert mp3 to m4b in Itunes for listen on my ipod nano???

    Please, help me if you will able. I would be glad hear any advises. How can I convert mp3 to m4b in Itunes for listen on my ipod nano 6 generation???

    sorry, my mistake
    try again here.

  • How can i convert some caracteres of a String in bold characteres?? hELPME

    How can i convert some caracteres of a String in bold caracteres?? hELPME
    I have a JList and a DefaultListModel of Strings. So, i have many key words like "proccess", "if", "fi" that i want these characteres in bold.

    How i can use HTML in java to change a String to bold?
    example
    String str = "channel ";
    str = <b>str</b>;
    like this? syntax error =/

  • How can i convert JMS TextMessage into a String

    Please tell me,How can i convert A JMS TextMessage into a String

    http://java.sun.com/javaee/5/docs/api/javax/jms/TextMessage.html#getText()

  • How can I convert/read out from a string Hex (8-bit), the bit 0 length 1

    How can I convert/read out from Hex (8-bit), the bit 0 length 1 (string subset!!??) and convert it to decimal.
    With respect to one complement and two complement ?

    Just like Jeff, purely guessing here.
    It almost sounds like you just need to Read from Binary File?
    AND the 8-bit number with 1?
    Need more details.  What exactly do you have to start with?  What exactly are you trying to get out of it?  Examples help.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I convert date infomation to a string just includes the date not th

    I just want the date like Thu 08, july 2004 but not the exact time.
    how can I do that.

    The prior code produces a date formatted as Jul 7, 2004
    To get Wed 07, July 2004, try this minor modification:
    import java.text.DateFormat;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    DateFormat format = new SimpleDateFormat("EEE dd, MMMM yyyy");
    Date mydate = new Date();
    String str = format.format(mydate);
    System.out.println(str);

  • HOW can I convert int value char TO String

    I am trying to study Java by books, but sometimes it is quite difficult to find answers even to simple questions...
    I am writing a program that analyzes a Chinese text in Unicode. What I get from the text is CHAR int value (in decimals), and now I need to find them in another text file (with RegEx). But I can't find a way how to convert an INT value of a char into a String.
    Could you help me?
    Thank you in advance.

    You are confusing matters a bit. A char is a char is a char, no matter
    how you represent it. Have a look at this:char a= 'A';
    char b= 65;Both a and b have the same value. The representation of that value
    can be 'A' or 65 or even (char)('B'-1), because the decimal representation
    of 'B' is 66. Note the funny construct (char)(...). This construct casts
    the value ... back to the char type. Java performs all non-fraction
    arithmetic using four byte integers. The cast transforms it back to
    a two byte char type.
    Strings are just concatenations of zero or more chars. the charAt(i)
    method returns you the i-th char in a string. Have a look:String s= "AB";
    char a= 'A';
    char b= (char)(a+1);
    if (a == s.charAt(0)) System.out.println("yep");
    if (b == s.charAt(1)) System.out.println("yep");This piece of code prints "yep" two times. If you want to compare two
    Strings instead, you have to do this:String s= "AB";
    char a= 'A';
    char b= 'B';
    String t= ""+a+b;
    if (s.equals(t)) System.out.println("yep");Note the 'equals' method instead of the '==' operator. Also note that
    string t was constructed using those two chars. The above was a
    shorthand of something like this:StringBuffer sb= new StringBuffer("");
    sb.append(a);
    sb.append(b);
    String t= sb.toString();This is all handled by the compiler, for now, you can simply use the '+'
    operator if you want to append a char to a string. Note that it is not
    very efficient, but it'll do for now.
    Does this get your started?
    kind regards,
    Jos

  • How can i convert if the date in string format

    String lFstr = (String) pReq.getParameter("FND");
    String lTstr = (String) pReq.getParameter("TND");
    String lLstr = (String) pReq.getParameter("LWD");
    System.out.println(lFstr + " " + lTstr + " " + lLstr);
    //DateFormat ds = DateFormat.getDateInstance();
    DateFormat dateFormatter = new SimpleDateFormat("dd/MM/yyyy");
    Date lFdate = null;
    Date lTdate = null;
    Date lLdate = null;
    try {
    lFdate = dateFormatter.parse(lFstr);
    lTdate = dateFormatter.parse(lTstr);
    lLdate = dateFormatter.parse(lLstr);
    } catch (Exception e) {
    System.out.println(lFdate+" "+lTdate+" "+lLdate);
    i am getting the values from request parameters at that time it is giving values.
    after convertion of string to date it is giving the null value what is wrong in this code

    It might have thrown an exception. Try printing the stack trace in the catch block.

  • How can I convert a tab to a String

    Hello,
    I want to read a file, and check if in some place from the text there is a tab there, in case there exist one, repmplace for <tab8> or something like that.
    I have the following.
    import java.io.*;
    import java.util.*;
    public class Expander {
      // other declarations ...
      public static void expand(String[] args) {
    //    BufferedWriter br = new BufferedReader();
        try{
          if(args[0].equals("-v")){
            System.out.println("Expander Version 1.0\nCopyright (C)");
          if(args[0].equals("-h")){
            System.out.println("");
            System.out.println("Usage: java Expander [OPTION] ... [FILE] ...");
            System.out.println("Convert tabs in each FILE to spaces, writing to standard output.");
            System.out.println("Without FILE or with FILE = -, read from standard input.");
            System.out.println("");
            System.out.println("-i    do not convert TABs after non-whitespace.");
            System.out.println("-i=N  have tabs (positive) N spaces apart, not the default 8.");
            System.out.println("-h    display this help message and exit.");
            System.out.println("-v    display version information and exit.");
          if(args[0].equals("-i")){
            BufferedReader in = new BufferedReader(new FileReader(args[1]));
            String tempLine;
            while((tempLine = in.readLine()) != null){
              String temp = check(tempLine);
              System.out.println(temp);
              writeNew(temp,"1"+args[1]);
          else
            System.err.println("Command not Accepted, please check -h for more help");
        catch(IOException e){System.out.println(e);}
        catch(NoClassDefFoundError i){System.out.println(i);System.exit(0);}
      }// closes readLoadData
      public static String check(String line){
        if ( line.equals("\t") )
          return "<TAB8>";
        else
          return line;
      public static void writeNew(String line, String args){
        String name = args+".txt";
        try
          BufferedWriter out = new BufferedWriter(new FileWriter(name, true));
          PrintWriter fw = new PrintWriter(out);
          fw.print(line);
          out.close();
        catch(IOException e)
        { System.out.println(e);}
      public static void main(String[] args) {
        Expander.expand(args);
    }any ideas?
    Tahnks =)

    Hi,
    I guess the best way is to use regular expressions (must use SDK 1.4.1 or higher):
    Add the line:
    import java.util.regex.*;
    and use one of the methods:
    //Regex method to replace all \\t by <tab>
    public String replaceTabs1(String line, String tab) {
    Matcher matcher = Pattern.compile("\t").matcher(line);
    tab = matcher.replaceAll("<tab>");
    return line;
    //Regex method to replace \\t by <tab> one by one
    public String replaceTabs2(String line) {
    Matcher matcher = Pattern.compile("\t").matcher(line);
    while(matcher.find()){
    line = matcher.replaceFirst("<tab>");
    return line;
    Or, use more general method to find and replace any string by any other string in your file
    public String replaceText(String source, String find, String replace) {
    Matcher matcher = Pattern.compile(find).matcher(source);
    source = matcher.replaceAll(replace);
    return source;
    Hope it will work,
    VM

  • How can I convert avi file to mov file for final cut pro?

    Hi
    I have source files which are captured by Canous Edious system.
    I want to edit these files on final cut pro 5.1, However, I got the audio but no image at all. Although I tired to use Discreet Cleaner 6.5 in my apple computer, it did not work. What sall I do with this problem?
    Someone told me that it should work with Cleaner, so I purchased.
    Is there any special setting for Cleaner?
    If anyone knows about this, plseae let me know.
    thanks you .
    system G5 2.3/4.5GB Final cut ST 5.1
    Discreet Cleaner 6.5

    This may assist:
    http://www.divx.com/divx/mac/?hp3macmoreinfo

  • How can I convert output data (string?) from GPIB-read to an 1D array?

    Hello all,
    I am reading a displayed waveform from my Tektronix Oscilloscope (TDS3032) via the GPIB Read VI. The format of the waveform data is: positive integer data-point representation with the most significant byte transferred first (2 bytes per data point).
    The output data of GPIB-Read looks like a string(?) where the integer numbers and a sign like the euro-currency sign are seperated by spaces e.g. #5200004C3 4 4 4 4 3C3C3........ (C represents the euro-currency sign).
    How can I convert this waveform data into a 1D/2D array of real double floatingpoint numbers (DBL) so I can handle the waveform data for data-analysis?
    It would be very nice if someone know the solution for this.
    t
    hanks

    Hi,
    First of all, I'm assuming you are using LabVIEW.
    The first you need to do is parse the string returned by the instrument. In this case you need to search for the known symbols in the string (like the euro sign) and chop the string to get the numeric strings. Here are some examples on parsing from www.ni.com:
    Keyword Search: parsing
    Once you parse the numeric strings you can use the "String/number conversion VIs" in the String pallette.
    Hope this helps.
    DiegoF.Message Edited by Molly K on 02-18-2005 11:01 PM

  • HT1399 my itunes library is stored as .aac files how can i convert them all together to mp3

    my itunes library is stored as .aac files how can i convert them all together to mp3

    Thanks for the quick response. I didn't think of that. I just tried several songs, and it DOES work as you say. Except iTunes downloaded the identical 128 kbps protected files again. These are 90's - "10,000 Maniacs" tracks.
    So does this mean Apple doesn't have my "10,000 Maniacs" high bit rate unprotected files available? Then why would anyone even buy any songs through the "iTunes" store, when Amazon sells only 256 kbps MPEG music files, at a little cheaper price than Apple?
    I'm missing something. The tracks I want to upgrade are available at Amazon in the higher bit rate format. Maybe iTunes is annoyed at me for using "Windows" on a PC and an "Android" phone?
    Thanks again.

  • How can I convert on HDF file from HWS file?

    how can I convert on HDF file from HWS file?

    Well by opening up the HWS file with HDFView, it contains the below structure.  In the axis0 properties (time axis) there is a field called increment that is the sampling rate I used (5 nanoseconds).  But I do NOT see any additional info in terms of triggering modes or delays, etc.
    wfm_group0
    axes
    axis0
    axis1
    data_vector
    data (here is our data, I verified it is correct)
    id
    traces
    trace0 (we don't care about this, I think)
    vectors
    vector0
    data (not sure what the difference is between this and axis1
    wfm_group0 (1576, 2)
        Group size = 4
        Number of attributes = 5
            major_version = 2
            minor_version = 0
            release_version = 6
            type = NI-Waveform
            writer = NI-HWS
    axis0 (7424, 2)
        Group size = 0
        Number of attributes = 5
            implicit? = 1
            increment = 5.0E-9
            numDigits = 57
            ref_time = 0
            start = 0.0

Maybe you are looking for