is it always necessary to save edit data in temporal reasoning somewhere? is it possible that something calculated rules itself?

@With the help of temporal reasoning I give out all the months in the given interval so tell rate changes every month. But for that i'll need the rate changing Al month from some of the databases or should mention only in OPA. Right? What happens if I have a scenario that the rate for the following (next) month depends on the value of output from the previous month. and this will go until the last months apart. Here I need a loop that is not possible in the OPA. any other solution?

the interval is jan 2015-2016 jan.

output = a + b

a and b he's be entered. but say 'b' value is constant for all calculations for months. and given the value of 'a' will be used only for 2015 jan as its different for each month.

But then for February 2015 value of 'a' will be out January 2015. and so on.

I dug up an example of compound interest that some time ago, I created which may give you some ideas. BTW, I assume you are using OPA 10.4?

In this example, the value of the currency changes every month, depending on the value of the previous month. For example: 1 January $2015 1 000 is deposited at 5% interest, and February 1, 2015 an another $1,000 is deposited at 10% interest, March 1, 2015, the final amount is $2 019,69. First you must calculate the amount from January 1, 2015, to February 1, 2015, for $1,000 at 5% interest which is $1 004,26. February 1, 2015 March 1, 2015, the interest must be calculated is £1000 + $1 004,26 to 10% interest.

This should work for any number of months. In the test case, I've tried, I used only 3 months.

Here are the details...

Entities

Global

the month

Relationships

Global - one - to-many--> of the month (containment relationship: the months)

the month - several - to-several--> of the month (name of the relationship: the immediate previous months)

Rules for calculation of compound interest

the final amount for the month = the amount of the principal for the month * Xy ((1 + le taux d'intérêt pour les mois/100/365), (the number of days in the month))

(loop rule)

the amount of the principal for the month = the amount of the deposit for the month + the amount of deferral on the previous month

(loop rule)

the amount of report on the month previous = InstanceSum (the immediate preceding months, the amount of report for the month)

(loop rule)

the amount of the deferral for the month = the amount of the principal for the month * Xy ((1 + le taux d'intérêt pour les mois/100/365), (the number of days in the month))

Cross the reasoning (inferred relationship) entity

the month (month) is a member of the immediate previous months so

.. .the start date of month previous = AddMonths (date of beginning of the month, - 1)

Dates

is the month the sooner if

.. .the beginning of month date = the date of beginning of the first month

the start date of the first month = InstanceMinimum (the months, the date of beginning of the month)

See you soon,.

Jasmine

Tags: Oracle Applications

Similar Questions

  • How can I control the writing-data-to - spreadsheet.vi to save the data?

    Hi all

    I tried to draw a wave and save the data to excel. Now, I want to control the writing-data-to - spreadsheet.vi to save data when I want which means that the vi records nothing until I have send a command to it. How can I make this happen or do I need any other screws?

    Nicky

    Hello

    Maybe this wat you are trying to do... Let me know if it helps...

    Kind regards

    amine31

    (Kudos are always welcome)

  • How to save the data in a form called?

    Hi all.

    I have two froms.like FORM A and FORM b.

    I have a button on the FORM B.

    When I click on this button, FORM B and FORM data should be store in the database...

    I wrote something like this in the form B

    when_button_pressed->

    commit_form;

    go_form ("c\user\babu\FORM A.fmx");

    commit;

    Here, my problem is when I click on save button only saved FORM B, FORM A not memorizing the data in the database.

    Please help me and tell me where the error...

    Post edited by: N.B.Babu

    I guess that the modules form a calls B with OPEN_FORM module (..., SESSION), IE. Module B works in the new session of database

    (by the way, the database connection is the same, because the connection to a database can go several database sessions).

    Your code cannot save the data in the two sessions of database:

    commit_form; -This saves the data only from module B (because A module work in diferent database session).

    go_form ("c\user\babu\FORM A.fmx");  -Now you in module A.

    commit; -This has no effect, you are now on the module to a.

    Kind regards

    Zlatko

  • United Nations-editing data from a file, without eval

    I play with the writing of data in a file so that it can persist between sessions. I use

    f.Write (Data.toSource ());

    to save my data, where f is the subject of my file, and

    data var = eval (f.read ());

    to retrieve the data from the file. But that seems to be a way very unsafe to do things. Of course, it is unlikely that someone will use, preference files AEscript as a door furtively, but it's always just security by obscurity.

    Is there a way to read data serialized into a file without using eval()? Or I have to roll-my-own parser / serialize to do safely?

    It turns out that this question has an answer here:

    Read in JSON · EVAL file and to not NOT fabiantheblind/extendscript Wiki · GitHub

  • How to save profiling data?

    I would like to save profiling data. The documentation states:

    1. Select the application in the profile view.
    2. open the drop-down list in the profile view, and select Save.

    My problem is that I can't seem to locate this combo... I've probably got to be overlooking something... someone wants to give me some additional information?

    EDIT: it's for the latest beta version of Flex Builder 3

    Hi wouter vdb.
    You can access the drop-down list on the toolbar of the Profiler, there is a little white down the arrow to the right of the Finish button.
    When you click on this button, a menu opens and the registration option is available.
    I hope this helps.
    Carmen

  • Firefox 4 does not save form data after sending form and pressing the previous button

    Firefox 4 does not save form data after sending form and pressing the back button... It's very annoying that it erases all data. It worked fine on FF3.

    See:

    • Firefox or tools > Options > privacy > History: "don't forget to search and form history."
  • How to save the data of different rates in a single VI?

    Hello

    I tried to acquire 2-channel measurement of voltage at 10 kHz and analyze data, finally to save the data to both 1 kHz and 1 Hz. What I did is this loop of producer/consumer use to do the work of recording at different rates. I have queued all the data in the main loop, and then removed the data and write it to the file in other loops. I added "wait = 1 ms' a consumer loop for recording data at 1 kHz (loop of fast logging) and added" wait = 1000ms' in another loop to get the slow 1 Hz (logging loop) data record.

    My problem is that the data record works fine in the case of 1 Hz, but it does not work for the case of 1 kHz. Although the time-out period defined as 1ms, the interval between two samples in the loop of fast data recording is about 100ms.  Subsequently, 1ms, 10ms, 100ms, 150ms tried in this loop to see what intervals are in these cases. I found that the intervals are same as assigned in the timeout greater than 100 ms, but if the time-out is set to 1ms or 10ms, the intervals are again around 100ms.

    My question is - why I can't reach data record 1 kHz using loop of consumers/producers, while the same way works for the case of 1 Hz?

    Thank you very much

    Hao

    You are sampling at 10 kHz and you want to back up your data "as if you sampled at 1 kHz and 1 Hz", if I understand correctly.  I also understand that you use the design of producer/consumer model to help with this (a good idea).

    I'm assuming that the producer 'product' a segment of data at a time, to say the value of a second of data or a 2 x 10000 I16 (assuming a 16-bit integer A/D) table you put into a queue and wait for the consumer.

    If you have data at 10 kHz, how do you get representations to 1 kHz or 1 Hz?  There are (at least) two possibilities - average data over the interval of proper time, or (re) sample data.  The good thing is that you can handle the situation 1 kHz and 1 Hz, essentially at the same time and in the same processing loop.  I'll discuss the case 1 kHz - with the assumptions I made, the case of 1 Hz becomes almost trivial.  I'll discuss treatment also just one channel, as it is similarly almost trivial to go from 1 to N-channel.

    If you have 1 second of data sampled at 10 kHz, and will "reduce" 1 second of data sampled at 1 kHz.  Note that you have 10 samples for each data point that you want in the end.  The "Averaging" method said "Replace all 10 points in the average of these 10 points", while "resampling" method said "replace 10 points with, say, the first point, ignoring the others.  An easy way to do this is to use the Reshape feature to transform an array of 10 x 1000 elements of your array of 10000 items 1-D 2D.  Now, you can use a loop FOR an average of 10 items or simply extract the first.  [This is where almost everyone, including me, a mistake - when you put a 10 x 1000 2D array in a loop, you get 10 iterations of 1000 items and we want 1000 iterations of 10 items.]  Oops, what to do?  [Simple - converts 2D array before sending in the loop FOR.]

    So when you have processed your 10,000 points and got both 1000 samples "1 kHz" and 1 "1 Hz" sample, you write each of them in their respective folder and wait for the next item in the queue of the consumer.  Consumer focus on the queue loop, it will automatically 'block', waiting for the producer of the 'feed' some data.  Note that the producer generates data once per second, producing 10000 points for the consumer in the process, but the time to deal with these points and perform the required disk i/o should take only a few milliseconds (certainly not more than 100, even if writing to a floppy!), so you don't have much time to do other interesting things (such as display data).

    Bob Schor

  • save millions datas in a sec

    Hi guys, I tried searching, but I have not found the answer, that's why I'm writing this.

    How many points/samples which can be saved in 1 sec with Labview (max)? It depends on my PC specs? I searched this forum and found this old thread http://forums.ni.com/t5/LabVIEW/Extremely-large-files/m-p/730139. With this program of Altenbach (Herr), I tried to save the data to a .txt file using the Save1Data.vi and Signalsub.vi. The problem comes when I try to save as 100,000 points. Y at - it advice to save as many samples, I need that to save about 1 million samples in 1 sec?


  • How to save the data in table 1 d to Excel in continuous

    Mr President.

    How to save the data in table 1 d to Excel at all times, so that all the data of the first scan must be placed first thought and all the data from the second analysis must be placed on the second Board and continue on the street...

    Sy@m...

    Hi Sy@m

    Here is a vi that might give you a few ideas to try:

  • Save the data to the excel file

    Hello

    I make a program reads the value of the probe via serial port... but I don't know how I can record this data in excel file... I open the example in the labview example, but I don't want to like this... becaue I use a while loop in my program that cause opened "multi" excel file... . How can I solve this problem?

    You need to think about what you want to do, not how you want to do.  I'll make a few assumptions here - adopt to your notebook loads "real."

    I guess you want to take a series of readings from a device (sensor, serial port).  I suppose you take multiple readings, perhaps their display on a table or chart, for a certain period of time.  Once you have a set of data, you want to save all the data in an Excel file.

    If this scenario is correct, there are three distinct phases to this task - implemented the data collection (open the serial port, manage the interactions of the user according to the needs), data collection (and potentially produce tables or graphs) and save the data.  Note that only step 2, collect data, involves a repetitive action appropriate for a while loop.  Once you have all the data, you can then open an Excel report, use something like Excel table easy to put the Table in the report or chart Excel easy to put a chart in the report and save the report in evidence, save the report.

    If you are using a relatively recent version of LabVIEW (2010 or later), the new generation Excel report screws are pretty easy to use.

  • Save triggered data of 2 modules

    I use SignalExpress (3.0) with USB cDAQ-9172, NI9203 current and voltage NI9201 module.  After the acquisition of (continuous) data, I use a trigger current 9203 signal software to analyze and record the triggered data (collected on the 8 channels on 9203).  However, I am not able to save the data of the voltage module 9201?  Looks like that the trigger for software only accepts a single module entry (I think).  As indicated in the attachment "triggering Input.jpg" I can only select 1 module as input for the relaxation of software (current module or module voltage)

    Is it possible to trigger on a single track and then save the data of these two modules?

    Thank you!

    Ryan

    Hey Ryan!

    You can actually do all this one-step DAQmx Acquire.  There is a tab in the acquisition stage where you can specify your trigger.  Then, there's a recording options tab up at the top where you can choose to save your data when starts it logging to a file TDMS that can be read in excel.

  • HP 54602 B oscilloscope to view 2 channels and save the data to a file

    Hello

    I use a HP Oscilloscope 54602 B to plot the voltage and current in a circuit. So I need LabVIEW to save the data of the two strings in a file or to have the plot of both channels. I used the "get started" VI with the driver and I am able to get the trace of the 1 channel. I'm not familiar with programming in labview so y at - it someone who has a VI near the VI that I need?

    Thank you.

    Try these.

  • Save the data on the button and then save the data on a spreadsheet on another key.

    Hello

    I am a new user of Labview. I'm developing a Labview 7.1 program that will record data on the keys. Another button, he must stop recording, and then open a file dialog box to save the data stored on a worksheet. I read in this forum that I have run several loops in parallel but unfortunately I can't see the examples because I use an older version of Labview. I tried to do to pass the data in a table, once recording is started, and then I carry the data to write a function that spreadsheet inside an another case statement. However, once I put the writing on the spreadsheet for the case statement he cannot write. I tried to put out the statement box but it save only a single set of data. Sorry if I am not clear with my explanation. It will be greatly appreciated if someone can give me some advice on this.

    Thanks in advance for your information.

    See you soon,.

    Anson

    You want to build a table of data.
    If the Boolean value is true, you will add a data point in the table.

    If it's wrong, you do not add anything, and the loop will be re-iterate.

    In the example below, the same code appears twice.

    Half top shows the case of 'Real' and the bottom half shows the case of 'false '.

  • How to use "Write to the spreadsheet" to save the data when I want?

    When I use write on worksheet to record data, I must determine whether to save data or not before running the program, is there a way I can run the program and then decide whether to save the data, which means I can have a 'save' botton After runing the program, when I shoot, I can record data, otherwise, it is not. Thank you.


  • Save the data in a horizentall

    Hello

    Any that offered little help on how to save the data in a portrait. As a result of my attachment all my datas saved az a tables!

    And also, I'll be glad if you told me that I can add text in front of my data as an outamaticlly to explain?

    Any suggestions would be greatly appreciated! Thank you very much!

    Sincerely,

    First convert your string numbers using decimal channel number.  Once your numbers have the appearance of a string, you can format the text with them.  If finally, you can use concatenate strings to concatenate (add all channels) your number in the string with another text format:

    This code would create the following string:

    Then, you can save your all channels on a line using the same method as above.

Maybe you are looking for