Sampling without interpolation?

I want sample an incoming signal at a frequency determined by the user (and this frequency must be able to change during the program). However, all the screws picks I found interpolate values between the samples. However, I would simply remove them.

The original signal crosses the DAQmx at 1500 Hz with a number of samples of 1000 Hz.

Is there a VI that will allow me to do it, or is there another method that anyone can recommend? I'm relatively new to Labview, so I might be missing something obvious, but I was not able to find what I need through my research.

In this case, can keep you your sampling rate constant, then just read each sample x'th of the returned array?

For example, samples of your material to 1500 Hz, you want data to 500 Hz (replaceable by the user) If you take all 1500/500 = 3rd sample of the returned data.

Although not necessarily highly effective, for prices that we've talked about here, you could easily do this by using a loop for and rebuild a sous-echantillonnees table that is similar to the code snippet below.

Note that if you do not allow the interpolation and you are both interested, this can work for you, or it may not. The method of the loop for allows you to tweak it to do what you need, even if you want to change the number to a string etc.

The built-in function is probably much more effective, but I don't know if you need a package of special tools or not for her.

The two are shown in the excerpt.

Tags: NI Software

Similar Questions

  • Is it possible to export with a different framerate without interpolation?

    I wonder if it's possible in the first to export, for example, a chronology of 25 fps to 23.976, without interpolation file managers?  I know this would result in audio desync and would change the length of the film - in my case, this is irrelevant.

    I can currently do this first exporting the timeline to 25 fps, re - import the movie into AE or PR, interpret footage to 23.976 and re-export.

    I wonder if it is possible to do so without transcoding the video twice.

    Thank you!

    I'm not sure you can do it right, am I right in thinking that you want to export all images, but you want to export, resulting to be "tagged" with a different cadence? I think that the way in which you may be the only way, unless you can change the header of exported file somehow.

  • Convert unequal sampled data dynamic XY data for use in other subVIs of signal processing

    Hello everyone. I wonder about this and have searched some topics of discussion, but all seem to point to do so, to re - sample the signal with the dt as low as possible. However, for me, I got the data using another instrument and its treatment and analysis using LabVIEW. Are there sub-VI/methods that can be used to convert a given without having to re - sampled or interpolated, XY train that is to maintain the measured signal and convert the pair in a dynamic type?

    Thank you

    If it is unevenly sampled he cannot be given dynamics.  Of course, you can keep a copy of the original data for later comparison, but you must resample or interpolation in a way to make any type of treatment that requires uniformly sampled data.

    Lynn

  • How to increase the sampling rate in this VI?

    Hi all

    I have recently inherited this mess of a VI and can not figure out how to increase the sampling rate. I tried to change the "ms of waiting ' clock, but it does not add more data points." The main VI, as well as the Subvi, which contains a Daq Assistant to a load cell and LVDT is attached. Any ideas on how to improve the sampling without a complete overhaul would be greatly appreciated!

    Thanks in advance!

    If you are grateful, feel free to give congratulations and mark the topic as resolved.

  • Read 1 k samples of 2 bytes each FPGA by UART

    Hello

    I'm designing a system composed of a board FPGA based (NEXYS4 DDR) which read high speed ADC via the parallel interface. Now, I programmed the FPGA for 1000 samples and send it to a LabVIEW GUI questioned by GUI via UART. Each content sample data 2 bytes so the finals will be 2000 bytes on UART.
    At the moment I have not a syntax of separation between samples (to each 2 bytes), do I need? Then when I hit the LabVIEW acquisition he will show me the samples without separation between them.
    How is the best way of? To make a separation in the FPGA firmware to each transmission of the sample, or to work with data in LabVIEW and do a syntax with a stacked sequence which will allow me to read 2 bytes and increment an index that will allow me to go to the next 2 bytes.

    I hope that I was clear where I have my doubts.
    In this message, you will find a screenshot that show you how the data looks like when I receive the FPGA. In this screen printing indicator are defined to display the codes and hex display display and 028F is the value of the sample.

    Thank you in advance,

    Vlad

    Looks like you are doing things correctly.  Just use Unflatten string to convert to a table of U16.  I recommend using the Unflatten of string so that you can choose the endianness if necessary.

  • How to abort Continuous Acquisition (which is set to acquire a constant number of samples per channel each iteration)?

    Hi all

    I would like to continuously acquire an input channel analog and, if necessary, be able to stop the acquisition as quickly as possible.

    I use a card NI USB-6289. I implemented a DAQmx (voltage) analog input task, set the clock sampling DAQmx 'continuous samples' and the rate required (IE 1000, which is 1 kHz). For the acquisition, I used a while loop with inside the DAQmx Read with Terminal 'number of samples per channel', wired (IE 1000). The while loop waits until 1000 samples are acquired and therefore continuously reads the channel in uniform batches of 1000 samples every second ticking. The while loop can be easily interrupted when the DAQmx has completed the acquisition of the lot being 1000 samples, but it takes the DAQmx finish their current task.

    My problem is how to stop the loop while the DAQmx Read lies in the middle to get 1000 samples WITHOUT delay all 1000 samples are received? Is it possible to interrupt the DAQmx Read?

    I could reduce "the number of samples per second", increasing the responsiveness of the while loop, but this is not the solution I prefer. I tried to destroy the task (outside the while loop), but that does not stop immediately the acquisition, Read DAQmx still finish acquire 1000 samples. I've included an example Subvi. When I was using a PCI card, I used a timed while loop with inside the DAQmx Read with Terminal 'number of samples per channel' wired-1 (= which means ' read everything in the buffer "). In this case, it was easy to stop the acquisition at any time: the timed, while the loop is abandoned and the acquisition has ceased immediately. But it does not work with an NI USB-6289 map (see thread http://forums.ni.com/ni/board/message?board.id=170&message.id=386509&query.id=438879#M386509) because of the different way the data are transferred to the PC.

    Thank you very much for your help!

    Have a great day,

    LucaQ

    Hi LucaQ,

    Your solutions are decrease of the number of samples, or record the time you want to stop and remove samples that have been acquired beyond this time. There is no other way to stop the actual reading out of the hardware store.

    Flash

  • link a GPO to a mask that is interpolated

    Hello

    I have a mask that is interpolated by programming and then I have an object - a line to the penalty of the mask I want to spend with the mask as if they were bound together. Is it possible to do without interpolation line separately as well? I want to give the line some properties so that he knows that he must always copy the movement of the mask.

    This is my code:

    myTween1 = new Tween (mask1(old), "x", null, mask1.x, mask1x, TWEEN_TIME, true);

    new Tween (line1, "x", null, line1.x, line1x, TWEEN_TIME, true);

    And I want to get rid of the second line because sometimes the mask and the line do not have the same movement and I can't understand why. The interpolation is performed after MouseEvent.ROLL_OVER.

    Thanks for the reply.

    See you soon

    You can use the change event of movement on the line of control. Maybe something like this:

    myTween1 = new Tween (mask1(old), "x", null, mask1.x, mask1x, TWEEN_TIME, true);

    myTween1.addEventListener (TweenEvent.MOTION_CHANGE, moveX);

    function moveX(event:TweenEvent):void {}

    LINE1.x = mask1.x;

    }

  • MessageBroker null in the LCDs samples?

    Forgive me, but I'm having issues, obtain samples of LCDs to run under Tomcat 6.0.  I sent all the war 3 files included in the download (ds - console.war and lcds.war, LCDs - samples.war) and none of the examples applications seem to work.  It seems that the result of the call to MessageBroker.getMessageBroker (null); is always set to null, causing null pointer exceptions.  I was able to install and run the BlazeDS samples without error.  Is there something special I need to do to get the LCD screens running those?

    Hi Steve,.

    Look at some of the errors it seems that you lack jta.jar. Can you put the logs in a ftp location that I can access?

    I suggest you first try to use the turnkey Tomcat installation that comes with the installation of screens LCD and see if it work. If Yes, then I suggest that you copy the missing jars in your distribution of tomcat. The pots are part of your webapp as well as those that are part of the tomcat lib directory.

    Hope that helps.

    Rohit

    Hi Rohit - I've never had this problem is resolved.  Above all, I wanted to run the samples so I could have an example of a job for the tests, I was put in place through our WebLogic Portal.  Since you kindly helped me solve, I had basically given up on samples.

    I use a previously installed instance of Tomcat v6.  I downloaded the samples and deploy the lcds.war and LCDs - samples.war, ds - console.war into my existing installation archives.  I did the same thing with the BlazeDS samples and they worked fine, but not LCDs that don't work.  If it's an easy fix, I would still get the working samples because we also hope to be able to use the screens LCD data management services, and I need to understand the functioning of those.

    I have a zip of the newspapers in my last attempt, but I do not see that attach to this message.  Your idea of source of data is a good thing, because many of the exceptions seem to be associated with Hibernate.

    8 sep, 2010 14:10:25 org.hibernate.cfg.SettingsFactory buildSettings
    WARNING: Could not get the connection metadata
    java.sql.SQLException: socket creation error

    at org.hsqldb.jdbc.Util.sqlException (unknown Source)
    to org.hsqldb.jdbc.jdbcConnection. (Unknown source)

    I also see this one:

    GRAVE: / Lcds-samples Servlet threw load() exception
    java.lang.ClassNotFoundException: javax.transaction.Synchronization
    at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoa der.java:1645)

    If you can tell me how to attach files to this message via the web client, I'll send you all the newspapers.

    Hi Steve,.

    Have you managed to solve the following problem (see below)? If so, what was the problem.

    If this is not the case, this can be due to:

    (a) the data source is not configured correctly. If you can send the complete Tomcat console trace, I might be able to help.

    (b) I have observed in addition, you use a different port than what we set up in Tomcat embedded (8400). You use your own Tomcat or that comes with LCDs?

    Rohit

  • 30% zoom out fuzzy

    Hello

    When I zoom on my workspace, of from 30% of the image, for it becomes blurry. I had no such problem on Paint Shop Pro... Maybe there is a save option of performance preventing adaptation of the pixels but I did not find. Can someone help me? Thanks in advance!


    Hello, when I Zoom out on my workspace, 30% of the image becomes blurry. I did not have this problem on Paint Shop Pro... There may be a performance option to stop the adaptation of economic pixels but I have not found. Can someone help me? Thanks in advance!

    Yes, it's a mystery:

    Zoom to 25%, this means: use each on pixel: 0 1 2 3 4 5 6 7 8 looks sharp

    33% zoom, this means: use every third pixel: 0 1 2 3 4 5 6 7 8 looks blurry

    Zoom 50%, this means: use every pixel dry. : 0 1 2 3 4 5 6 7 8 looks sharp

    Photoshop uses in the preview the closest neighbour, which here means exactly

    What has been explained above: the closest neighbor is a already existing

    Pixels without interpolation.

    33% (33.33% exactly) zoom is blurred, while 25% and 50% are crispy, in

    limits expected, but I couldn't find an explanation, so far (although knowing

    sampling theory).

    There is no doubt that 30% (instead of 33.33%) zoom should blurs.

    Cordially - Gernot Hoffmann

  • Failure to print black on C309a

    I have a Premium Photosmart C309a multifunction printer that does not print black ink.  I replaced the cartridge with the new HP cartridges twice without success.  I cleaned the heads, checked to clog ports to purchase and print samples without result.  Can someone help me diagnose the problem to resolution?

    If the steps of troubleshooting in this document has not resolved the problem (and it seems you already have these) can help post it here.

  • Error of underflow of Rio

    I get error 5001 Underflow CRIO Module. This error occurs if the code post processing on the FPGA VI can not run in a vesting period.

    Post-processing, what exactly? It just means that the overall run time on the target is too slow because it has too much to do?

    I tried to reduce the frequency of sampling without result.

    Thank you

    Hi tomnz,

    Underflow normally means that you put not enough data in the FIFO and host-side the FIFO is read. Try to do a timing loop in your FPGA data acquisition earrings to see how fast you are buying data and load into the FIFO. On the side of the host, also monitor the timeout on your FIFO read to see if there is delay.

    Hope that helps!

  • autothreshold value

    Hello.

    Currently, I do a treatment of the image using IMAQ Vision (LabVIEW 2010) in order to inspect corrosion in the pipeline.

    I have successfully detect the corroded area using IMAQ AutoBThreshold 2. Can I know where I can find the exact value of the threshold used in the function?

    In my report, I need to declare the value of threshold to enhance my result.

    Thank you.

    Hello

    You can determine the values of threshold with 'Threshold range Out' using "IMAQ AutoBThreshold 2 VI.

    Please see the attached code - the 'Threshold range Out' output is used for the manual thresholding and it produces the same results.

    If you run the sample without change, the values of the regions of 88-255 white goods (1 or 255 in this case) and 0-87 black areas (0). Your threshold value is, in this case 88 (88 VAT included).

    I hope this helps.

    Best regards

  • Recording of signals DAQ

    Hi all

    I am a new user of Labview.

    I would like to know if it is possible to build a simple VI to record a signal at a rate of sample, without specifying the number of samples to acquire priori. In other words, I would create a program that records a signal for an indefinite period, between the time wherever I start it and when I manually stop the acquisition. To stop the acquisition, I would use a stop button (maybe put everything in a whil loop?)

    Could you please tell me if there is an easy way to do it with the DAQ assistant? or I have to convert and set the Subvi to achieve?

    Thank you, I tried to watch if someone already posted this question, but I didn t find.

    Good bye

    Emanuele


  • Configure the second channel of TDS 2012 scope

    Howdy,

    Our laboratory has recently acquired a range of Tektronix TDS2012 dual channel and I'm getting so he can play nice with Labview 8.5. I downloaded the plug-and-play drivers and the accompanying screw sample without problem. I connected the scope via a GPIB-USB-HS adapter. PC running Win2k.

    The screws of the sample and some of my creations seem to be great with the exception of a question to work. I can't for the life of me get the vertical scale on the second channel to do what I want. When I use "Example VI" of the driver and set the Volts/Div to anything for a reading of CH2, changes the CH1 setting (?), it does indeed read CH2. I can't find where I could adjust the parameters of CH2 regardless... the vi "Set up display" seems to be independent channel.

    Any thoughts?

    Kind regards

    Matt Pausley

    North Carolina State University

    Hi Matt,

    I just downloaded the Tektronix TDS 200 1000 2000 project series Style Driver of instruments here, and there is no screws with the word "vertical" in them.  To make sure that you use the style of the project pilot, go to C:\Program NIUninstaller Instruments\LabVIEW 8.5\instr.lib\Tektronix TDS 200 1000 2000 series and confirm that there is a file of Tektronix TDS 200 1000 2000 Series.lvproj it and that the screws are in folders, not a Bachelor's degree in law.  The VI that you will use to configure the vertical range is Set up Channel.VI.  Pay close attention to the VI and control documentation.

    See you soon,.

    NathanT

  • graph of Nyquist

    Hey everybody,

    How can I make it more clearly the Nyquist diagram?

    On my graphic program connects all points. I wish I had a nice circle.

    If anyone knew?

    Marek

    Hello

    Click on this trace near the plot 0 on the top right of the graph and choose the Interpolation, then choose an option without interpolation.

    You can also configure many other options of your track it.

    Hope this helps,

    Paulo

Maybe you are looking for

  • Network accounts are not available

    Hello I work in a corporate environment that is mainly based on Windows, but also have a handful of Macs and a Mac server. The question I have is that the MacBook display the prompt "network accounts are not available" when connecting. This message d

  • Download Google Apps Sync

    Ideas: I need KB939786 allow downloading Google Apps Sync It is not available here, http://support.microsoft.com/kb/939786 The recommendation must obtain from the customer. I run XP Pro Please will you send it me.

  • How to recover email deleted in Windows Mail?

    I have windows vista with windows mail & want outlook express to come back!  I know that this is not possible then where in the world should I click to retrieve an e-mail that I accidentally deleted.  Outlook Express has been so simple because it dis

  • How to install games on extended hard drive

    Original title: Ive bought a large hard drive and would like to know how to install my games purchased on the internet, but also my collection of dvd on my hard drive. Its connected properly approved system it Help please try to install my games on h

  • IPS mode vlan inline and VLAN 1

    I am installing a 4255 IPS in pair mode for the vlan inline, but I encountered a problem. The thing is that we have a network with multiple VLANs. Some of the servers as well as some users are connected to VLAN 1. The servers are connected to a separ