Is there any way to create a circular buffer using the INSERT ARRAY function?

I saw the example using the REPLACE ARRAY function, but it uses too much CPU power on my laptop. I'm using it for a very sensitive application and saw that the INSERT ARRAY function used much less CPU power.
I am also not wiring the index on the INSERT ARRAY function so that whatever is read from the buffer is added to the array.
However, since it is not indexed, I don't know how to set the "write" index back to 0 when it reaches a certain sized array (ie 1000 elements). I was looking for an array property node, but couldn't figure out if one exists for the "current write index".
Can anyone help?
Thanks

I will try to answer this question to my best understanding. I apologize if I interpreted the question wrong.
You are using the "Insert Array" vi without wiring the index. By doing that, new elements will be added (appended) to the array.
If you just want to know the current index to stop your acquisition when the array reach certain amount of elements, then you can use the "Array Size" vi to keep track of the size of the growing array. Remember that Array Size = last index + 1 because the index start at zero.
A second option is that you may want to start over the array when it hits the maximum number of elements that you will allow. If that's the case, then you may want to re-initialize the array to a NULL state by stablishing a condition (for example, when the
size of the array is 1000, re-initialize). I provided an example attached to this message showing how this can be accomplished. In the example, an 1D array grows in size using the "Insert Array" vi and inserting a random number. When the array reach 4 elements, it is re-initialized. You can expand this example by saving the array first to a file or some other holder before re-initializing the array. The example is in LabVIEW 6.
Finally, if you want to replace the current values with new values, I think you do not have other choice but to use the "Replace Array" vi.
Hope this can be of help.
Regards;
Enrique Vargas
www.vartortech.com
Attachments:
array_example.vi ‏20 KB

Similar Messages

  • It seems cranky sometimes works, somtimes not.  My other issue - is there a way to create a mail signature using the font I use in Outlook (or can I import that signature)?

    I have a new iPhone 4s - having lots of trouble with Siri.  It seems cranky - sometimes works, somtimes not.  My other issue - is there a way to create a mail signature using the font I use in Outlook (or can I import that signature)?  How can I find fonts availble on my phone?
    Thanks for any help

    Not in Acrobat unless your image is already in the PDF format.
    This is a feature of forms created with LiveCycle Designer.

  • Only an exclamation point shows up when I click a thumbnail in my iphoto folder. Is there any way to recover these photos by using the thumbnails?

    Only an exclamation point shows up when I click a thumbnail in my iphoto folder. Is there any way to recover these photos by using the thumbnails? Please help. Thanks!

    That exclamation mark is displayed when iPhoto cannot link to the original file.  First make sure you are running a "managed" library by checking iPhoto's Advanced preference pane to make sure the checkbox to copy files into the library during import is checked.
    Click to view full size
    If it is checked you can try the following: make a temporary, duplicate copy of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab?

    Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab? When there was support for Google Toolbar, I was able to do this; now, whenever I want to search for something, I have to open a new tab to do it, and cut-and-paste my search into the search field in the new tab. I used to be able to highlight, drag, and drop something into the search field and have it automatically open in a new tab. This is enough for me to switch to Chrome . . .

    Set a preference to have searches from the Search Bar (upper right) automatically open all searches in a new tab
    #type '''about:config''' in the URL/Location/Address bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''browser.search.openintab'''
    #in the lower panel, double click the item (or right-click and choose "Toggle") to change the value to "true"
    #close the about:config tab and test
    #See:
    #*For help with opening/using about:config, also see: http://kb.mozillazine.org/About:config
    #*Also see: http://kb.mozillazine.org/About:config_entries (click on "Browser", scroll down to browser.search.openintab)
    '''Search Bar''': http://support.mozilla.com/en-US/kb/Search+bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    About Google toolbar............
    Google decided that they will no longer produce the Google Toolbar for Firefox 5 and newer version. It is best to move on to other alternatives than to try any "hacks" to the toolbar that may or may not perform in the future. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *https://support.mozilla.com/en-US/kb/google-toolbar-not-compatible-firefox?s=google+toolbar&r=0&as=s
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    '''''To access your Google Bookmarks visit''''' www.google.com/bookmarks.
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • With just ONE inatentive sweep of my finger one page of my note was disappeared! Is there any way it can be recovered without using the help of iCloud backup?

    1. With just ONE inattentive sweep of my finger one page of my note disappered. Further more, the same page in my iPad was deleted automatically too! How could this happen? Is there any way it can be recovered without using the backup feature from iCloud? The data is vey important to me?
    2. I havn't connect the power code to my iPad yet, the backup copy in the iClout was before the accident as I checked in iPad. Is there any way that I could open my notes in iCloud backup so that I can copy the missing page and move back to my iPad and iPhone?
    Thanks a lot for any help!
    Xueyu

    Sorry, no. The only way to restore this note is to restore from a backup that contains it.

  • I sent iTunes to trash. I was able to recover the program but have to "put back" songs one at a time. Is there any way to put back from trash using the "select all" command?

    I sent iTues to trash by mistake (trying to delete files from "yesterday"). I got the program back but have to "put back" songs one at a time. Is there a way to put back multiple songs using the "select all" command or anything else? Thanks for the help.

    The prgram is in one location and the library (media + library files) are in another. Sending it all to the trash would take some pretty delibrate multiple actions and digging through multiple folders, so I don't know how this was managed unless there's something in Snow Leopard that's new. Occasionally I have moved a file to the trash in Finder that I didn't want to and I can use Finder's "undo" to undo the last move. With many files...?

  • Is there any way to create a transcript document of the audio within a course?

    I have a course that someone else created that contains audio and would like to know if there is any way to create a "storyboard" of the audio so the SMEs can edit it instead of sending an EXE file for review or having to recreate the transcrip from scratch.

    I generally just have the transcript for my voiceover audio in the Slide Notes field for each slide, and then output my project to a Word document handout, making sure to select the option for slide objects and slide notes.  That creates a PPT-like handout that is easy to email to approvers.  They can see the transcript notes underneath each slide graphic.

  • Is there any way to listen to music WITHOUT using the speakerphone or headphones?

    I listen to streaming talk radio in my car, I usually have drive to and walk in and out of several office buildings throughout my day. I would like to be able to just put my BB up to my ear and pretend like I am listening to someone talk on the phone, when I'm really listening to the radio. Is there any way to do this? I hate having to fumble around with headsets every time I stop, and obviously I cant walk through a office building with the loud speakerphone/built in speaker blasting.

    Sure there is.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Is there any way to disable Quick Find and use the old VS 2010 find?

    I really dislike the Quick Find dialog. It's one of the few tools from the VS 2010 Productivity Pack that I always disabled. It looks like they've forced it on us with 2012 though, so I'm wondering if there's a way to disable Quick Find and use the old
    style Find dialog?

    I wish the VS2012 devs would realize just how badly the Quick Find tool slows me down. It's poorly labelled, does a full search immediately after every single keystroke, and doesn't default to whatever's highlighted in the code when invoked. It
    makes me feel like I'm the only one who uses the product.
    I agree with ElectricNinja and
    Disable Quick Find in VS 2012
    The quick find is terrible, and was one of the few tools that I'd disable in the 2010 pack.  wish there was a way to return to the good old normal find. 

  • Is there any way to track a stolen laptop using the mac address, or by triangulating the wifi, or even by checking to see if the macbooks serial number has been registered online anywhere?

    A little info on my question,
    I had it stoeln on June 22nd 2013. I had recently bought it so had not installed any software on it nor did I have registered with icloud. I had contacted police, registered it stolen with Apple (but then just discovered this week that apple do not have a database for stolen products, which makes no sense at all).
    I have contacted all the major pawn shops and computer stores in town etc etc. I have recently discovered that each laptop has a unique MAC address whcih begs the question, is that traceable somehow? I have been made aware that the router strips the mac address before it connects it to the internet but does the isp log the laptops MAC address? If i contacted all the major isp in my country would they have the ability to search for the mac address of my latop and then link that with an ip address?
    Any help would be great please!

    karlgporter wrote:
    Yeah but I registered it stolen with Apple first thing, then called local police etc. Apple told me on the phone that the serial has been logged as stolen, which I assumed would limit the computers use online.
    Every machine has a unique serial number what I was getting at is there must be some way to track the serial number and for example if the theif logged onto facebook using a stolen machine, if there were a register of stolen equipment then red flags would pop up, you know what I mean?
    Well, I hadn't heard of that before. If it's true, then what you say should also be true but the Mac would have to publish its hardware serial number over the Internet and I haven't heard of that either. The only Apple tech that is supposed to constantly track you is iCloud.
    You said you assumed the database would limit use online but if that's only an assumption, you need to ask Apple what exactly the stolen database does. It is possible that the serial number might only get flagged if it comes into an Apple Store for service, if it ever does. You need to clarify this with Apple.

  • Is there any way to create a wifi hotspot for my macbook using my IPad?, Is there any way to create a wifi hotspot for my macbook using my IPad?

    I am going to a lake cabin in Northern Minnesota for a week and need to get wifi for my Mac.  Is there any way to create a wifi hotspot using my Ipad so that I have internet service for my laptop?

    No, iPad can become a hot spot, but if you have an iPhone, it can tether if you have a data plan that incudes the tethering option.  With AT&T for example, you can add tethering for $20 month or for $45/month, you receive tethering and 4GB of data per month.  If you have the unlimited data plan from AT&T you'll unfortunately have to give it up if you want to tether.  You can also go to almost any carrier and purchase a MiFi unit which may work for you.  Whether iw will work in Northern Minnesota is something only your carrier could answer.

  • Is there any way to create a VMvmare server cluster?

    Hi,
    I have two machines which don't support install ESXi, these machines are running centos 5 with no X and I installed vmware server 2.0.
    My question is, is there any way to create a vmware server cluster like is possible create in ESX?
    I know in ESX once you create a cluster, the resources are increased since resources are added. Is there any way to do same thing with vmware server 2.0?
    Also is there any other option for my machines, I don't want to install X since the machines don't have much resource.
    Thanks in advance.

    Welcome to the COmmunit - With VMware server each environment functions independently and there is no way to pool resources as you can with a DRS cluster - and remembering even in a DRS cluster the VMs swill only run on a single host at a time as they would in VMware Server machines/
    Also just because it is not suppported does not mean you will not be able to create a VM with an unsupported OS -

  • Is there any way to create an installer for Mac OS and Linux OS once a stand alone application is created?

    Is there any way to create an installer for Mac OS and Linux OS once a stand alone application is created?  I have created an executable application that I want to distribute to Mac and Linux users (different applications were created in the respective OS).  I was wondering if there is any way to create an installer?  I think there probably isn't...  If the user were to simply download the Labview Run-time Engine from ni.com would they be able to run the application or is it more complicated than that?
    Thanks so much for your time.

    I think Shane tried to say, that it is on the Mac OS X installation DVD, NOT the LabVIEW for Mac OS X installation medium. And that could very well have changed in recent Mac OS X versions as well. They used to have Xcode on it too, but that seems gone as well.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is there any way to create admin role only for one resource.

    Hi all,
    I am trying to create an admin role with 'update user' capability. But I want to restrict the user(with the admin role) to be able to update a user's attribute only for one resource, The user(with the admin role) should not be able to update the attributes of the other resources which a user have.
    Is there any way to create admin role only for one resource?
    I customized the tabbed user form to show only one resource attribute (deleting the missing fields and adding my tab for the resource) and then assigned this new User Form to the user(with the admin role) in security tab.
    It works fine. But the problem is that if any user(with the admin role) is also admin of some other resource then he/she will not be able to view the other resource attributes.
    Please suggest,
    thanks

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Is there any way to create a system-wide variable?

    Hello IDM gurus.
    Is there any way to create rarely changing system wide variables that can be loaded at system startup that will be available to all users? For example, at IDM system startup, the variables would be read from configuration or generic objects and live in memory for ALL users as opposed to each workflow/user having to read the same variables when the workflow is run.
    Any help would be appreciated.

    That may very well be the answer I'm looking for. Is there a way for that to be available within the entire application instead of having to read it in each workflow?

Maybe you are looking for

  • Not Syncing to Windows or iTunes?

    please help i dont no y but it wont sync to my computer or to itunes and i want it fixed but i dont no how 2?

  • Could i upload the moive which taken by sony nex-3 to ipad2 and play it on it ?

    I have tried to use the camera connection kit to upload the moives which were taken by sony Nex-3 to my ipad 2. The photo and the moive files were uploaded to Ipad2 successfully but I can't play the moives. It shown as a MP4+thx symbol on the file on

  • Is Clone thread safe?

    I am examining property change class and notice that it does an unsynchronized clone of vector. This makes me wonder if clone is thread safe? it must be or this clone could experience the same problems of copying the vector while its being modified.

  • How to configure and save presets for custom scanning?

    There are 5 presets in Acrobat XI for scanning files: "Autodetect...", "Black &White...", "Grayscale...", "Color Doc...",  and "Color Image". There is also an option to to do a "Custom Scan..." and "Configure Presets" (modify the 5 above). However, I

  • Creating seach help to be used in program as F4 help

    Dear All, I need to create a Search help using two fields, SAKNR and BUKRS. Please help regarding all the parameters. After the search help is created i need to use it in my program so that when the user clicks on SAKNR the value in BUKRS field shoul