How to make use of adjacent data elements within the same buffer

Hi,
         Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
         Here I also attach my VI showing what I did.
    Thank you very much in advance,
                        Suksun
Attachments:
wheel_encoder_1.vi ‏98 KB

Hi Suksun,
      I hope you'll forgive me for distilling your code - mainly to understand it better.  I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array.  As in your code, the last velocity is being paired with the first position.  If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
cheers
Message Edited by Dynamik on 01-07-2006 03:17 AM
Message Edited by Dynamik on 01-07-2006 03:19 AM
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
encoder2.GIF ‏14 KB
encoder2.vi ‏102 KB

Similar Messages

  • How can i use Mail on 2 macs with the same mail address?

    Hi,
    I have two Macs, connected through WLAN. From each Mac I can use Mail (sending and receiving) with the same mail address. This worked well; on each Mac I have separate files storing the mails (input, sent, trash, …).
    Some days ago I had to change the provider. (Perhaps this may be the reason for my problem?) Now both mail systems are connected - in the way that if I put on Mac *1 a mail into the trash it is automatically thrown into the trash on Mac *2.
    What is to be done to separate the two systems (i. e. make them independent of each other)?
    Hans

    It looks like you are using a IMAP mail account, a protocol used by most email providers nowadays. Read -> http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol
    The main feature of IMAP is the sync of all the changes you do on your mail account. If you want to keep your mails on one Mac, have a look at this site -> http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3908294

  • How do I make my page links open up within the same window?

    I am completely stumped. By default for some reason, every single link I have on all my pages opens up in an external window rather than within the same window. I can't find anywhere to turn this off. I have my hyperlinks open to my other pages not an external page. Please help!

    Are these text based hyperlinks that you created?  If so then go to the Inspector/Link/Hyperlink pane and make sure the checkbox to Open link in new window is unchecked.
    Click to view full size
    What's the URL of your site so we can examine it first hand? 
    OT

  • Using an WD Component twice within the same Component

    Hi all,
    our company has made a WD Component for editing business partners.
    My job is to build a WD Component where two business partners (different roles) are edited within the same window.
    My idea was to make 2 separate component usages of the Business Partner WD Component within my component.
    This just works fine. But there is a problem when mapping the context of both Business Partner-Components into my WD Component. There are always naming conflicts. This is because it is not allowed that there are two nodes with the same name in the context, even if they are in different subnodes. Renaming the nodes after mapping them in my component also doesn't work, because it is not possible to rename nested nodes.
    Does anyone know a solution?
    Kind regards,
    Florian

    Hi Anurag,
    thank you for giving me help. You are right, it is possible to use a component twice within the same webdynpro component.
    But the problem is the context mapping in the target component.
    Let me give you an example.
    This is the context of the twice used component.
    CONTEXT
    |
    |->NODE_1
    |  |
    |  |->SUBNODE_1
    |  |  |
    |  |  |->SUBSUB_NODE_1
    |  |  |  |
    |  |  |  |->ATTRIBUTE_1_1_1
    |  |  |  |->ATTRIBUTE_1_1_2
    |  |  |->SUBSUB_NODE_2
    |  |  |->SUBSUB_NODE_3
    |  |  |->ATTRIBUTE_1_1
    |  |  |->ATTRIBUTE_1_2
    |  |->ATTRIBUTE_1
    |  |->ATTRIBUTE_2
    |  |->ATTRIBUTE_3
    Now, if i map this context (NODE_1) to the target web dynpro component I have a problem. I have to map it twice (one time for each used component), so that i can access both used components. But WebDynpro only allows me to rename the node NODE_1. Mapped subnodes (SUBNODE_1, ...) cannot be renamed. So i cannot map the context of both used components, because there are always naming conflicts. WebDynpro doesn't allow that there are two nodes with identical names within the context, even if they are in different subnodes.
    Is there a solution? We really need one.
    Thanks
    Florian

  • How to make BI Info obj Data element in-herit source DE documntn?

    Say I am in ECC. I go to SE11, give table name MARA and then doubleclick on the dataelement 'MATNR'. Then I click on documentation. I get a popup with Short text " Material Number" and Definition "Alphanumeric key uniquely identifying the material'.
    I am interested in the latter information that is 'Definition' - & in general whatever documentation comes up for data element in ECC.CRM.SCM,SRM.
    Now I log into SAP BI. I find that under characteristic 0Material, the data element is /BI0/oimaterial. When I double-click this datamaterial and press the documentation button, the system says 'No documentation'.
    My Questions:
    1. IS there a switch we could turn on in source ECC/SRM/CRM/SRM so that the data element in SAP BI inherits the original source field data element documentation.
    { I am not too convinced of the argument- that in BI we have info objects in ECC we have fields - since I am talking of data element level information- I would tend to think of this as an oversight of the designers or de-prioritization !!}.
    2. Could we have an ABAP workaround? That is, in BI we identify the tables that house the mapping between the source and destination data elementsa and take out this information. Then we extract the dataelement documentation by function DOCU_GET (from eCC) and use the mapping info above to link SAP BI data element with source data element documentation.
    WHY do I want to punish myself as above? My use case is, we take out SAP BI Table, field, metadata etc and create a model in a modeling tool and physical implementation in a 3rd party DW database as our own canonical, application-agnostic corporate datawarehouse. I would want the source data element documentation to flow to this last system as well as the modeling tool.
    Regards
    Sasanka

    That is, in BI we identify the tables that house the mapping between the source and destination data elementsa and take out this information. Then we extract the dataelement documentation by function DOCU_GET (from eCC) and use the mapping info above to link SAP BI data element with source data element documentation.
    1) SAP don't supply this, I would imagine, because R/3 isn't the only possible source of data.  I'm currently working on an app that extracts from R/3, an Oracle database and APO.  From whence should I take the documentation for my MATERIAL info object?  While being able to transfer the documentation of data elements might be very useful for your app, I can't see that generally it would be of interest to clients - I've certainly never heard of such a requirement.  So, my opinion at least, it isn't a design flaw.
    2) As you've pointed out, you can get the tables that do the mapping, so you know the source data elements, so you can get the documentation.  I'm not sure of how to store the documentation, but the obvious candidate for a link between infoobject and dataelement would be master data of an own infoobject.  You could wrap DOCU_GET in an RFC (if it isn't RFC enabled), and do a direct call between your 3rd party app and r/3 to get the documentation.  For information about the mapping tables, I'd suggest asking that question specifically in one of the BI forums.
    matt

  • How to make my Labview vi program run at the same time everyday?

    I have Labview vi that uses "Time Stamp Control & Indicator" on front panel to set time & date for program operation.
    But, I cannot separate the Date from the Time for Start & Stop control.
    I want pgm to run everyday (7days/week) at the same time (e.g. 8am to 630pm) - I don't care about the start & stop Date feature.
    So, everyday I have to manually open the Control & change the date to today.
    How can I make program only respond to Time start & stop?
    Thanks,
    jaceb

    Of course rather than create yet something else that is running all the time, setup your VI to only execute for the desired amount of time, If you running windows you can use the task scheduler to launch it.
    http://support.microsoft.com/kb/308569
    Puts the burden on the OS and is not dependant on you starting it everytime you reboot, or having to put it in the start menu.  there are options for it to run even if you are not logged onto the system.
    Although not absolutely certain, I am reasonably sure that mac and linux also have something similar.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How do I use two computers in logic at the same time?

    I would like to find out how to make two computers work in the same project, both having logic installed.

    No that is not possible.
    You talk about a synchronized system. iCloud is doing something similar to work on the same document on different computers and have them synchronized. However that creates a problem if two computers (users) updating the same file which creates a conflict because the computer doesn't know which file to update wiht what.
    However, Logic has a very easy feature to import tracks from one Project to another. It is the Browser window.
    Mount each other's computer so you have access to the individual Project on each other's computer
    Open the Browser window in Logic in your Project and navigate to to your friends Project
    Select that Project and pick any Track (optional: content, plugin, settings, etc)
    If you want to update only the data, just select that track and only its content and choose overwrite existing Track.
    Play around a bit and you will see that it is an amazing (often overlooked and underrated) feature.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • SBO - How to use two different Stock Account within the same Item Group

    Hi,
    I'm currently stuck within one of my implementation.
    I'm deploying the same solution worldwide which worked pretty well until now. All the items are connected to an item group, with a unique GL account, supposed to book at the same time the good receipt and the good issue (Balance-Sheet Account = 14xxxxx).
    My new unit is willing to use two different GL accounts when performing its stock entry (let say 14xxx10) and another GL account for the good issue, let say 14xxx20.
    Do you have any clue so i can please them and keep using at the same time the item group ?
    Thanking you in advance
    Stephane

    Hi,
    In fact, we use the GL account as the HQ Account (Reporting Account) while the "Export Code" will be used to store the local GL Account (greek account).
    As such, we can, somehow handle two different chart of accounts.
    In my reporting, i'm only using a single GL account for stock movements, while my greek counterparts want to handle two different accounts.
    Threfore, i have only two solution since there is normally a one to one relationship between a HQ account and a local account that are :
    1 - Duplicate the HQ accounts
    In that case, i do respect anytime the one to one relationship. I've got one HQ account for one local account. But how can i put this since i can only handle one single stock account.
    2 - I keep my single stock account like this but i won't be managing the possibility to get two different Export Codes.
    Regards
    Stephane

  • How do I use 2 Core Audio devices at the same time in Logic w/out switching

    Hello, I use the Aardvark Direct Mix usb3 as my audio interface for mic and guitar. I just upgraded to Logic Pro 7 today and was hoping someone could tell me how I could use the Built-in Audio Core Audio driver along with the Direct Mix USB Core Audio Driver at the same time without having to switch Core Audio Driver's and than rebooting Logic. It is very frustrating doing that as well as not being able to hear my Logic audio during playback/record mode when I am trying to record via the USB3. WHat can I do? Thanks! If ther are both core audio, why can I not just use both of them at the same time? Why must a switch back and forth? Thanks!
    [email protected]

    THanks everyone! awsome article! Thanks for posting it, nh!
    The weird thing is, once I go up to the Menu and select Open Aggregate Device Editor in the AUDIO/MIDI setup utility and try to add a new Aggregate Device setup (step # 6 from the link), the only audio device available is the "Built-in Audio". What's weird is when I have the main Audio MIDI Setup utility open, every single drop-down menu/tab has the "Direct Mix USB 3 1.0.9.1" device right beneath the "Built-in Audio" option. To me that says that the core audio device is indeed recognized by my computer (obviously since I can record with it using Logic). Can anyone help me with this one? Any suggestions?
    Not that it should matter but, the hardware audio interface that I am using is made by the no-longer-existant company once known as Aardvark. I actually had to purchase a third party Core Audio driver just to have it recognized by OS X.
    This is the website where I purchased my audio driver :
    http://www.usb-audio.com/
    A little more on how this device and it's core audio driver function within Logic . . . (Hopefully this might clarify something I may be screwing up) . . .
    I launch Logic with its default Built-in Audio which allows playback of audio from the app. I than go up to Audio Hardware and Drivers and than drop the flip down Driver menu down to the second option, "Direct Mix USB 3 1.0.9.1." Logic than prompts me that I should try to (re)launch Logic Pro to load the appropriate CoreAudio.. I do that. Now I am ready to record guitar through the Direct Mix USB3, I just can't hear anything (unless I use head phones as an output from the Direct Mix).
    Anyway, you all probably already knew what I meant so explaining that was pointless. But my question is, if the Driver is obviously recognized by my comp in both the Audio MIDI Setup and in Logic, than why won't the Direct Mix device show up as a possibility for setting up an aggregate device? Any suggestions? Thanks!
    Power Mac G5 Dual 2.7Ghz 4.5gigs of RAM   Mac OS X (10.4.7)  
    Power Mac G5 Dual 2.7Ghz 2.5gigs of RAM   Mac OS X (10.4)  

  • How can I use two different page orientations in the same document?

    I am trying to have both portrait and landscape page orientations in the same document.  Pages doesn't seem to like this.  Is there a way?

    I tried to comment on another thread about this same issue, but the thread was closed.
    In the other thread; however, some asked why rotating one pages was necessary, and if they knew then maybe there would be reason to create the function.
    Well, I don't know about why anyone else needs it, but for me it's for the papers I have to write for my masters program. The professors like to have the rubric attached to the bottome of the document so they easily grade and keep things organized. They of course give directions on how to easily change the orientation of the last page in Word, but not all of use Word, or even want to use Word. Maybe I need to ditch Pages and go to Word? I'd really hate to do that!
    So, come on Apple, let's get this feature added, stat!

  • How do I re-install adobe premiere elements on the same computer? Original installation had error -

    How do I re-install adobe premiere elements 11 on the same computer. Original installation had error - missing dll file.

    What computer? What exact error? Details are everything...
    Mylenium

  • How can I use OnBoard+Aditional audio cards at the same time? !!! BIOS PROBLEM !!!

    I want use both audio cards. The On-board audio + SoundBlaster Audigy. Because I have mp3 player mp3tunes ( from http://www.mp3tunes.nl ) that is able play on both audiocards at the same time. It is good for DJ. One audiocard is for pre-listen.
     But in BIOS is possible set only disable or auto-detect.   When I set autodetect, then OnBoard audiocard is automaticaly disabled if there is another audiocard.  Please tell me, what can I do for enable both audiocards ?

    It's been awhile but as I promised here is my update:
    I purchased an E-MU 1820m Pro Audio interface several months ago and ran it in my system for some time with the onboard audio disabled. Since this audio system is mainly for mid/high end audio production making use of low latency and up to 192mhz sample rates & 20/18 i/o then it is a bit of an overkill for using it for general multimedia & games so I thought I would place my c-media pci card back in and enable the onboard setting & see if the two systems would run ok together.
    I first made sure that I uninstalled the e-mu card & then put the onboard card back in & installed the drivers. I then installed the E-MU, making sure that it wasn't sharing an IRQ with my 9600 pro like it originaly did on the first slot. So after installing that and the IRQ's were looking good I tested it all out and the results after two weeks have been perfect. I use the C-Media audio with the WDM drivers and use it for general audio & multimedia while I use the E-MU card with the E-MU ASIO 2 drivers and I use this with my audio production programs like Sonar, FL Studio & native Instruments Battery & Traktor.
    Conclusion: Yes you can run a pro audio system as well as the onboard sound card with the MSI 865 Neo2 FIS2R.

  • HT1206 how could I use more than 5 devices on the same apple ID

    Hi,
    I am trying to use more than 5 different devices (i-Phone's, MacBook Air, iMac, PC etc...) on the same Apple ID.
    The Apple ID is not allowing me to add more than 5.
    Do you have an idea what could I do?
    I would like to share all the devices in my Home network thru i-Tunes.
    Thnx

    You can only associate a maximum of 5 devices. There is no workaround for this.

  • How can I bind two text view elements in the same line?

    Hi all:
    In my case, it is not allowed that one text view is in the first line and another in the second line. How can I put them always in the same line?
    Thanks.

    Hi,
       as the window resizes the UIcontrols are also resized if wrapping is enabled and they will be in same row.
    as u mentioned they are two containers in root container but appears one by one do as below
    for root container
    set layout -  grid layout
    colcount - 2
    for 1st child container
    set layout -grid layout
    set colspan - 1
    as u requre 3 Ui control in it
    set colcount of child container to 3
    add the UI controls
    set the colspan of UI controls to 1.
    do as same for second container
    Thanks,
    yashpal

  • How to make sure what material number format is the same in SRM and R/3?

    Hi all!
    I faced the following problem:
    "Product does not exist in plant or it has been flagged for deletion". This error message occurs during shopping cart creation or during transferring purchase requisition from R/3 to SRM. It seems like SRM carries out some material checking in R/3 before shopping cart save and can't find out appropriate R/3 material. The only reason I can assume is different material number formats in SRM and R/3. Material number length is the same in both systems.
    Thanks in advance,
    Alexander.

    Alex-
    We experienced this problem just recently.  Our situation involved trying to add a material to the cart from an internal catalog (CCM).  As mentioned earlier their is a configuration setting to indicate the number of characters the "Product" (SRM terminolgoy) or "Material" (R/3 terminology) should be.  We made our setting 18 characters (same length as field in R/3).  The important thing to understand is that the material number is actually defined as a character field, not a numerical field so the length of the material "number" is critical for the system to accurately check the material.  Do the following and see if you correct the error.
    1)  Go into transaction COMMPR01 in SRM, select the search tab and choose Material in the Find box, then click start.  Choose the material you are experiencing the problem on and verify that the number of characters is the same in SRM as it is in R/3.
    2)  Next, go into R/3 and look at table entries in MARC for the material.  This will show you all the different plants associated with the material.
    3)  Finally, create a cart and procure the material.  If you get the error message go to the basic data of the cart and verify the location (plant) is one of the plants you found in step 2.  If not, change the location to one from step 2 and check the cart.

Maybe you are looking for

  • IPod Touch - 2 problems

    This is my first post on the forum, and I'm reasonably new to using an iPod-iTouch. I have an iTouch 4th Gen 64G Running on an old PC (3.4Ghz P4, 768M ram) using iTunes 10.6.x (version before exisiting 10.7). 1 I had a problem when my iTouch was runn

  • [solved] vim ftplugin vim-latexsuite doesn't load changes with chars

    Hello! I'd like to use some european characters and I found this thread. Unfortunately I still get "/mathbf{}" when I type the ã. (My problem is the ö but I think if I manage to have the ã it will work with ö...) The second problem is that I have to

  • Run CKMLCP (material ledger cockpit) for closed period in MMPV

    Hi, I would like to run CKMLCP for period 12.2008, however MMPV was run in 02.2009, and only january and fabruary 2009 are allowed for material postings. How can I settle material ledger in 12.2008? I know about note 361236 (CKMLCP: No period-end clo

  • PE 2 video doesn't play anymore.

    PE 2 has stopped accepting video clips from my Canon PowerShot S5, only the audio plays.  This is the case for saved clips tht used to play and for newly downloaded clips.  The video only shows flickering black.  The clips play fine on QuickTime.  Al

  • How to calculate planned tariff

    Hello, Please, help me to sovle an issue! I have the following report CHAR    | Quant  | Amnt | Tariff  | | Char_1  | 100    | 200  |  200    | Char_2  | 150    | 300  |  200    | Char_3  |        |      |         | ...     | ...    | ...  |  ...