How to cut a pieces to each saw tooth waveform?

I spent a lot of time trying to tackle this problem and hope someone can offer a useful overview.  I have attached the VI described here.

I am using an NI USB-6212 data acquisition-related Labview to create a voltage ramp, which results in a laser through its analysis.  The laser is pointed at a detector, and at the same time, I read in a signal of the detector using the same DAQ. Because the detector is illuminated by the laser, it shows the scan pad.  I would like to repeat what voltage scan and read - in indefinitely.  A large part of this system works.  I used the "RampPattern.vi" to create a sawtooth wave, which is exit with success the acquisition of data.  As expected, the entry of the sensor shows the same trend sawtooth.  However, I am having a lot of trouble dealing and displaying the digitized seesaw of the sensor, which is currently read in as a waveform.

The challenge that I can't move is manipulate or collection of the tooth of saw so that I can do two things:

(1) view the entrants saw tooth a 'tooth' at a time.  Each saw tooth represents a laser scan and I would like to see the ramp to scan incoming as a single slope, not a series of sawtooths.  Ideally, as each analysis came, he would replace the previous analysis (as in the "Graphic" Labview), while the plot would show a stationary scan that would flicker to the entrance of the last analysis.

(2) divide the entrants on each table ramp sawtooth never updated that can be followed with mathematics, stored in a file, functions etc.

I have a feeling that it wouldn't even be a back of a donkey for an experienced user, but I was hooked on it.  Could I collect the analog signal entering the detector into pieces that are the length of each ramp?  I could an event at each ramp that would split the waveform in a table?

I am open to any suggestions!  I thank you for the input and help,

Sam

Problem solved!

The solution was to wire the parameter 'number of samples per channel' in VI of reading DAQMx.  I put the 'number of samples per channel"number of points to each scan sawtooth (this is the same value as 'number of waveform samples", used to generate sawtooth in BasicFunctionGenerator.vi).

The analog playback VI DAQMx now reads a sawtooth, both.  The waveform graph shows each saw tooth, at the same time as they appear.  Also the output waveform has the appropriate dimensions (the duration of the analysis), and I can perform mathematical operations on each single sweep.

Works great! I posted the working code.

Tags: NI Software

Similar Questions

  • How to cut a piece of a cut piece (already cut mask)

    I learned to use the clipping mask and its great... but some things that I cut out and there is more inside to cut... When I use the pen tool to describe the section I want to remove, then choose the clipping again mask, it removes the part of the image that I want to keep.

    ffxdesign,

    If I (put) understand it, you can free the mask that you did, and then select the two/all paths for use Clipping Path (s) to the work and the underlying object > compound path > make, and then apply the (new) clipping mask.

  • How to cut audio tracks with tool blade?

    Hello

    I recently made the switch from fcp7 to fcpx and I'm having a real hard time! There are many things that I can't understand how to do, and it's just one of them:

    Solo Cup audio tracks with the blade tool (or another medium, if there is). Can I cut the audio clips on one side, but how I cut a piece in the middle of the clip?

    Thank you!

    YYou can't cut with the blade tool? Or select it, and press Cmd - B of type point skimmer/reading

  • How can I cut a piece of the ellipse to a photo?

    Good evening.

    How can I cut a piece of the ellipse to a photo?

    I have a picture and I would cut a piece of an ellipse of it and after that I want to save in a file photo.

    Hello

    To cut an image so that it has a form of ellipse, you must use the elliptical selection tool.

    Open Photoshop, then open your photo file. Double-click the photo layer in your layers palette to unlock the layer:

    Once you have double-clicked the layer, a dialog box will appear asking you to specify certain properties such as changing the name of the layer, opacity, etc. You can change these if you want, but for now, we will leave them in their default settings. Click 'Ok' to continue.

    Now that the layer is prepared and ready to be edited. Go to your toolbar. Find the box tool selection Rectangle, by default, that he has to have the rectangle tool set. To retrieve the elliptical selection tool, click and hold pressed down and a window with more pop tools - up will appear. Select the elliptical marquee tool.

    Now click and drag your image to an Ellipse. You will get a selection area marked by a perimeter of "mobile dash" around the selection of the Ellipse:

    If you're on a PC, click on CTRL + SHIFT + I to make a reverse selection. If you're on a Mac, click CMD + SHIFT + I. This will select the outer area of the ellipse that we come to draw with the elliptical selection tool.

    Now, click on the your keyboard delete key. This will reduce the rest of the image and the leaves you with an elliptical cut your image!

    I hope this helps! Let me know if you need more clarification!

  • How to cut the large table into pieces

    I'm trying to derive some of generic logic that would be cut into pieces of defined size a large table. The goal is to perform the update into pieces and avoid questions too small restoration. The full table on the update scan is inevitable, given that the update target each row of the table.

    The BIGTABLE has 63 million lines. The purpose of the bellow SQL to give ID all 2 million rows. So I use the rownum 'auto line numering field' and run a test to see I could. I expected the piece of fist to have 2 million rows, but in fact, it is not the case:

    Here is the +(NOTE I had many problems with quotes, so some ROWID appears without their enclosing quotes or they disappear from current output here) code +:
    select rn, mod, frow, rownum from (
        select rowid rn ,  rownum frow, mod(rownum, 2000000) mod  
      from bigtable order by rn) where mod = 0
    /
    
    SQL> /
    
    RN                        MOD       FROW     ROWNUM
    ------------------ ---------- ---------- ----------
    AAATCjAA0AAAKAVAAd          0    4000000          1
    AAATCjAA0AAAPUEAAv          0   10000000          2
    AAATCjAA0AAAbULAAx          0    6000000          3
    AAATCjAA0AAAsIeAAC          0   14000000          4
    AAATCjAA0AAAzhSAAp          0    8000000          5
    AAATCjAA0AABOtGAAa          0   26000000          6
    AAATCjAA0AABe24AAE          0   16000000          7
    AAATCjAA0AABjVgAAQ          0   30000000          8
    AAATCjAA0AABn4LAA3          0   32000000          9
    AAATCjAA0AAB3pdAAh          0   20000000         10
    AAATCjAA0AAB5dmAAT          0   22000000         11
    AAATCjAA0AACrFuAAW          0   36000000         12
    AAATCjAA6AAAXpOAAq          0    2000000         13
    AAATCjAA6AAA8CZAAO          0   18000000         14
    AAATCjAA6AABLAYAAj          0   12000000         15
    AAATCjAA6AABlwbAAg          0   52000000         16
    AAATCjAA6AACBEoAAM          0   38000000         17
    AAATCjAA6AACCYGAA1          0   24000000         18
    AAATCjAA6AACKfBABI          0   28000000         19
    AAATCjAA6AACe0cAAS          0   34000000         20
    AAATCjAA6AAFmytAAf          0   62000000         21
    AAATCjAA6AAFp+bAA6          0   60000000         22
    AAATCjAA6AAF6RAAAQ          0   44000000         23
    AAATCjAA6AAHJjDAAV          0   40000000         24
    AAATCjAA6AAIR+jAAL          0   42000000         25
    AAATCjAA6AAKomNAAE          0   48000000         26
    AAATCjAA6AALdcMAA3          0   46000000         27
    AAATCjAA9AAACuuAAl          0   50000000         28
    AAATCjAA9AABgD6AAD          0   54000000         29
    AAATCjAA9AADiA2AAC          0   56000000         30
    AAATCjAA9AAEQMPAAT          0   58000000         31
    
    31 rows selected.
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712             <-- expected around 2 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAPUEAAv ;
    
      COUNT(*)
    ----------
       1218270     <-- expected around 4 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAbULAAx ;
    
      COUNT(*)
    ----------
       2685289    <-- expected around 6 000 000
    Amzingly, this code works perfectly for small tables, but fails for large tables. Does anyone has an explanation and possibly a solution to this?

    Here's the complete SQL code that is suppposed to generate all the predicates, I need to add update statements in order to cut into pieces:
    select line  from (
       with v as (select rn, mod, rownum frank from (
           select rowid rn ,  mod(rownum, 2000000) mod
               from BIGTABLE order by rn ) where mod = 0),
          v1 as (
                  select rn , frank, lag(rn) over (order by frank) lag_rn  from v ),
          v0 as (
                  select count(*) cpt from v)
        select 1, case
                    when frank = 1 then ' and rowid  <  ''' ||  rn  || ''''
                    when frank = cpt then ' and rowid >= ''' || lag_rn ||''' and rowid < ''' ||rn || ''''
                    else ' and rowid >= ''' || lag_rn ||''' and rowid <'''||rn||''''
                 end line
    from v1, v0
    union
    select 2, case
               when frank =  cpt then   ' and rowid >= ''' || rn  || ''''
              end line
        from v1, v0 order by 1)
    /
    
     and rowid  <  AAATCjAA0AAAKAVAAd
     and rowid >= 'AAATCjAA0AAAKAVAAd' and rowid < 'AAATCjAA0AAAPUEAAv''
     and rowid >= 'AAATCjAA0AAAPUEAAv' and rowid < 'AAATCjAA0AAAbULAAx''
     and rowid >= 'AAATCjAA0AAAbULAAx' and rowid < 'AAATCjAA0AAAsIeAAC''
     and rowid >= 'AAATCjAA0AAAsIeAAC' and rowid < 'AAATCjAA0AAAzhSAAp''
     and rowid >= 'AAATCjAA0AAAzhSAAp' and rowid < 'AAATCjAA0AABOtGAAa''
     and rowid >= 'AAATCjAA0AAB3pdAAh' and rowid < 'AAATCjAA0AAB5dmAAT''
     and rowid >= 'AAATCjAA0AAB5dmAAT' and rowid < 'AAATCjAA0AACrFuAAW''
     and rowid >= 'AAATCjAA0AABOtGAAa' and rowid < 'AAATCjAA0AABe24AAE''
     and rowid >= 'AAATCjAA0AABe24AAE' and rowid < 'AAATCjAA0AABjVgAAQ''
     and rowid >= 'AAATCjAA0AABjVgAAQ' and rowid < 'AAATCjAA0AABn4LAA3''
     and rowid >= 'AAATCjAA0AABn4LAA3' and rowid < 'AAATCjAA0AAB3pdAAh''
     and rowid >= 'AAATCjAA0AACrFuAAW' and rowid < 'AAATCjAA6AAAXpOAAq''
     and rowid >= 'AAATCjAA6AAA8CZAAO' and rowid < 'AAATCjAA6AABLAYAAj''
     and rowid >= 'AAATCjAA6AAAXpOAAq' and rowid < 'AAATCjAA6AAA8CZAAO''
     and rowid >= 'AAATCjAA6AABLAYAAj' and rowid < 'AAATCjAA6AABlwbAAg''
     and rowid >= 'AAATCjAA6AABlwbAAg' and rowid < 'AAATCjAA6AACBEoAAM''
     and rowid >= 'AAATCjAA6AACBEoAAM' and rowid < 'AAATCjAA6AACCYGAA1''
     and rowid >= 'AAATCjAA6AACCYGAA1' and rowid < 'AAATCjAA6AACKfBABI''
     and rowid >= 'AAATCjAA6AACKfBABI' and rowid < 'AAATCjAA6AACe0cAAS''
     and rowid >= 'AAATCjAA6AACe0cAAS' and rowid < 'AAATCjAA6AAFmytAAf''
     and rowid >= 'AAATCjAA6AAF6RAAAQ' and rowid < 'AAATCjAA6AAHJjDAAV''
     and rowid >= 'AAATCjAA6AAFmytAAf' and rowid < 'AAATCjAA6AAFp+bAA6''
     and rowid >= 'AAATCjAA6AAFp+bAA6' and rowid < 'AAATCjAA6AAF6RAAAQ''
     and rowid >= 'AAATCjAA6AAHJjDAAV' and rowid < 'AAATCjAA6AAIR+jAAL''
     and rowid >= 'AAATCjAA6AAIR+jAAL' and rowid < 'AAATCjAA6AAKomNAAE''
     and rowid >= 'AAATCjAA6AAKomNAAE' and rowid < 'AAATCjAA6AALdcMAA3''
     and rowid >= 'AAATCjAA6AALdcMAA3' and rowid < 'AAATCjAA9AAACuuAAl''
     and rowid >= 'AAATCjAA9AAACuuAAl' and rowid < 'AAATCjAA9AABgD6AAD''
     and rowid >= 'AAATCjAA9AABgD6AAD' and rowid < 'AAATCjAA9AADiA2AAC''
     and rowid >= 'AAATCjAA9AADiA2AAC' and rowid < 'AAATCjAA9AAEQMPAAT''
     and rowid >= 'AAATCjAA9AAEQMPAAT''
    
    33 rows selected.
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  <  AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  >= 'AAATCjAA9AAEQMPAAT'' ;
    
      COUNT(*)
    ----------
       1846369
    Nice but not accurate...

    The problem is that your query implies that ROWID, and ROWNUM are classified in the same way. For small tables it is very often the case, but not for the larger tables. Oracle does not guarantee return records in the order the rowid. However usually it works this way.

    You could test ensuring that get you the rownum after you ordered. And see if it works then.

    select rn, mod, frow, rownum
    from (select rn, rownum frow, mod(rownum, 2000000) mod
            from  (select rowid rn from bigtable order by rn)
            order by rn
            )
    where mod = 0
    / 
    
  • On movie maker how to cut movie in two parts on separate disks

    movie maker how to cut film into two parts and then burn each part on a different DVD

    Hello

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - check the sounds of the addition in the left menu and others on the
    main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker help & how-to and Forums are good sources of information:

    Windows Essential - Movie Maker help
    http://Windows.Microsoft.com/en-us/Windows-Live/Essentials-Help-Center?T1=T3

    Answers - Windows Essentials - Microsoft Windows Movie Maker Forums
    http://answers.Microsoft.com/en-us/windowslive/Forum/MovieMaker?tab=threads
    ====================

    These might help:

    Getting started with Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Import video from a videotape

    Get a movie in Windows Movie Maker

    Make a movie quickly in Windows Movie Maker (AutoMovie)

    Publish a movie in Windows Movie Maker

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Cut equal pieces of audio file very long

    Hello!

    I'm looking for a way to cut equal pieces of 168 hours of audio time.


    Problem: T he National Council of Radio and television asked for a report from the last seven days broadcast. I have exported audio from shtirlitz but now I need to cut it into equal portions of 60 minutes each and give appropriate names

    Any ideas?


    Thank you!

    A .wav file is always better that a .mp3 if you can get your hands on one. But at that length, you would still have to split the audio into several .wav files to contain this amount of audio. Normally the .wav files are limited to 4 GB in size.

    So in your case .mp3 is probably better. We mp3 editors and file separators so you can divide an MP3 easily enough, but probably not in exactly 60 minutes pieces. Just search the web MP3 Splitter.

  • How to CUT a sound embedded in a layer of Timeline


    I'm developing a site web flash using ACTIONSCRIPT 3. There is a menu of small icons that, when one of them turned on, the program loads the corresponding SWF in a charger and it then presents a 'virtual' screen (a rectangular area) in the web page. The problem is that some of these child SWFs have a built-in background noise and I DON'T KNOW how to cut the main SWF when a user decides to do so by clicking on a button "mute".

    Each integrated SWF its has its own layer in the timeline and is defined as the synchronization: event, Repeat: 1.

    Any idea?

    If the sound of the timeline is a streaming sound, stop the timeline stops the sound. otherwise, there is no control (it of to say, stop some and keep others) individual sounds attached to fixtures.

  • How to cut and paste ppt slides in presentations?

    How to cut and paste ppt slides in presentations?

    File > open

    and it should do the conversion for you.

  • How to cut certain frequencies

    Hello!

    My question is, how to cut certain frequencies (sound of machine). The problem is im recording of the sounds, but have a noise in the background, who is always there, because of the machinery around the subject of the test. So I want to cut frequency of 1300-1500 Hz (in the example). How do I do that?

    I'm using labview 2010 sound & vibration toolkit. I found a few fast .vi which attenuates frequencies in example of 1000 Hz upwards or downwards, but no .vi is there that cuts between the two.

    Hello!

    You must create a bandstop filter. There are a few examples in this forum. You can also view and change this: https://decibel.ni.com/content/blogs/Simon/2010/06/16/world-cup-2010--filtering-the-annoying-vuvuzel...

    PS Sorry for the long link. Opera seems only I would like to create a link in the mail.

  • How to increase the duration of each clip in movie maker?

    How to increase the duration of each clip in movie maker?

    Windows Movie Maker or Windows LIVE Movie Maker?

    Which one?

    For Windows Live Movie Maker...

    Open WLMM > toolbar, click Edit > duration, click pointer to change the number of duration.

    For Windows Movie Maker, which I don't have (I use win 7 with WLMM)...

    Open WMM > tools > Options > advanced > default duration > duration photo...

  • How to cut a shape of the object a picture and put it in its own?

    Photo cut and save

    How to cut a headshout of one person on a phot with several people in it and then save it as it's own photo?

    You might cut back on the part you want to save as a
    new photo.

    (be aware... If the original photo is not high quality...
    your cropped section can be grainy)

    Many photo editors have the ability to crop but since
    I don't know what you have installed... I'm going to suggest
    Windows Paint... (Start / Programs / Accessories /)
    Paint) to help you get started.

    Try to open the picture in paint.

    File / open... Find and select your photo.

    In the top left panel, left click the Select button.
    (looks like a rectangle made up of points)

    Left click / drag a rectangle around the portion of the photo
    that you want to copy.

    Now, you'll see a dotted line around the selected area.

    Reach... Edition / copy.

    Reach... File / new.

    Reach... Editing / paste.

    Reach... File / save as.

    Choose a backup folder.

    Enter a name.

    Choose a format (JPEG).

    On the left, click on the "Save" button.

  • Why my photos weired research, it seems that they were cut to pieces and some of them only shoes a gray color instead the actuall piocture. Help, please

    I recovered my data from my old internal hard drive and installed a new Windows Vista on my laptop with the new HARD drive. After a clean install, I put everything back, but there seems to be a lot of problems, such as not beeing abe to open my documents Microsoft office and when I open my JPG photos, as they have been cut into pieces or there is a gray color in the photo.

    I would really appriciate if someone can help me

    I am running Windows Vista 32-bit

    Hi 1q2w3e4r,

    1. what program you use to see all the photos?

    2. this happens only with JPG images?

    3. what happens when you try to open office documents? You receive messages or error codes?

    As you have tried a reinstall of Windows Vista, you can consult the website of the manufatcurer and try to update the latest drivers for all devices.

    Update drivers: recommended links

    You can also consult the following article:

    Windows Photo Gallery: frequently asked questions

    Hope this information is useful.

  • How to select the pieces of my image in black and white?

    How to select the pieces of my image in black and white? FOW example letter J or the circle or the two together?

    jaguar_growler_blur best8.png

    It's actually pretty easy, but I have to assume that you know a few basics in Photoshop

    (1) open your existing image

    (2) double click on the layer and the 'layer style' appears. In the mix if area set the sliders so the whites in the image disappears

    You will be left with just the black elements in design

    (3) duplicate layers

    and merge them together

    to give a standard layer

    (4) ctrl or cmd click on the layer to select and create a layer mask

    (5) you now have a mask of the image. Duplicate the layer, click alt or option, click on the layer mask to call

    (6) the blacks and the whites are not completely black and white for the use of levels to adapt to the absolutes

    (7) now you have to decide what you want to select. In this case, I chose the lettering and simply covered everything else to the top with black. You do this by lasso selection and fill and items when it's delicate brush just the details with a black brush "hard." .

    (8) at this stage, you can do what you want you have a layer mask. So you can color the text for example

    or place in a background color and apply a layer as Beveling effect

    Hope that makes some sense. It is much easier to do than to describe.

  • How to cut this image?

    Hey guys, I have an image that I need to cut (remove background) and the background is almost in the same color as the hair. So the question is how I cut

    the brown background woman hair? Example: [I tried the eraser/clone stamp/magic wand but it looks like always * honestly.]

    Screen Shot 2016-06-01 at 15.57.14.png

    A great idea as always of Norman.  I was going to go in the same sense that Christoph starting by the RAW file, which would have had much more potential for a background of contrasting color, then use them in calculations.  This is something I have not started that recently aid after that see http://www.nathanjosephdodson.com/Nathaniel Dodson on Tutvid testify, so I still homing on best practices, but using green red the value Add and -40 was the best I've had.

    You would still do better starting with the RAW file.  Treat twice and the brighter version just to make the selection of the layer.

Maybe you are looking for