How can I convert a continuous waveform to a discrete waveform in Labview?

Please see the attached picture for reference, since I am not sure if I expressed myself correctly in English. My current waveform looks like the gray waveform, and I would like to convert it to the red waveform. Can anyone tell me how to do this in Labview? Thank you for your help!
Attachments:
picture.doc ‏254 KB

GerdW wrote:
Hi Laura,
next time you should attach real pictures like PNG...
You could use a combination of Quotient&Remainder with Multiply to get your desired "discrete" waveform!
Dividing and multiplying will reduce the data to the nearest multiple of 5, but the red line shows that the data is not discretised in the y domain but instead in the x domain, ie the time domain has been chopped.
To achieve this it seems you need to be selecting every nth data point, which is similar to downsampling your data. You can achieve this with the Align & Resample Express VI
http://zone.ni.com/reference/en-XX/help/371361J-01/lvexpress/align_and_resample/
Thoric (CLA, CLED, CTD and LabVIEW Champion)

Similar Messages

  • 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

  • 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

  • How can I convert my Tiger DVD into a CD without spending more money?

    How can I convert my Tiger DVD into a CD without spending more money and time? I've spent over seven hours trying to upgrade an iMac 350 Hz OS 9.1 to Tiger. I have changed the iMac firmware to 4.1.9, but found that my Panther disc was only an OSX Upgrade, although the 3 cds are labeled as Installation Discs. Since I have a Tiger disc I thought I would use that. Unfortunately, my iMac only reads CDs, not DVDs. I tried networking the iMac to my G5, but upon shutdown, the OSX disc cannot be accessed. I copied the DVD files to my iMac hard drive, but again, the OSX disc cannot be accessed after shutdown.
    Is there a way I can burn a CD from the files of my Tiger DVD to get this task accomplished?

    Excuse me, but I never thought of that, nor did I have any intention of trying to rip off your company.
    I purchased four iPods for my family this Christmas. I have six iMacs just sitting around not being used. I thought that I would turn one into an iPod work station, so everyone can use one computer to recharge and hook up to iTunes 7.
    Unfortunately, iTunes does not work very well in OS9. Apple decided not to continue to support OS9 very well. I’ve spent several hours attempting to upgrade the iMac so I could set up iTunes 7. Unfortunately, my 3 Panther Installation Discs were mislabeled, and did not allow me to install OSX over OS9. My OSX 10.2.7 Installation Disc is a DVD, and my Tiger Installation disc is a DVD. Neither usable to update the iMac.
    All I want to do is set up a dumb iMac as a network interface to my G5 because I've use all of the G5's ports for our recording studio and the iPods need external power source if they are plugged directly into the G5.
    If you could show me an easier way to run iTunes 7 on the iMac I wouldn't be as ****** off as I am at Apple for not supporting the 9 older computers I own with usable help and upgrades.

  • How can i convert .mov to .mp4?

    Hello again
    I have made a large promo dvd for an upcoming seminar and the national organization would like to put it on its website.
    I broke it down into chapters so that it is not one long cumbersome piece, and visitors can watch just the parts they need.
    On our local website, I was able to share to media and then use iweb to upload them in an album.
    However, the national webmaster uses a different web program so I need to create the chapters as self-contained movies for her to download first from our downlload site. She says that the .mov files hang up when she's downloading and wants them as mp4.
    How can I convert them?
    Thank you
    Elizabeth

    hello .... sorry it's taken me so long to return here ....
    To separate it into chapters, I brought it into Final Cut pro, and marked the In and Out for one chapter, then exported just that selection.... as an mpeg4 (Quicktime conversion) . As one chapter was finished and exported (Self-contained movie) i moved the In and Out points to the next chapter, and continued along this way.
    If you don't have Final Cut, then you should be able to do the same in iMovie: import the whole movie, then select the portion of the movie that belongs in one chapter, drag it to the timeline, edit as necessary (fades, etc) then export (Share) that chapter. Repeat for each portion of the movie you want to isolate. When you export/share, you can choose the option of size that you want it to be.
    Hope this helps and that I'm not too late for you  !!

  • How can I convert MiniDV tapes to DVD? I've use a Canon GL 2 and an iMac about 1 year old. I'm trying to use iMovie and I've installed the latest drivers.

    How can I convert MiniDV tapes to DVD? I've use a Canon GL 2 and an iMac about 1 year old. I'm trying to use iMovie and I've installed the latest drivers.

    MiniDV was a great format, one I still use often. I also still use iMovie HD6 to process it and, for all the iterations of iMovie that followed it, I still believe it was one of Apple's greatest movie software programmes, next to Final Cut Pro, using a timeline method of editing. That was also in the day which Apple put Superdrives into their computers, so that you could not only make your movie in iMovie, but you could render it to iDVD and then burn the DVD. Now you need to buy an external burner.
    Since iMovie HD6 and iDVD 6 were "universal" software, it has continued to work through the many OS releases since it came out with Tiger, I believe it was. So, it may still work with Mavericks too and, if you could locate a copy of iLife 06, probably used, you might enjoy the difference that HD6 has over all iMovie releases since then.
    Not saying you can't process your MiniDV with current iMovie versions, but I'm not the one to speak about that.

  • 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

  • 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 InputStream to a FileInputStream ???

    How can I convert an InputStream to a FileInputStream ???

    Thanks for you reply, however, I am still stuck.
    I am trying to convert my application (which runs smoothly) to a signed applet. The following is the original (application) code:
    private void loadConfig() {
    String fileName = "resources/groupconfig";
    File name = new File(fileName);
    if(name.isFile()) {
    try {
         ObjectInputStream in = new ObjectInputStream(new FileInputStream(fileName));
         pAndGConfig = (PAGroupsConfig)in.readObject();
         in.close();
         return;
    } catch(ClassNotFoundException e) {
         System.err.println("++ERROR: "+e);
    } catch(IOException e) {
         System.err.println("++ERROR: "+e);
    System.out.println("Can't find file: " + fileName);
    Because all code and resources now reside in a Jar file (for the signed applet), I must use the following line to access the resources:
    InputStream is = this.getClass().getResourceAsStream(fileName);
    I then need to convert the 'InputStream' to 'ObjectInputStream' or 'FileInputStream' so that I can work with it.
    I would be very grateful if you could help shed some light on the matter - Cobram

  • How can I convert an OVM vm (.img) to VDI (virtualbox)?

    Hi,
    how can I convert an OVM vm (.img) to VDI (virtualbox)?
    Is .img format a raw image? If yes can I use "VBoxManage convertdd" to convert from .img to vdi?
    tnx & regards,
    S.

    Hi,
    "VBoxManage convertdd" solved.
    Regards,
    S.

  • How can I convert an AUDIO MPEG-4 to an MPEG3 format? I need it for a Powerpoint Presentation

    How can I convert an AUDIO  MPEG-4 to another type of file, such as MPEG3  or mp3

    Use Handbrake.
    You can download it for free from this site:
    http://www.macupdate.com/info.php/id/12987/handbrake
    Good luck

  • I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    It's almost impossible.  The new iMacs have a Target Display Mode, but it's built to do that.  Without ripping your screen out, finding an acceptable power supply, frame, and whatever electronics to convert a Thunderbolt signal to the screen, the cost will be much larger than buying a cheaper HiDef monitor that runs with an HDMI to Thunderbolt cable to your MacBook 15.  In fact, you can sell your 17" MBP for a lot of money, unless it's broken or something, buying you a really sweet monitor.
    By the way, I found your answer by searching this forum.  I would suggest using the search function here in the futuere.

  • How can I convert an array off byte into an Object ?

    Hi folks...
    I�m developing an application that comunicates a PDA and a computer via Wi-Fi. I�m using a DataStream ( Input and Output ) to receive / send information from / to the computer. Most off the data received from him is in the byte[] type...
    How can I convert an array off byte ( byte[] ) into an Object using MIDP 2.0 / CLDC 1.1 ?
    I found on the web 2 functions that made this... but it uses a ObjectOutputStream and ObjectInputStream classes that is not provided by the J2ME plataform...
    How can I do this ?
    Waiting answers
    Rodrigo Kerkhoff

    There are no ObjectOutputStream and ObjectInputStream classes in CLDC. You must know what you are writing to and reading from the DataStream. You should write the primitives like int, String to the DataOutputstream at one end and read those in exactly the same sequence at the outher end using readInt(), readUTF() methods.

  • How can I convert a class file to Exe file

    hai
    How can I convert a class file to Exe file

    Please search the forums before asking questions - this has been answered hundreds (really!) of times.

  • How can I convert multiple files at one time and not one at a time

    How can I convert multiple files at one time and not one at a time

    Hi Plissey1950,
    Sorry for the lengthy delay to a response.  Are you trying to convert multiple files to individual PDF files at the same time? (not combine them).  If so, you'll need to use Adobe Acrobat for this function. The CreatePDF service does not have the ability to convert multiple files to multiple individual PDF files.
    Thanks,
    David

Maybe you are looking for