I want to re - sample a signal and for the interpolation values remain the same until the next sample...

See this image for clarification of what I mean:

http://www.Google.com/imgres?q=sample+and+hold&hl=en&BIW=1680&BiH=867&TBM=isch&tbnid=Gj4_SyS84aLhaM:...

You can also check this example https://decibel.ni.com/content/docs/DOC-10182 and http://zone.ni.com/devzone/cda/epd/p/id/5874

Tags: NI Software

Similar Questions

  • Align the two signals and measure the Phase Shift

    Hello

    I do an experiment in which I use the NI USB-6221 DAQ card. The jury is able to make 250 k samples/second. I want to measure two voltages in a circuit and find the phase shift between them at frequencies between 1 and 10000. First I ouputted a wave sinusoidal frequency variable through the Commission and applied to a test circuit. Then I used the Board to measure the two tensions consecutively (thus reducing the maximum sampling frequency at 125 k). I used the signals align VI and measured the two phases and then calculates the phase shift (VI attached in Phase 1). It worked well for the test circuit I built in which the phase shift went way logarithmique.20 degrees ~84.5 degrees and then stabilized. At frequencies above 5 000 Hz phase shift must have remained constant, but it varies more or less 1 degree. When the phase shift is 84.5 degrees, present a degree of variability is not particularly explicit. When I asked my program on the circuit that I really wanted to measure, the phase shift went from-. 5 degrees up to about 1.2 degrees. The change in the values of phase shift at high frequencies (> 3000) was environ.2 degrees. Given the small phase shift, this variation is unacceptable. Now I tried to use a sequence to each blood individually (increase the maximum sampling frequency to 250 k) and then align the two signals and measure the phase of each shift. When I use align it and re - sample Express VI to realign the two signals, I get the message "error 20333 analysis: cannot align two waveforms with dt even if their samples are not clocked in phase." Is it possible to align two signals I describe here? I enclose the new VI as Phase 2

    Matthew,

    I think I have an idea for at least part of the problem.

    I took your program data and deleted stuff DAQ.  I have converted the Signal on the chart control and looked then what was going on with the signal analysis.

    The output of the Waveforms.vi line has two waveforms, like the entry.  However, arrays of Y in the two waveforms are empty!  It does not generate an error. After some head scratching, reading the help files and try things out, that's what I think is happening: the time t0 two input signals are 1,031 seconds apart. Since the wavefoms contains 1,000 seconds of data, there is no overlap and may not align them.

    I changed the t0 on two waveforms are the same, and it lines up.  The number of items in the tables is reduced by one. Then I increased the t0 of 0.1 seconds on the first element. The output had both greater than the entry by dt t0 t0 and the size of the arrays was 224998.  Reversing the t0 two elements shifts the phase in the opposite direction.

    What that tells me, is that you can not reliably align two waveforms which do not overlap.

    I suggest that you go to 2-channel data acquisition and that it accept the reduced sample rate.  You won't get the resolution you want, but you should be able to tell if something important happens.

    You may be able to improve the equivalent resolution by taking multiple steps with a slight phase shift. This is similar to the way that old oscilloscopes of sampling (analog) worked. Take a series of measures with the signal you are currently using.  The make enough average to minimize changes due to noise. Then pass the phase of the signal of excitement to an amount that is smaller than the resolution of phase of sampling rate and repeat the measurements.  Recall that I calculated that for a 5 kHz signal sampled at 125kHz, you get a sample every 14.4 degrees. If shift you the phase of 1 degree (to the point/mathematical simulation), you get a different set of samples for excitement.  They are always separated by 14.4 degrees.  Take another series of measures. Transfer phase another degree and repeat.  As long as your sampling clocks are stable enough so that frequency does not drift significantly (and it shouldn't with your equipment), you should be able to get near resolution of what you need.  The trade-off is that you need to perform more measurements and may need to keep track of the phase shifts between the various measures.

    Lynn

  • I broke my screen, and now cannot drag to open it.  I have an alarm that don't go.  I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    I broke my screen, and now cannot drag to open it.  I have an alarm that don't go. I can let the battery die I know but I really want to be able to access and examine what are the texts I received today. I think that my ICloud is can be disabled. I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    Without entering your access code, it is not possible, unless your time is in iCloud. If this is the case, connect to iCloud.com to check your calendar.

    Good luck.

  • I want to play a full album, but no matter the song of the witch I start on after it is made to play this song it jumps to the next album (by the artist). and then the next album, I want to hear played very well. Shuffle seems to be disabled. Ignore durin

    I want to play a full album, but no matter the song of the witch I start on after it is made to play this song it jumps to the next album (by the artist). and then the next album, I want to hear played very well. Shuffle seems to be disabled. Jump then dragging seems to be disabled. Not only this one album. It seems to do that. Thanks for your help. -Nick

    Select all the tracks in the album. -Click right/option. Click check selection on the shortcut menu.

    TT2

  • Want to access a SOAP service and display the data in the external list

    Hello

    I could see a WCF Service via the type of external content successfully. Now I want to access a SOAP Service and display the data in an external list in Sharepoint 2010. I am able to create a data source with success with the SOAP service, but how to display the data in the external list as external list uses only as data sources for external content types.

    Also with WCF as external content type, it is only on WCF services or any kind of web services can be added as an external content type.

    Any help would be appreciated.

    Thanks in advance

    Hello sunny198218,

    The question you have posted is related to Windows Communication Foundation Service and would be better suited in the MSDN forum for category Windows Communication Foundation. I've included a link to the forum where you can ask your question.
    http://social.msdn.Microsoft.com/forums/en-us/WCF/threads

    Sincerely,

    Marilyn

  • I want to buy a desktop computer and sell the laptop without windows vista software. Is there a way I can install windows vista in my new office.

    Model F730 laptop and notebook product S/n CNF7415WH7

    I bought a laptop (compaq F30 us in the United States) and windows original vista came with the compaq laptop (bought in US). Now, I want to buy a desktop computer and sell the laptop without windows vista software. Is there a way I can install windows vista in my new office. I don't have the cd or the software with me key since they have not provided for me at the time of purchase

    Hello

    No there is no way, how the do, because the license of Windows Vista is part of the computer compaq laptop - this is the license OEM - and cannot be separated.

    (in case the laptop is broken and cannot be repaired, then the license expiresand cannot be used on another computer)

    LC

  • I would like to have the best possible experience for the games on my laptop and I want to download everything that is necessary for the performance of the games.

    I bought a new laptop which has Windows 8. I heard that Windows 8 is new, it only is not automatically provided some 'things' - forgive me for my lack of knowledge in technology. I intend to play games on my new laptop, but according to my knowledge, Windows 8 does not support things like Visual C++ and Directx 9. I am very uncertain about this subject, however. If anyone understands this as am I mean, can you please correct and/or explain more on this topic? I would like to have the best possible experience for the games on my laptop and I want to download everything that is necessary for the performance of the games.

    Original title: what's missing in Windows 8?

    Jack

    We were all new at one point, so don't worry what you know.  Win 8 is compatible with all previous OS.  It supports C++, and depends on your video card supports DIrectX 9, 10 and 11.

    The only thing that doesn't come with win 8 (and since you bought it, it may already be installed) is windows media player.

    What exactly are you trying to do, or can you give us more information for we can help you better?

  • How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    Hi johanb64152807,

    You can use eSign service, where you can send the document for signatures of several signatories, but the document will be sent to the following signatory after the earlier signed & it is not possible for him to make the changes.

    Documents KB for help: -.

    Kind regards
    Nicos

  • Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi Eli Marto,

    I'm sorry, but it is not possible to extract text from a PDF file using the player.

    It can be done using Adobe Acrobat.

    Ref: export the comments AND highlighted text?

    Kind regards

    Ana Maria

  • Is there a list of graphics cards that work perfectly with all the new features of Creative Cloud? I want to update my graphics system and want a model that will be obsolete when the next CC updates the roll autour.

    Is there a list of graphics cards that work perfectly with all the new features of Creative Cloud? I want to update my graphics system and want a model that will be obsolete when the next CC updates the roll autour.

    The "General" cloud requirements are quite low... so you have to ask in the forums of specific program for a special features used by individual programs

    For video editing Premiere Pro, go read it in community: Forum Hardware | Adobe Community

  • I am entitled to an upgrade, as I have CS3 I want to buy a new mac and install the upgrade on the new computer. How can I do this?

    I am entitled to an upgrade, as I have CS3 I want to buy a new mac and install the upgrade on the new computer. How can I do this?

    If you get two new machines and the CS3 allows you to get the price reduced for a year then you should certainly pursue it.  However, I always recommend people to try before you buy.  When you get the new machines install the trial version and make sure that it works for you correctly.  Once you have confirmed it correct functions, then you can purchase the subscription.

  • Want Firefox to save your tabs for the next time it starts?

    FF 27.0.1 on Linux Mint XFCE 16, up to date.

    I have my preferences set to "show my home page".

    Whenever I close FF with the X in the upper left corner, he gets up and asks me "do you want Firefox to save your tabs for the next time it starts? I check the box to ask next time and have tried both save and exit and just left. When I open the browser again, it seems to randomly decide to open all the tabs I had last time, or sometimes (rarely) just my home page tabs.

    I don't want to open all the tabs I had open, and I don't want the question whenever I have leave FF. I used FF for years with XP, but I am new to Mint.

    Done setting the prefs 'warnon' on the topic: config false page has an effect any?

    • browser.tabs.warnOnClose
    • browser.tabs.warnOnCloseOtherTabs
    • browser.warnOnQuit

    Make sure that you run not Firefox mode full screen (press F11 or Fn + F11 to toggle; Mac: Command + SHIFT + F).

    If you are in full screen view then hover over with the mouse to the top of the screen to facilitate the bar appear Navigation and tab bar.
    Click the expand (in the top right Navigation bar) to exit full screen or right-click on a space empty on a toolbar and select "exit full screen" or press the F11 key.

  • I was typing an email that has been of about 200 words I hit the space bar and grabbed the next word and looked up the eyes and my email everything was gone.

    I'm at my wits end, HELP ME! I was typing an email that has been of about 200 words I hit the space bar and grabbed the next word and looked up the eyes and my email everything was gone! This happened to me several times and I can't ever find anywhere. It just disappears. Can someone help me? I want to know why he spends, how I can solve this problem how can I recover my work and where it went! I blame my laptop or windows or the manufacturer?

    I wrote a full description of my problem, but of course it also disappeared. I type 2-300 words and pooofff they disappear I can't explain it better or go on any more because I just it loose once AGAIN all! I tried to explain in more detail a related problem, but of course he gone too so I send this before I lose too.
    original title: email disappears

    The text turns blue, because you mentioned it.  The most plausible explanation to highlight all of the text while typing is due to hit CTRL-A, which is the same as Edit | Select all.  Then when you type a character when this text is highlighted, then highlighted (blue) text is replaced by the character you typed.  Be very careful to not press the CTRL key instead of the SHIFT key when you type a capital letter A or else which will never happen.

    If your cursor jumps around then also scan your system against viruses and malware.

    Steve

  • How can I change password to get into my computer? I am now in my computer, but want to change for the next time I open it.

    How can I change password to get into my computer?  I am now in my computer, but want to change for the next time I open it.  Thank you.

    Click Start, click your account at the top right picture, click on 'change your password '. You must then enter the old password and a new.

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

Maybe you are looking for