The sample rate in my code is too low. Is there a way to make it run faster?

Dear Sir,
    I am a LabVIEW customer, and just have a question about LabVIEW.
    We are running a code of "Wirebonder Project", but find the sample rate is too low. I'm wondering if there is a way to make it run faster. (I have
attached the code here.)
    Thank you very much!
Yours Sincerely,
Xian Zhang
Attachments:
Wirebonder_Project_Code.zip ‏169 KB

Hi Xian,
What system are you running this code on and are you using the LabVIEW Real-Time Module? There is a presentation online on Optimizing and Benchmarking Real-Time code with useful related links as well as other articles in the DevZone on things like Benchmarking an Application Using LabVIW Real-Time and DAQmx.
As you can see, this is not a simple question, so take a look at the information in these links and see if you can narrow down what in your code is running slowly and how much you might be able to improve the speed.
Regards,Stephen S.
National Instruments
Applications Engineering

Similar Messages

  • I updated to iOS.5 and all of my gamecenter friends and stats are gone.  The gamecenter games have been wiped clean too.  Is there any way to restore?

    I updated to iOS.5 and all of my gamecenter friends and stats are gone.  The gamecenter games have been wiped clean too.  Is there any way to restore?

    Have you looked on all the pages of your iPod?  Have you looked in all your folders?  Have you you tried finding the apps using the iPod's search page.
    PS: Offering points in advance is a violation of there terms of service for this forum.  Perhaps it's why you have not received any other answers so far,

  • What are the ways to make Query run fast?

    Hi Experts,
    When a query runs slow, we generally go for creating an aggregate. My doubt is - what other things can be done to make a query run faster before creating an aggregate? What is the thumb rule to be carried out for creating an aggregate?
    Regards,
    Shreeem

    Hi Shreem,
    If you keep Query simple not complicate it with runtime calculations , it would be smooth. However as per business requirements we will have to go for it anyways mostly.
    regarding aggregates:
    Please do not use the standard proposal , it will give you hundreds based on std. rules , which consumes lots of space and adds up to load times. If you have users already using the Query and you are planning to tune it  then go for the statistics tables:
    1.RSDDSTAT_OLAP    find the query with long runtimes  get the Stepuid
    2. RSDDSTAT_DM
    3. RSDDSTATAGGRDEF  - use the stepuid above to see which aggregate is necessary for which cube.
    Another way to check ; check the users as in 1 to find the highest runtime users and find the last used bookmarks by user thru RSZWBOOKMARK for this query and check if the time matches and create the aggregates as in 3 above.
    You can also Use Transaction RSRT > execute & debug  (display stats ) - to create generic aggregates to support navigations for New queries and later refine as above.
    Hope it helps .
    Thnks
    Ram

  • The Volumn is too low is there a way to increase it?

    The Ipad volumn is okay if you are sitting alone in a quiet place.  I brought my Ipad to work and just with a few people talking it seemed as though there was no sound.  I was trying to show off and I didn't make a good impression, because no one could hear it.

    volume is less, i agree.
    there is a equilizer in settings. try changing it, that will bring a slight change in the volume output.
    Regards,
    Ranjit

  • When I type in an address on the address line and hit enter, nothing happens. It used to work. Now i have to hit the icon in the address bar to get it to load. Is there a way to make it load when I hit enter?

    I've tried typing in different addresses and none of them load if I just hit "enter" after I finish typing. I'm confused because that's what I've always done in the past. I don't know why this doesn't work anymore.

    Yes I had this problem and just now discovered that it was because the add-on 'Omnibar'. I disabled it and now it works fine. Most likely one of your add-ons is causing the problem as TonyE suggested already and lead me to the discovery of my problem in a previous post.

  • I rented a moive for $4, it is taking more than 2 hours to do the first step of the process.  Why is it going so slow?  Is there any way to make it go faster?  I don't want to have my money I spent go to waste.  Please help.

    I rented a movie for my iPod that was 4 dollars.  It is taking so slow to download to my Ipod.  Is there any possible way to go faster?  I don't want my money I spent to go to waste.  Please help ASAP.

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • IPhone: AudioQueue - is it possible to change the sample rate?

    I've been playing around with the AudioQueue stuff for a few days and it's all working fine.
    I was trying to build a low-latency playback system by making the streaming buffers the same size as the audio file and pre-loading the buffers (which works fine) but I've hit a snag.
    I've been trying to get the streaming to work at different sample rates so that I can play back the same sample at different pitches. I managed to do it by modifying the sample rate in the AudioStreamBasicDescription structure but in order to actually make the stream playback at the new rate it seems you have to create a new output, reload the audio file into the buffers and re-enqueue the output queue before starting playback again, otherwise the sample rate change has no effect.
    There is a method to set queue properties; AudoQueueSetProperty() but unfortunately the sample rate Property (kAudioQueueDeviceProperty_SampleRate) is read-only
    Can anyone suggest a way to achieve this with AudioQueue or do I need to move over to OpenAL?
    Thanks,
    Neil

    Dan,
    there is one point in your understanding, which i am not sure what you think about when talking about it: I understand E-series devices do not support this property change while the VI is running.
    infact, you cannot change the sample clock rate during acquisition. but
    this does not mean that you cannot change it while the VI is running.
    you have only to interrupt the acquisition. since you want to acquire
    continuous, this would have the same effect as stopping the vi, i asume.
    so the best way to accomplish this task is to use an external clock.
    this is e.g. often used for acquistion on rotating shafts. the
    acquistionrate is always e.g. 24 points per revolution regardless of
    the rotational speed of the shaft, except for a maximum frequency of
    course.
    Norbert B.
    NI - Germany
    Message Edited by Norbert B on 09-14-2005 04:16 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Internet connection too slow, is there a way to speed up the itouch?

    So I can connect to Facetime, but all I see is a picture of a person and then the Itouch freezes and shuts down. I think it is because my internet connection is too slow, because it only doesn't work in my apartment (it works at places with quicker connections).
    The question is, is there currently a fix to this problem (I can't be the only one who has it)? It all works, just freezes after connecting and showing the picture of the person I'm talking to then disconnects. Is there a way to make this work?
    I'm at college and the only reason I got the 4g from my parents is 'cause they wanted me to help my little bro with homework back home... but if Facetime doesn't work at college then I should sell mine and go with a cheaper, earlier generation. Thanks!
    Message was edited by: ClassyCoug

    By what type of security I mean, WEP (not preferred), WPA, WPAs. I would go to the support page for you router on the manufacturer's sit to see if an update to the firmware is available. You also have to enter the setup for the router to determine the installed version of the firmware. Not infrequently a firmware update fixes problems since that is one purpose of the updates.

  • HT4972 I replaced the computer I originally used to synch my iPhone. I get the message stating that my content will be erased, even though this is the computer I now synch with. Is there a way to make the update recognize the new computer?

    I replaced the computer I originally used to synch my iPhone. When trying to update to iOS5.0, I get the message stating that my content will be erased, even though this is the computer I now synch my phone with. Is there a way to make the update recognize the new computer so that my content will be kept?

    The best option is to copy your entire iTunes folder from your old computer to your new one using one of the methods described here: http://support.apple.com/kb/HT4527.  This will allow iTunes on your new computer to recognize and sync with your phone without deleting content.  You will also need to copy over any other synced data not in your iTunes library such as photos synced to your phone, calendars and contacts.
    If you can't do this, these articles will help you start syncing with your new computer with minimal or no data loss:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    Recovering your iTunes library from your iPod or iOS device

  • The sampling rate of Multimeter Protek 508 via RS232

    Hi everyone. I have the multimeter Protek 508. I want to take the data from it via RS232. The default detail of RS232 is:
                    Baud rate: 1200
                    Data bit: 7
                    Stop bit: 2
                    Flow control: None
    I write the code and get the data from it. But i only have the sampling rate is 2 data per second, that mean 500 ms per data. I want the sampling rate more than that. Can anyone help me to solve this problem. 
    Thank you.
    Attachments:
    186148720-Multimeter-Protek-506-pdf.pdf ‏553 KB
    Protek 508 RS232.vi ‏35 KB

    You are probably getting everything out of this device that you can. First, it is old, make that, very old. Back in the day, it might have been quick, but that was then. This is now.
    Second it's a multimeter. Very often meters like that would do running averages to make the reading appear more stable. That averaging slows down the rate at which you get new data.
    How fast are you needing to acquire data?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to store the sampling rate into the header of the data file?

    I want to store the data parameters such as sampling rate to the data file. Now I am using the Write Labview Measurement File VI, the data is saved, but like the sampling rate this kind of parameter is not in the file. How can I store this parameter?

    If you want the sampling rate to appear in a different location of the header, then it and it's subVIs can be modified to write anyway you want. Right click on the Express VI and slect Open Front Panel. Then you have a VI that can be modified. If you want to use an unmodified Write LabVIEW Measurement File, you could use that, read the whole file back in with one of the file read functions, insert a string with the sampling rate and then write the whole thing back out again. It might be simpler though, to use Write Characters to File to create your own header and then use Write to Spreadsheet File to write the data. There is also the function Export Waveforms to Spreadsheet File on the Waveform>Waveform File I/O. This uses a slightly different format than a .lvm file. It too can be modified if you don't like the default header.

  • Sampling Rate- How do I check and adjust the sampling rate on my Laptop?

    For the purposes of matching the sampling rates on my laptop to my usb microphone, (recording in garageband) how do I find out what the sampling rates are on my 2009 macbook?  Many thanks!

    GarageBand '11: Set the audio resolution: http://support.apple.com/kb/PH1873

  • How can I change the sample rate (delta X)?

    Hi, I create vi which can measure resistance, it will record the data and write to a file.
    however, I want to change the sample rate which is delta x. is that anyway I can do?
    I have try to put a clock inside the loop, it does slow down the speed but not the sampling rate.
    Please help me!!
    Thank you!

    Hello Shan405,
    Adjusting the Reading Rate of a DMM
    As noted in the above DeveloperZone article, there are a lot of factors contributing to a reading rate of a DMM. 'Sampling rate' can only be configured in digitizer mode, which can only be achieved on the flex DMMs
    Using the NI PXI-407x DMM as an Isolated Digitizer
    Regards,
    Glenn

  • Setting the sampling rate in SignalExpress

    I am using a cDAQ-9172 with a strain gauge module and a thermocouple module and using SignalExpress.  I want to acquire data at a pretty low frequency rate (2Hz), but I am unable to use 1 sample on demand in the acquisition setup.  I get the following error.
    Error -201087 occurred at DAQ Assistant
    Possible Reason(s):
    Measurements: Task contains physical channels on one or more devices that require you to specify the Sample Clock Rate.
    Specify a Sample Clock Rate.
    Device: cDAQ1
    I am unable to setup a sample clock rate as it is 'blacked' out by the software in the 1 sample on demand mode.
    When I try to use continuous or 'N' sample mode, the cDaq is sampling at a rate of around 1600 Hz, even though I am putting in a value of 1Hz on the seti[ screen.  The large amount of data will prevent me from downloading the data to Excel for further reporting.  I obviouisly don't need to sample my TC module at that rate either.   
    Is there anything I can 'easily' do to decrease the sampling rate down to a low level?  Everything I have tried doesn't seem to work and I don't really want to go away from SignalExpress.
    Jay 

    Hi Jay
    I am assuming that you are using the NI-9237.  This strain module has only a specific set of sampling rates.  If you specify a rate that is not supported it will corers the rate to the next higher sampling rate.  Also since you are using the cDAQ chassis, there is only sample clock so it must choose the highest sampling rate.  So it is not possible to sample at a lower rate.  Please see the following link.
     If you have access to LabVIEW then I would suggest taking your readings at the fast rate and then average the samples before you write them to your file.  The following link has some more information on this. 
    If you are limited to Signal Express, this task is tricky.  If you select a N-Sample acquisition, set the samples to read to greater than two, and set the post acquisition delay  under the execution control tab to 1000, you acquisition will acquire the two samples at the very fast rate, but it will wait 1000mS between each acquisition.  This will slow the overall sample rate.
    Chris_K
    National Instruments
    Applications Engineer

  • The data rate of this file is too high encore

    Hi,
    Im new to all this, and I need a real quick solution as this needs to be done for the next few days, please help.
    I get a "the data rate of this file is too high encore"the data rate of this file is too high for DVD" message when I try to brun to disk.`
    I assume this means the bitrate I used when exporting from premiere? I only have one file to go on the DVD, what bitrate should I use?
    Thanks

    What did you export from Premiere?
    Did you use the MPEG2-DVD preset... and did you make any changes to the preset?
    CS5-thru-CC PPro/Encore tutorial list http://forums.adobe.com/thread/1448923 may help

Maybe you are looking for

  • Oracle 8.1.6 installation on HP

    I am trying to install Oracle 8.1.6 on HP-UX 11.0 using runInstaller. In Configuration tools it is hanging when trying to create database and creating a defunct processes in Unux. It is always showing 1%. Please help... Thanks, Yana

  • Mac Mini + Sharp Aquos: Signal is not compatible? HELP

    I am trying to get an Intel based mac mini to display on Sharp Aquos LC-45GX6U TV. I am using a dvi-to-dvi cable. When initially connected, it worked fine, outputting at 1280x768 at 60Herz. It is not the native resolution for that TV, but close enoug

  • TextFields / labels in Applet...Urgent help needed please!!

    I have been trying for days to add labels and textFields to my applet and can only manage to display one. My assignment instructions suggest I use makeTextField method and call the setEditable method from the makeTextField method to avoid repetition

  • Non-English fonts problems.

    Hello guys, I have a problem with non-English (well Cyrillic) font. I faced this problem 3 days ago when was working in iDVD trying to type text there. The problem is if I type in Russian with chosen font it does no appear as its english counterpart.

  • IDOC Types for 215, 870, 852, 857, 858 and 838

    Hi, Can anyone let me know the IDOC types in SAP for 215, 870, 852, 857, 858 and 838 messages (X12 Messages). Thanks, Sudheer