Calculating offset

Hallo,
how can I calculate the offset of two functions?
(Details: I have two 1D-arrays Y[1,...,N] and Z[1,...,N] with the N values of the two functions. I want to substract them from each other in a way that a part of the function is eliminated. My idea is the following:
sub[1,...,N]=0
for k=1 to N
for i=k to k+m (only the part [1,...,m] of Y is interesting to me and the offset i of Z)
if i<=N then sub[i]=Y[k]-Z[i] else sub[i]=0
next i
next k
I save each substration-array and select the one with the lowest sum. That index j should be the required offset.)
Note that my idea isn't programmed in LabVIEW yet, perhaps one of you has a better idea.
Arno
PS: If you attach a VI: I use LabVIEW 6.1, so please it in a way I can read it.

Hallo,
sorry for writing to complicated. Details:
I have two 1D-arrays. I want to substract one from the other. That's easy, if they don't have an offset. How can I calculate an existing one? As soon I have it, my problem is solved:
use the offset (x[i] -> x[i+offset]) and substract (y[i]-x[i+offset])
Example: First array: 1000 values of the sin x-function. Second array: 1000 values of the sin(x+1)-function. How can I calculate the "1"? Note: My function is NOT sin, and I do not know an analytic formula for it.
Perhaps now I am clearer.
Arno

Similar Messages

  • February is 29 days and offset -365 days offset is wrong

    Hello
    I have many key figures calculating offset periods of -365 days on 0calday interval
    Today I have a problem because february is 29 days and all values with the offsets on 01.Feb.2008 until 29.02.2008 are reading/summing up the values for 01.Feb.2007 until 01.March.2007. 
    Is there a way to solve this without having to change the offsets in all key figures in all queries to -366?
    Thanks in advance
    Heloísa
    Edited by: Heloísa Alves on Mar 5, 2008 10:48 AM

    Dear,
    Try to create a variable with User Exit----
    >  in that give the logic as Prevoius year to date...consult with ur ABAPer to write the logic and use that variable in ur queries then only the problem will get resolved ...
    If u find the standard variable then install it and use it ...................
    Regards
    venu

  • RFC_READ_TABLE dump while reading T006- Urgent

    Hi,
    I am using fm RFC_READ_TABLE ( cloned copy) to get values from another client. But while accessing T006 table it is giving following dump.
    Error Analysis
    In the current program "SAPLSDTX", an ASSIGN statement is supposed to         
    assign a field or structure to a field symbol (using either                   
    FIELD-SYMBOLS ... STRUCTURE s ... or ASSIGN...CASTING....). When              
    converting the base entry of the field symbol "<WA>" (number in base table:   
    33836), it was found that the structure s requested a memory alignment of    
    8.                                                                           
    The calculated offset within the source structure causes an invalid           
    memory alignment. (The offset must be exactly divisible by 8).                
    by 8.)                                                                               
    Can anybody give a info how to correct this. I am using the clone copy of RFC_READ_TABLE fm.
    Thanks
    aRs
    null

    chk this  OSS NOTE
    Symptom
    Function Module does not work in Unicode systems.
    Reason and Prerequisites
    Change of dynamic assign in new versions and row size limited
    Solution
    Please Note warning:
    This function module is only for internal purpose !
    Using this function module is at customers own risk and customer is responsible for adjusting this code to his system.
    No warrenty is given on this Functionmodule RFC_READ_TABLE.
    Symptons:
    Due to Unicode compatibility and no support on the function module RFC_READ_TABLE
    the standard RFC_READ_TABLE does not function any more and causes short dumps.
    Included in this note there is a program to repair the
    function RFC_READ_TABLE and add additional functionality.
    What is changed: the row size is now 4000 positions and
    will fit for most of the tables.
    Additional functionality:
         1   Reading and selecting from the tables is now
            possible with the DISTICT parameter, which will
             prevent double entries.
             If the flag is crossed the SELECT DISTICT is used for the
            read on the database.
         2   Possible to select FIXED row size or compressed
            If the flag is crossed no compressing is used and fields are
             written in full length.
        3   All fields are character fields no other formats are retrieved.
    Implementation:
    There are two ways to implement this extra functionality:
    - 1 Changing of the original function module RFC_READ_TABLE.
        Retrieve a change key from the OSS system to be able
        to change the function module !
    - 2 Implementing the changes into a customer copy of the
        RFC_READ_TABLE function.
         How to make a copy of a the function module ?
         1 First create a function group in the customer name range:
           (X or Y) example YSDTX (SDTX = original from RFC_READ_TABLE).
           SE37 --> Goto --> Function groups --> Create group
          Name function group (example YSDTX) and Short text are
          to be supplied.
           Save and activate the function group (depending on version
           the main program will be activated separate, in the example
           SE38  program SAPLYSDTX --> function activate.
        2 Copy function module RFC_READ_TABLE to YRFC_READ_TABLE.
          SE37 --> function copy
           Supply: From function module = RFC_READ_TABLE
                  To   function module = YRFC_READ_TABLE
                  Function group = YSDTX
          Function Copy and activate the function module.
    For both the methods the rest of the change is the same !
    Implementing and explanation:
    Step 1. Create a structure in the Data Dictionary
            SE11 --> name YTAB4000 --> function create
            Apply a text and field:
            Field --> WA component type CHAR4000
            Activate the structure.
    Step 2. Make sure the setting of your editor are not flagged to 72 pos.
            SE38 --> Utilities --> settings --> Tab editor
                    Don't flag line length 72
    Step 3. SE37 --> supply the function module name.
            Go into change mode for the function modules (SE37) **
            Function --> change and go to the Tab Import (parameters)
            Add 2 new parameters:
            Name: DISTINCT  like SONV-FLAG default SPACE
                  FIX      like SONV-FLAG default 'X'
            Flag for both parameters: Optional and Pass Value.
    Step 4. Go into the tab Tables
            Change into the parameter name DATA the
            associated type into the new created structure YTAB4000.
    Step 5. Go into the tab Source Code.
    Step 6. Check that the top of the source the newly added
            parameters are displayed !
    Step 7. Delete the existing source.
    Step 8. Insert the source from this note (see below) into your program.
    Step 9. Save and activate your function module.
    When asked, get registration key from SAP

  • ASSIGN_BASE_WRONG_ALIGNMENT

    Hi All,
    When I am executing ABAP function module RFC_READ_TABLE, I am geting following error:
    ASSIGN_BASE_WRONG_ALIGNMENT
    Caused by: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in ASSIGN statement in the program SAPLSDTX                                .
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
    This error occurs with SAP System SAP47.
    But, when I try with same input values and execute this function module RFC_READ_TABLE with SAP System SAPERP04, it executes successfully.
    So, Is there any version upgrade for thsi function module implemention in SAP Systems.
    What can we do to avoid this error.
    Below is the comlpete stack trace of error:
    Error in ASSIGN statement in the program &AP.
    In the current program &AP, an ASSIGN statement is supposed to
    assign a field or structure to a field symbol (using either
    FIELD-SYMBOLS ... STRUCTURE s ... or ASSIGN...CASTING....). When
    converting the base entry of the field symbol &N1 (number in base table:
    &P1), it was found that the structure s requested a memory alignment of
    &P3.
    The calculated offset within the source structure causes an invalid
    memory alignment. (The offset must be exactly divisible by &P3).
    by &P3.)
    Thanks in advance.
    Ankit

    According to note 382318:
    Symptom
    A problem occurs in function module RFC_READ_TABLE.
    Reason and Prerequisites
    The scope of function module RFC_READ_TABLE is very restricted. E.g., due to the fixed maximum row size only smaller tables can be accessed. There are several data types that cannot be handled, and also there are doubts regarding the Unicode compatibility of the function module.
    However, all this is quite immaterial, because the function is not meant to be publicly used anyway. It was only created to be used as a sample in various training courses, and is clearly flagged as "not released for customer".
    Solution
    Do not use function module RFC_READ_TABLE in the first place!
    Rob
    Message was edited by:
            Rob Burbank

  • New Extendscript blog

    FYI, Debra Herman has started a blog called "Extending FrameMaker" discussing the use of Extendscript in FM10. General interest stuff.
    See: http://extendingframemaker.blogspot.com/

    Debra's topics to date (newest first):
    Cut, Copy, Paste
    Selecting Text
    Error Code When Deleting a Range and Some Buggy Be...
    Deleting a Text Range
    Adding Text at a Location in Text
    Calculating Offsets
    Working with Text
    Error codes: when are they actually set?
    Debugging with Error Codes
    Ungrouping graphics
    Grouping Graphics
    Import by Reference
    A Peculiar Fact about Frame Graphic Object Propert...
    Counting Insets
    Where's the text?
    Updating a Paragraph Format
    Working with Paragraph Formats
    Getting and Setting a Paragraph Property
    Counting Paragraphs in the Main Flow
    Counting Paragraphs in a Document
    Paragraphs, Ordered and Unordered
    Hooking up the Toolkit
    The Active Document
    Getting Ready to Use FrameMaker with the ESTK
    Hello Again
    Running a (Very Simple) Script
    Document Architecture
    Easier to Code? Easy to Code?
    There's a New Scripting Tool in the Box

  • How do i put the results from a calculation as the offset value

    hi .. i am trying to set the value of the mask offset from the results i get from a calculation.
    this is what i am trying to do
    i want to get a ROI from an image, so i used thresholding to separate it form the background
    then i find the centroid of the image. i then create a mask a little
    larger than the ROI to get rid of the background in an unthresholded
    image but the position of the mask is at origin(0,0)
    i need the centroid of the mask to be the same as the ROI. so i
    subtract the x and y values of the ROI centroid with the centroid of
    the mask to get the offset.  which is done manually. but i want to
    do it for ROIs in different positions, so i want to get the value of
    the subtraction staight into the VI .. how can i do that..?? i tried
    wiring the value of subtraction into the input of the "set offset" node
    but it does not work .. can anyone help me ??thanks very much

    i managed to get it done...i did not know how about the cluster to element function .. could you comment on my program?
     i'm trying to construct a sign language translator.  for the
    signing. i am using yellow colored gloves with colored finger tips. the
    yellow region is to help me detect the position of the gloves during
    thresholding.
    1st of all .. i do thresholding to separate the ROI from the
    background.. then i put a bouding box around the region of interest. is
    there any better and easier way to do this??
    could anyone point me in the right direction ?
     i am very new to LV and image processing. i always have problem
    using some functions especially when it requires lots of settings.
    sometimes the help file does no help much ..
    my next problem after creating the bounding box is how do i extract
    only the colors from the image? i tried color thresholding but the
    result is gray scale. how do i extract only the yellow region of the
    gloves and the finger tips to be further processed? in MATLAB , color
    segmentation is used.. but i can't figure how it works in LV .. please
    help me .. thanx
    Attachments:
    color threshold_andreas_centroid_mask.vi ‏263 KB

  • Additional offset tax line after manual change of calculated tax amount

    Dear all,
    I have the following problem:
    if I manually change the calculated tax amount of a domestic AP invoice in r12 the system generates a second tax line as an offset tax so that the total tax is zero. The system does this even so the respective flag is not set for this supplier. I can only stop this by erasing the link between standard tax and offset tax which is not a permanent option.
    Kind regards
    Carsten

    You can uncheck the Auto Tax Calculation check box in E Business tax module which will ensure that automatic tax calculation will not be done.
    Once the above checkbox is unchecked, you keyed an invoice by entering all the required details click on the Calculate tax button which will perform the tax calculation for your invoice.
    Hope this helps.
    Thanks and Regards
    Manish Jain.

  • [svn:osmf:] 14326: ChromeLibrary: fixing hints from appearing at the wrong vertical offset, and preventing scrub bar time remaining calculations to go negative.

    Revision: 14326
    Revision: 14326
    Author:   [email protected]
    Date:     2010-02-22 08:10:39 -0800 (Mon, 22 Feb 2010)
    Log Message:
    ChromeLibrary: fixing hints from appearing at the wrong vertical offset, and preventing scrub bar time remaining calculations to go negative.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/hint/Hint.as

  • Offset calculation on 0FISCPER

    Dear all,
    I manually have to calculate the offset of the infoobject 0FISCPER, like it is done in the regular query defintion.
    I already retrieved the value from my infoobject and the corresponding offset, but now I'm looking for a smart way to calculate the result of
    0FISCPER - offset.
    Example:
    0FISCPER = 2004004
    OFFSET = -12
    Result = 2003004 (and not 2003992)
    Is there a function module which can do this, or do I have to code it manually?
    Thanks,
    Andi

    I want to use my scenario in a "home-made-RSDICHAPRO-environment", where we want to use logical partitioning on the cubes.
    I want to determine from a variable (could be either an entry field in the selection popup or an automatically determined variable in the restricted key-figure definition (with or without offset)) which cubes I have to access, in order to retrieve all data which was selected.
    I check this variable again a defined table (but more complex like the standard RSDICHAPRO)to fill automatically my 0INFOPROV info-object.
    So I need to check whether an offset was used (and to which 0FISCPER is this offset referring to) in order to fill my 0INFOPROV correctly....
    Andreas

  • Month calculations: DATE() vs EDATE()

    In a recent topic (Challenge to get a date correctly), I mentioned using the DATE function to calculate a date that is (for example) one month later than a given one. Specifically, if cell A1 contains the given date, then I suggested using this formula for a date one month later:
    =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
    Yvan Koenig suggested instead using the simpler EDATE formula, here equivalent to:
    EDATE(A1,1)
    There is, as it turns out, more than simplicity in favor of Yvan's approach. While one might expect the two formulas always to produce the same results, they do not! This is easily seen by constructing the following three column table with a column header:
    1. In cell A2, enter the last day of the first month of this year (January 31, 2008 in the U.S. system, for example). In the cell below it, enter the last day of the second month of this year (Feburary 29, 2008, for example).
    2. Next, select both cells & use the circular fill handle, drawing down to fill the column with a year or so of last-day-of month values.
    3. Select cell B1 (a header cell) & enter in the formula bar & press return:
    =DATE(YEAR(A),MONTH(A)+1,DAY(A))
    4. Likewise, in cell C1 enter:
    =EDATE(A,1)
    Note that the B & C column values are sometimes the same, sometimes not. The same results occur if the "1" in both formulas is replaced with another number of months.
    What seems to be happening is the 'MONTH(A)+n' expression uses the number of days in the month of the "A" cell value as the basis for the 'n months later' calculation, which is not the convention usually used for such things as billing cycles. The EDATE formula follows the normal convention, & is thus the preferred choice for almost all uses imaginable ... unless perhaps you are the one being billed.
    This also applies to 'YEAR(A) + n' calculations.
    So, it would seem that any calculation involving the DATE(year, month, day) form with an arithmetic operator in the year or month element should be used only with great care, if at all.
    BTW, the comments about the month unit of calendar time having "no real purpose today" in http://www.cl.cam.ac.uk/~mgk25/iso-time.html may be of interest.

    I'm aware of the blue warning triangle appearing in these "overflow" situations; however, even when it does not, the results may be different -- for example, with a starting date of January 31st, adding one month in my long formula produces a month argument that is in bounds but (for 2008) yields a date 2 days later than with the EDATE method.
    I don't view this so much a bug as a consequence of the vague nature of the "n months later" or of the "month offset" concept. As the cited scholarly article points out, the concept of the months of the year are of somewhat obscure mystic origins, & there lengths were arbitrarily set, often for reasons more political than practical. Between the 1st & 28th day of any month, the concept is unambiguous -- it is the same numbered day in the other month, but for the 29th through 31st day of the month it is not, depending on the starting month.
    From what little I have been able to discover from casual research, the EDATE results are the standard more by custom than by any well-defined rule: what we mean by the offset references the first, last, or some near-the-end-of-the-month day number, whichever seems the most suitable at the time.
    I do not have Excel on my Macs, but since the functions are similar, I would be interested in learning how that application behaves with this table.

  • Mobile form not calculating on Android Tablet

    I have a Time Sheet with Javascript that adds the times up, and it works perfect with the PC version of Adobe Reader, but when I try to use it on a nexus 7 tablet the calculations don't work.
    I have tried the official Adobe Reader for Android as well as about a dozen other readers.  If there is a reader that will work with this sheet as is, I don't mind paying for it, or perhaps part of my JavaScript is not supported on mobile, and I can change it with a workaround.
    Please Take a look and see what you can see:
    PR_Form_Tablet6.pdf - Google Drive
    I have 2 Functions in here:
    TimeDiff Function:
    function TimeDiff(cStartField, cEndField) {
    var sTimeFormat = 'hh:mm';
    var fDiff = 0;
    // get the start time
    var sStart = this.getField(cStartField).value;
    // get the end time
    var sEnd = this.getField(cEndField).value;
    // complete script only if we have data
    if(sStart != '' & sEnd != '') {
    // convert sStart string to seconds
    var fStart = Time2Num(sTimeFormat, sStart);
    // convert sEnd string to seconds
    var fEnd = Time2Num(sTimeFormat, sEnd);
    // compute difference in seconds
    fDiff += fEnd - fStart;
    return fDiff;
    Time2Num Function:
    function Time2Num(sFormat, sTime) {
    convert time string (sTime) with format of sFormat
    to the seconds since the start of the day
    if(sTime == '') return ''; // exit
    // get date time for Epoch date and sTime
    var oTime = util.scand('mm/dd/yyyy ' + sFormat, '01/01/1970 ' + sTime);
    // convert UTC Offset to milliseonds for adjustment
    var fTZOffset = oTime.getTimezoneOffset() * 1000 * 60
    // time since the start of the day in millseconds
    var fTime = oTime.valueOf() - fTZOffset;
    // convert to seconds and return value
    return Math.round(fTime / 1000);
    And here is a sample field with JavaScript in it:
    event.value = '';
    var fDiff = 0;
    // compute the difference for first pair of fields
    // get the start time
    var sStart = this.getField('Tech_2_Start').value;
    // get the end time
    var sEnd = this.getField('Tech_2_End').value;
    // complete script only if we have data
    if(sStart != '' & sEnd != '') {
    // convert sStart string to seconds
    var fStart = Time2Num('hh:mm', sStart);
    // convert sEnd string to seconds
    var fEnd = Time2Num('hh:mm', sEnd);
    // compute difference in seconds
    fDiff += fEnd - fStart;
    fDiff = TimeDiff('Tech_2_Start', 'Tech_2_End');
    // compute and add the difference for the second pair of fields
    // get the start time
    var sStart = this.getField('Tech_2_Start_2').value;
    // get the end time
    var sEnd = this.getField('Tech_2_End_2').value;
    // complete script only if we have data
    if(sStart != '' & sEnd != '') {
    // convert sStart string to seconds
    var fStart = Time2Num('hh:mm', sStart);
    // convert sEnd string to seconds
    var fEnd = Time2Num('hh:mm', sEnd);
    // compute difference in seconds
    fDiff += fEnd - fStart;
    fDiff += TimeDiff('Tech_2_Start_2', 'Tech_2_End_2');
    // convert to rounded minutes if not zero
    if (fDiff != 0) {
    fDiff = Math.round(fDiff / 60);
    // report decimal hours
    event.value = fDiff / 60;
    Thanks,
    Mike

    Hi Dennis,
    Thanks for the response. This is interesting because I went through the process of testing the LiveCycle generated form (ES2) on my personal Android device before my company invested in the Sony units. Since the update has happened, the form no longer works on my personal device or the Sony’s of course. I’ve tried the different export settings and each time, no luck. A refund would be greatly appreciated since I purchased the product to continue the work at home on my personal laptop. Please advise on what the process is for a refund.
    Thank you,
    Bryan Gonzales
    GIS Technician |RTS
    ASRC Energy Services Alaska, Inc.
    3900 C Street, Suite 700
    Anchorage, AK 99503
    Desk: 907-334-1502
    One Crew, One Journey
    Honoring the values of our founders as we develop the future.
      <http://www.asrcenergy.com/>

  • Calculation of Interest on overdue witholding taxes

    In my scenario the interest needs to be calculated on the overdue payments that have not yet been paid by the client to the goverment of TDS so deducted by the system. The interest needs to be calculated from the 7th of next month till date the amount is actually paid. The tds so deducted in the period 1-7th of the month will not be liable for interest calculation. Again in the next month the same cycle needs to be repeated for interest calculation.
    Can anyone help me out if how to achieve the same.
    Regards,
    Anurag Gupta

    Hi
    You may like to check the config from the below angles :
    1) interest payment is produced if the credit interest (because of interest calculated on items paid before the due date) is greater than the debit interest.
    2) Calculate interest on items paid before due date
    Indicator which means that credit interest is calculated for items paid prior to their due date, provided that the item paid was not subject to a cash discount. Interest is calculated using credit interest rates.
    Note
    The system calculates credit interest only on those clearing transactions where all payments were made before the due date. If you do not select this option for those transactions then the items are ignored.
    This option has no effect in the case of clearing transactions where payments are made both before and after the due date. For transactions such as these, interest is always calculated on the basis of debit interest.
    For partial payments and down payment offsetting items that are made before the due date of the invoice, interest is calculated from the document date if this indicator is set. If it is not set, interest is calculated from the due date of the invoice.
    3) Calculate Interest as of Due Date for Net Payment
    Indicator which means that interest is calculated as of the due date for net payment; otherwise, you pay interest as of the settlement period lower limit (if the due date for net payment is before it) or as of the date of the last (according to the master record) interest caluclation (if the corresponding parameter is set).
    Regards
    S

  • Calculation of Interest on Security Deposits Maintained with Vendors

    Hi Friends,
    We have some problem on Line Item Interest calculation.
    We want to calculate Interest on Security Deposits(Spl GL) given to Vendors.
    There is no Interest on Normal Items.
    When we run Interest (f.47) it not calculating on cleared items eventhough we select interest for all items.
    Example:
    We paid Deposit on 01.01.2007 an amount of $10000
    We recieved back total amount of Deposit($10000) on 15.02.2007
    and when we run interest run (f.47) its not calculating any interest.
    But we want to calculate interest for the period  the deposit outstanding i.e. from 01.01.2007 to 14.02.2007.
    Can any one help us in this regards,
    Thanks in Advance,
    Purnachandra RM
    null

    Hi
    You may like to check the config from the below angles :
    1) interest payment is produced if the credit interest (because of interest calculated on items paid before the due date) is greater than the debit interest.
    2) Calculate interest on items paid before due date
    Indicator which means that credit interest is calculated for items paid prior to their due date, provided that the item paid was not subject to a cash discount. Interest is calculated using credit interest rates.
    Note
    The system calculates credit interest only on those clearing transactions where all payments were made before the due date. If you do not select this option for those transactions then the items are ignored.
    This option has no effect in the case of clearing transactions where payments are made both before and after the due date. For transactions such as these, interest is always calculated on the basis of debit interest.
    For partial payments and down payment offsetting items that are made before the due date of the invoice, interest is calculated from the document date if this indicator is set. If it is not set, interest is calculated from the due date of the invoice.
    3) Calculate Interest as of Due Date for Net Payment
    Indicator which means that interest is calculated as of the due date for net payment; otherwise, you pay interest as of the settlement period lower limit (if the due date for net payment is before it) or as of the date of the last (according to the master record) interest caluclation (if the corresponding parameter is set).
    Regards
    S

  • System error message and application crash - ModName: lvrt.dll Offset: 00080a6a

    I'm running into an error message which is proving particularly difficult to debug. After my built application has been running for some time, a windows system error will pop up telling me my application has done something bad and needs to be shut down (and sorry for the inconvenience). Clicking through to the "see what the error report contains" page reveals the issue as being in the lvrt.dll module at offset 0080a6a. 
    This unfortunately doesn't mean much to me.
    On some occasions when I click "Don't Send", another error message pops up informing me there is "Not enough memory available to complete this operation".
    The program will typically run between 8 and 24 hours before the error occurs, though I've had it run error-free for upwards of 48.
    My program is unfortunately fairly large, and depends on communication with proprietary hardware so can't be uploaded in a functional state. In general terms, the body of the program (which is executing when the error occurs) involves RS-485 serial communication and simultaneous display of data to 7 continuously updating strip charts (producer-consumer design), along with envalope detection and RMS calculations in real time, all of which is multiplied by two parallel channels (around 1Mb/s data rate for each). The data is also buffered and stored in binary files for later review. Binary files are closed and a new one is opened for every 10 minutes of data collection (approx 50MB of data).
    There are also about 40 user controls associated with each channel, and are polled periodically (a couple times a second). The crashes occur during over night tests, however, when there is no user input. Globals are used for inter-panel communication, but no global is written to in more than one location (most are read in multiple locations).
    I know this is a bit of a shot in the dark here, but does the lvrt.dll error at offset 00080a6a mean anything to anyone? Are there any "typical" causes for a failure in lvrt.dll having to do with prolonged high data rate serial communications? For reference, this has occured on multiple machines, but all the machines it has occured on are identical out-of-the-box laptop models running XP 32. I'm going to try to run an overnight test tonight on the development machine and see if I get any different results (Vista 64 vs Windows XP 32).
    I can't say my hopes are high with this one, and I'm gonna continue to comb over the code for any possible conflicts, but any insight would be appreciated.

    Claire,
    Next time the error message comes up I will take a screenshot of it for you. Unfortunately that may not be until Monday, as tonight is the soonest I'll be able to run another long-term test. The time between failures is the most frustrating part to debug!
    There are no errors on compiling or building the application in LabVIEW. My testing has been done mostly on the distribution laptops in application form, with no LabVIEW dev tools installed, Windows XP 32 bit.
    The overnight test I attempted on the development machine (within the LabVIEW environment) welcomed me the next morning with a rebooted machine, and so I wasn't able to see an error message (if there was one). Vista 64 on the development machine. Reviewing the data files, I got about 9 hours worth before the crash.
    Given the time between failures and the large volume of data I'm passing around, this seems like memory leak type behavior. I'm a bit confused by the fact that it seems to fail in lvrt.dll every time, though. I'm don't know what that indicates, if anything.

  • Replacement path variable with offsets

    Hi experts,
    I have the requirement to report receivables (open items) historically by fiscal year / period.
    More precisely, each period should show the open items that are open at the end of the period.
    Example:
    001.2010 (shows open items from 31.01.2010)
    002.2010 (shows open items from 28.02.2010)
    ...etc.
    The idea is that the user enters a fiscal year/period using a manual entry variable.
    The open items should be calculated as follows:
    KF: Amount
    Posting Date <= Variable
    Clearing > Variable or unassigned
    Variable is a replacement variable that is replaced by attribute "Date To" from the user entry Variable (Fiscal year period)
    E.g. if the user enters 008.2010, then this value is automatically replaced by 31.08.2010.
    Generally this works.
    However, to view the values for the last 12 months, a structure is needed consisting of 12 elements with offsets in order to show the 12 months prior to the selected period (e.g. 001.2010 - 002.2010 - 003.2010 ....etc.)
    The problem is that the replacement only considers the user's variable entry and ignors the offsets.
    Example:
    User enters 008.2010.
    In the column strucure I show 3 months 006.2010, 007.2010, 008.2010.
    Then all columns would show items open on 008.2010 - the offsets are ignored.
    Any idea, why this happens and how it can be resolved?
    This problem has given me a headache for days.
    Your help is much appreciated.
    Thanks and regards,
    Alex
    The user should be able to enter a fiscal year / period and

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

Maybe you are looking for