Complex Mathmatical Calculation

My project for the summer is to create a desktop calculator that accepts any altitude between Sea Level and 10,000 feet and any temperature between -15 and 45 degrees Celsius and then automatically displays an aircrafts maximum allowable takeoff weight. Creating the Panel, text boxes, labels etc are no problem with my basic Java programming knowledge but I have no idea where to start with the actual calculations. I would imagine some sort of algorithm would be used but know basically nothing about them. Help getting pointed in the right direction would be greatly appreciated.
Here's a link to an Aircraft Weight, Altitude and Temperature Chart (WAT Chart) so you can see what I'm talking about. The personal web page is about 110KB because of the chart so it might take about 10-20 seconds to load is you're using a dialup connection. Any help would be greatly appreciated.
http://mywebpage.netscape.com/MichaelEKauffman/
Thanks in advance!

You are right - the posted chart is only applicable to a Hawker Siddeley 125-700A when using 0 Degrees flaps and the automatic performance reserve system (APR). I have similar charts that use 15 degrees flaps and even those that include the use of thrust reversers and with and without the APR. From the posts so far it appears I have my work cut out for me this summer and will be brushing up on my Calculus. The feedback thus far has been greatly appreciated and thanks in advance for any others who have additional feedback or ideas.
By the way, the posted Weight, Altitude and Temperature Chart (WAT Chart) is the least complicated of the Summer Project. There are also Takeoff and Accelerated Stop Distance charts, First and Second Segment Climb Gradient Charts among others for the same aircraft. My thoughts were if I could figure out how to do the WAT Chart then figuring out other more complicated charts would become a little more obvious. More charts could be posted to my personal web space if somebody indicated an interest. Thanks again everybody for the help!
Michael

Similar Messages

  • Complex SQL calculated/Group Query

    I am trying to write a complex aggregate query(s) to compile a standings table for a soccer league.
    There are four related tables:
    Matches
    Goals
    Players
    teams
    I have yet to finalize the database structure so I can add fields if necessary.
    In the goals table I track the match that the goal was scored in and which player
    scored it.
    I am trying to create a query that will give me a standings table.
    The fields I need to calculate are:
    team name
    Wins
    Loses
    Draws
    For instance:  There was a match on 4/21/2012.  The players on HomeTeam(A) scored a combined 6 goals.  The players on AwayTeam(B) scored 1 goal (All stored in the Goals table).  Therefore, Hometeam won by a score of 6-1.  I need
    a query that spits out:
    Team                Wins          Losses          Draws         
    Points
    HomeTeam(A)      1                 0                 0                
    3
    AwayTeam(B)       0                 1                 0                 3
    Wins are worth 3 Losses 0 and Draws 1 point each team.
    I am a long time SQL admin, but I think the complexity of calculating this is a little beyong me.  I need some help to get where I need to be.

    Okay, I haven't yet been able to figure out the draws because of the trouble of linking back to both teams, but here's what I have so far.
    First, here is the test data:
    Declare @tvMatches Table (
    MatchID int IDENTITY(1,1)
    ,MatchDate datetime
    ,HomeTeamID int
    ,AwayTeamID int
    Declare @tvGoals Table (
    GoalID int IDENTITY(1,1)
    ,MatchID int
    ,PlayerID int
    ,TeamID int
    Declare @tvPlayers Table (
    PlayerID int IDENTITY(1,1)
    ,TeamID int
    ,PlayerName varchar(30)
    Declare @tvTeams Table (
    TeamID int IDENTITY(1,1)
    ,TeamName varchar(20)
    Insert @tvTeams
    Select 'Winners'
    Union All
    Select 'Losers'
    Union All
    Select 'Friars'
    Union All
    Select 'Planes'
    Insert @tvPlayers
    Select 1, 'Bill'
    Union All
    Select 1, 'Jim'
    Union All
    Select 1, 'Ken'
    Union All
    Select 2, 'James'
    Union All
    Select 2, 'Smithy'
    Union All
    Select 2, 'Flip'
    Union All
    Select 3, 'Dave'
    Union All
    Select 3, 'Alan'
    Union All
    Select 3, 'Ethan'
    Union All
    Select 4, 'Naomi'
    Union All
    Select 4, 'Erland'
    Union All
    Select 4, 'Alejandro'
    Insert @tvMatches
    Select '20120101', 1, 2
    Union All
    Select '20120201', 3, 4
    Union All
    Select '20120301', 4, 1
    --Winners beat Losers 3-2
    --Planes beat Friars 4-2
    --Winners beat Planes 2-1
    Insert @tvGoals --Match, Player, Team
    Select 1, 1, 1
    Union All
    Select 1, 3, 1
    Union All
    Select 1, 5, 2
    Union All
    Select 1, 6, 2
    Union All
    Select 1, 2, 1
    Union All
    Select 2, 7, 3
    Union All
    Select 2, 8, 3
    Union All
    Select 2, 10, 4
    Union All
    Select 2, 11, 4
    Union All
    Select 2, 12, 4
    Union All
    Select 2, 11, 4
    Union All
    Select 3, 1, 1
    Union All
    Select 3, 3, 1
    Union All
    Select 3, 11, 4
    Using this test data, you want to compile the actual match outcomes.  This can be problematic to do on the fly every time though, if you have a lot of matches or teams to calculate for.  But, with a simple cte, we have:
    ;with cteMatches as
    Select m.MatchID
    ,m.MatchDate
    ,m.HomeTeamID
    ,ht.TeamName HomeTeamName
    ,m.AwayTeamID
    ,at.TeamName AwayTeamName
    ,( Select Count(1)
    From @tvGoals g
    Where g.MatchID = m.MatchID
    And g.TeamID = m.HomeTeamID
    ) HomeScore
    ,( Select Count(1)
    From @tvGoals g
    Where g.MatchID = m.MatchID
    And g.TeamID = m.AwayTeamID
    ) AwayScore
    From @tvMatches m
    join @tvTeams ht
    on m.HomeTeamID = ht.TeamID
    join @tvTeams at
    on m.AwayTeamID = at.TeamID
    ) --select * from cteMatches
    This returns the MatchID, MatchDate, team information and the score.  Basically, you have the match, team and player data tied to the goals table, so you just do a count (using correlated subqueries) to get the score of each team.  Next step is
    to calculate the winner and loser (and eventually whether there even was a winner) by comparing the scores:
    ,cteWinners as
    Select cm.MatchID
    ,cm.HomeTeamID
    ,cm.HomeTeamName
    ,cm.AwayTeamID
    ,cm.AwayTeamName
    ,Case
    When cm.HomeScore > cm.AwayScore Then cm.HomeTeamID
    When cm.HomeScore < cm.AwayScore Then cm.AwayTeamID
    Else 0
    End WinningTeamID
    ,Case
    When cm.HomeScore > cm.AwayScore Then cm.AwayTeamID
    When cm.HomeScore < cm.AwayScore Then cm.HomeTeamID
    Else 0
    End LosingTeamID
    From cteMatches cm
    ) --select * from ctewinners
    This returns MatchID, team information and the ID's for winning and losing teams.  For now it returns 0 if it's a draw.  Once we know the outcomes of all the matches, we calculate the actual win/loss for each team:
    ,cteRecords as
    Select t.TeamName
    ,Count( Case
    When cw.WinningTeamID = t.TeamID Then 1
    End
    ) Wins
    ,Count( Case
    When cw.LosingTeamID = t.TeamID Then 1
    End
    ) Losses
    From @tvTeams t
    join cteWinners cw
    on t.TeamID = cw.HomeTeamID
    or t.TeamID = cw.AwayTeamID
    Group By t.TeamName
    ) --select * from cteRecords
    That last cte returns just team name, and then the number of wins and losses for each team.  This is where I got stuck with the draws, because I'm not quite sure yet how to properly assign a draw to both teams involved.
    Now, finally you put it all together with some simple match to determine the points, and there you are:
    Select TeamName
    ,Wins
    ,Losses
    ,(Wins * 3) Points
    From cteRecords

  • Need help on complex math calculation in labview

    I need some help by being pointed in the right direction.  I have a piece of old lab equipment that I will be connecting to labview.  In order to send commands to the hardware, I have to calculate a checksum.  The checksum algorythm requires me to take alphanumeric characters, convert them to binary, perform binary addition, perform an Xor, mask certain digits, and convert the resultant binary string back to an ascii character.  Does labview have the capabilities to do this on it's own, or should I look at connecting to something like an external dll? 
    I have Visual Studio 2008 and some previous VB experience, so I think I could write a program that would do the calculation, but don't really know exactly what type of project (dll, etc.) is best.  Are there any specific settings for the dll so that labview can use it.  I see an example for C++ for Visual Studio 2005, but that is as close as I can get.  I only know VB, not C# or C++
    Can someone please point me in the right direction?
    Tron
    Solved!
    Go to Solution.

    You basically need some logical shifts and ANDs.
    Check version 2.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV
    Attachments:
    Checksum ver 2.vi ‏10 KB

  • Spreadsheet structure - complex cost calculation

    I am trying to set up a semi-automatic spreadsheet that will help me prepare quotes for building work.
    I would appreciate any advice on the best set up that would for this and possible functions I would need to use to make it work. I tried finding a suitable solution or a template but to no avail.
    I'll try to explain the requirements as clearly as I can, but please let me know if there is any further explanation you may require.
    1. I have many tables that I set up to calculate costs and prices of particular types of work, i.e. building a brick wall or laying foundations
    1.1 Each table has the same columns such as'type of resource', 'quantity', 'price per unit', 'cost', 'profit', 'price'
    1.2 Each table has a different number of rows, depending on number of resources required for the particular type of work, some of the tables have multiple header rows to allow for data entry cells, such as 'length' or 'height'
    1.3 I keep the tables in a separate file and just copy the ones I need for particular quote, one type of table may be used several times in a quote, depending on type of job quoted, i.e. I may have more than one wall to price
    2. The main sheet of the quote has a table that lists all the items of work I need to price
    2.1 The columns are: 'item id' (unique number), 'item description' and 'tender price'
    2.2 'tender price' is manually linked to 'total price' in the relevant calculation table (I gathered here that perhaps using INDIRECT function will allow the link to be automatic, correct?)
    2.3 Right now I use 'item id' as the name of the relevant table to be able to recognise which item it calculates
    3.0 I need a summary sheet with few tables that will give me various information. The information required is:
    - materials list and quantities collected from all the calculation tables
    - labour list as above
    - labour and materials per build stage (I need to add stages to the tables first)
    I'm not sure this can work with me using separate tables for each item calculation. I think that if I put all the calculations into one, big table I may be able to pull info out by using categories, however I would like to avoid this as I would end up with very large, messy tables on larger quotes.
    I have used excel and a combination of outline and pivot tables in the past, but it was by no means a perfect solution.
    I hope my explanation is clear and I do appreciate your help.
    Regards
    Bart

    Bart,
    I think I have what you were looking for. I only addressed what I thought was your concern.
    1. I added a table to your "general calculators" sheet, and called it "Data"
    2. I utilized the VLOOKUP and the INDIRECT functions to make your Totals more dynamic.
    3. The formula is going to look to the table referenced in the "A" column of the line. (A3 = 1.1)
    4. The formula will then look at the column heading and find the number in the "Data" table I added.
    5. The lookup will then go over this many columns to find the value of the "Total" line.
    You should be able to copy this formula to all the cells you are looking for the total of. As an example, copy cell C3 to C12. Then range fill to F22. Delete the formulas in C16 and D16 as they will error, because they are not necessary. Repeat the procedure for Job 3, etc.
    If you change the Job (Table) reference in column "A" this will automatically look to the correct table. If you need to add a column some day, Add the column to all the appropriate tables, then add the name and column number to "Data." It should then recalculate correctly.
    I have posted the spreadsheet here:
    https://www.iwork.com/r/?d=samplequoteRevised.numbers&a=p108776228
    If it you cant get to it, let me know....and we can try something else...since I dont have a mobileme account.
    Let me know if you have ANY questions.
    Waza

  • How to do complex engineering calculation in labview.I tried using MATLAB script

    Hello,
    I am trying to use matlab script node to solve two complex equation.But i get different  errors everytime i run my program.sometimes 1048 sometimes 1050 and sometimes it says LABVIEW could not extract variable from Matlab.I am attaching  my MATLAB script node with this thread.Please Help me out to get rid of this problem.
    I am  using LV-8 and MATLAB R-2006a.
    Attachments:
    matlab.vi ‏10 KB

    Hi Praween,
    beside my little MatLab knowledge I tried to replace your formula with equivalent LV code...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    matlab_lv80.vi ‏18 KB

  • Complex number calculation

    Hello everyone!
    I am working on this code to compute complex numbers (a+-bi) and I am a little stuck - I get an error message:
    <<<invalid method declaration; return type required>>>public ComplexN( double re, double im)>>>>
    Please, can anyone help me.
    public class Complex {
        private double real = 0.0;
        private double imaginary = 0.0;
        public Complex() { this( 0, 0 );}
        double r = real;
        double i = imaginary;
        public ComplexN( double re,  double im) { this(re,im);}
        public Complex add( Complex a, Complex b ) { return  new Complex(a.r + b.r, a.i + b.i);}
        public Complex subtract( Complex a, Complex b ) { return new Complex(a.r - b.r, a.i - b.i);}
        public String toString() {return String.format( "(%.1f, %.1f)", real, imaginary );}
        Object[] add(Complex b) {return null;}
        Object[] subtract(Complex b) {return null;}
    ==================================================
    public class ComplexTest
       public static void main( String args[] )
          Complex a = new Complex( 9.5, 7.7 );
          Complex b = new Complex( 1.2, 3.1 );
          System.out.printf( "a = %s\n", a );
          System.out.printf( "b = %s\n", b );
          System.out.printf( "a + b = %s\n", a.add( b ) );
          System.out.printf( "a - b = %s\n", a.subtract( b ) );
    }

    If you take the N off the name, you get this:
    public Complex( double re,  double im) {
      this(re,im);
    }OK, now walk through an instantiation like this:
    Complex c = new Complex(1.0, 1.0);You call that constructor. And that constructor then delegates to the constructor that takes two double arguments. That is, it delegates to itself.
    So it would just go on delegating to itself for eternity. This is bad.

  • Complex PCR calculation - Reg

    Hi Gurus,
    Please go through the following PCR with input & output tables and explain the calculation. What to do to get the proposed value.
    IT
    /092 -   Rate: 12.07
    WT X000 OT 1.5 rate- Number: 45.00
          Z015      3            AMT?0
          Z015      3   =        NUM?0
          Z015      3   = *      RTE?0
          Z015      3   = * =    VALBS?
          Z015      3   = * = X  GCY Z115*
          Z115      *           VAKEYALZNR
          Z115      *   N        VWTCL 18
          Z115      *   N *      GCY ZZ15
          ZZ15      *            WGTYP?
          ZZ15      *   ****     VALBS0
          ZZ15      *   ****     ADDNA *
          ZZ15      *   ****     FILLF N
          ZZ15      *   ****     WGTYP=*
          ZZ15      *   ****     VALBS1
          ZZ15      *   ****     NEXTR A
          ZZ15      *   ****     ADDNA *
          ZZ15      *   ****     FILLF N
          ZZ15      *   ****     WGTYP=*
          ZZ15      *   ****     VALBS2
          ZZ15      *   ****     ADDNA *
    OT
    WT X000   Rate: 18.11 Number: 45.00 Amt 814.95
    Supposed formula here is: 12.07 * 45.00 * 1.5 =  814.725 ( Proposed Value )
    Plese explain the above PCR calculation.

    Hi Remi,
    Thank you for your answer.
    Q. As for processing of your WT X000, what are it's Valuation Bases in V_512W_B ?
    - it is valuated in current wagetype and Valuation basis 092 and rate is 150%. 
    Q. Have you checked through pe04 what is operation VAKEYALZNR ? Isn't it related to Alternative Payment ?
      yes, it is alternative payment.
    P.S. : 12.07 x 1.5 = 18.105, which will give 18.11 once it is rounded up.
    A: we never used any round up function,
    Though we not used the roundup function why it is rounded up. How and where can we remove this roundup.
    Thank you for your help.
    Rgds
    -AADI

  • Complex Rebate calculation

    Hi All
    I have tough task ahead and i need your help.I have to create a rebate which is used during sales from consigment .It is supposed to work in such a way it takes the amount in the current sales order and minuses it from the amount of material still at consigment(1000 at consigment - 200 at sales order) .The differenece (800) is the base for calculation.We take 800* current price * 2%.The outcome is subtracted from the sales amout (200).The same thing should happen with normal sales but the rebate should not take into account the amount previously sold on the reference document and the discount is on the credit memo request .Does anyone have any good tips how to get started with this ?please:)

    Hi Grinch,
    Glad to hear that your issue had been solved by yourself. Thank you for your sharing which will help other forum members who have the similar issue.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Complex DAX Calculation

    Hi,
    I have an excel calculation that I have tried to convert i into a powerpivot measure. The excel calcualtion is as below:
     (IFERROR(IF(1-ABS((TOTDEMANDQTY-REVISEDFRC)/TOTDEMANDQTY)<0,0,(1-ABS((TOTDEMANDQTY-REVISEDFRC)/TOTDEMANDQTY))),"0.00")
    I was given some great advice to change it to the below as a measure and it almost works but not quite:
    Some Measure:=if(DIVIDE(ABS(FAReportInput[Demand]-FAReportInput[Revised Forecast]),FAReportInput[Demand],0)<1,1-DIVIDE(ABS(FAReportInput[Demand]-FAReportInput[Revised Forecast]),FAReportInput[Demand],0),0)
    The issue is where I have a revised forecast of an amount but a demand of zero I am returning a value of 1 when in fact it should return a value of zero as per the iferror in the excel formula- can anyone help?
    Thanks

    Hi Grinch,
    Glad to hear that your issue had been solved by yourself. Thank you for your sharing which will help other forum members who have the similar issue.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Complex rate calculations

    A bit of background (especially for anyone not in the UK). Here people are registered with their local doctor's practice. The practices are grouped into consortia. There are several consortia with the city.
    I'm looking at hospital referrals. The referrals table has a row for each referral (who, when, what for, etc.), including the practice the person is registered with.
    I have a lookup table for practice to consortium.
    I also have a table of the practice populations, i.e. the number of people registered with each practice.
    What I want is a Disco report for a selected practice, showing the referral rate for the practice and the referral rate for that practice's consortium.
    I've set up parameters to select the consortium and practice, and removed the conditions based on those parameters (otherwise I only get the practice data, not the whole consortium, of course).
    Then I can use CASE statements to get the total referrals and total population for the practice and the consortium.
    Now I need to calculate the rates, but Disco just breaks when I try! It disconnects me.
    So for the consortium admissions I've got:
    SUM(CASE WHEN Cur open practs cons mv.Consortium name = :Consortium THEN "V opref act 0607 disco".M gp refs ELSE 0 END)
    and for the consortium population I've got:
    SUM(CASE WHEN Cur open practs cons mv.Consortium name = :Consortium THEN Pbc weighted pops.Prac pop ELSE 0 END)
    I want to divide the admissions by the population, but Disco won't have it.
    Does anyone have a brilliant solution?
    I think the only way out is to create a table or materialised view with the rates precalculated.
    If you've read this far - thank you!
    Ros

    1. What happens if you pre-calculate the value (calc_div) such as:
    case when NVL(SUM(Pbc weighted pops.Prac pop),0) = 0 then 0
    else
    SUM("V opref act 0607 disco".M gp refs) / SUM(Pbc weighted pops.Prac pop)
    end
    and then check for consortium, such as:
    CASE WHEN
    Cur open practs cons mv.Consortium name = :Consortium
    AND
    Cur open practs cons mv.Consortium name = :Consortium
    THEN
    calc_div
    ELSE 0
    END
    Just wondering if that would be more appetizing to Disco.
    2. I trust you're only displaying aggregated data at this point, right (ie: not mixing detail rows of data with these sum calcs)?
    Not a "brilliant" solution, but maybe see what happens by breaking it down first.
    Russ

  • Complexe percentage calculation

    hi,
    I would like to compute percentage based on this table between ticket and CA based on BUV and ID parameters:
    ID
    BUV
    Ticket
    CA
    103
    BUV31
    2 274 €
    32 662 €
    103
    BUV2
    1 979 €
    32 662 €
    103
    BUV35
    1 788 €
    32 662 €
    104
    BUV31
    2 492 €
    40 900 €
    104
    BUV2
    2 311 €
    40 900 €
    104
    BUV14
    2 283 €
    40 900 €
    with a power pivot table we have that:
    Étiquettes de lignes
    CA
    Ticket
    pct
    103
    97985,37
    6042,14
    6,17%
    BUV2
    32661,79
    1979,24
    6,06%
    BUV31
    32661,79
    2274,44
    6,96%
    BUV35
    32661,79
    1788,46
    5,48%
    104
    122699,16
    7085,82
    5,77%
    BUV14
    40899,72
    2283,21
    5,58%
    BUV2
    40899,72
    2310,67
    5,65%
    BUV31
    40899,72
    2491,94
    6,09%
    Total général
    110342,265
    13127,96
    11,90%
    where foor CA I created a DAX formulas in calculate Field:
    sum([CATotal])/DISTINCTCOUNT([OPFSessID])
    and for Ticket I created in calculate Field again:
    [SommeTicketTotal]
    And the result of the percentage field is still a Calculate Field which is the result of CA/Ticket comuted previously.
    It works perfectly if I want to display only one ID. But if two ID are displayed, the computation is the sum of percentage which is of course wrong.
    For instance if I think about BUV31, i should have 6.47% instead of 12.96%. How can I add buv parameter into the formula to get the right result?

    Hi,
    Yes it is correct. I created a table with only BUV elements and theire percentage. 
    Here is the table:
    Étiquettes de lignes
    pct
    BUV14
    5,58%
    BUV2
    11,66%
    BUV31
    12,96%
    BUV35
    5,48%
    Total général
    11,90%
    As you can see BUV31 has 12.96% but it is wrong it should appear ticket (2274.44+2491.94) / CA (32661.79+40889.72) = 6.48%. So, 0.1296*32661.79=4233. It use 4233 as ticket values. No idea about where it come from.
    I think I should add into the CA calculate field something like "group by" BUV. 

  • Risks and benefits with developement platforms?

    Hi,
    I'm wondering about the risks involved with different developement platforms such as xampp or other software like it. Previously I've been running EasyPHP and xampp as well as apache php and mysql each by them self in a windows environment restricted to the local ip range. However since the past year I've mostly used either a FreeBSD machine or my Arch Linux setup (my main computer) and I'm thinking of using xampp on this setup but I'm unsure about what potential threats it poses. Any tip on how to get a smooth and secure yet powerfull and customizable developement platform is greatly appreciated!
    What are the critical risks requiring immediate action post installation?
    Is there maybe another more customizable LAMP or one that's better suited for Arch?
    Edit: Spelling...
    Last edited by Cipherslut (2013-07-24 17:46:30)

    Clustering will make ZERO difference to most standard GUI apps.
    Where it will make a difference is in applications that have been specifically written to take advantage od distributed computing. For example, complex mathmatical simulations, video encoding, gene sequencing, etc. In these applications the workload can be divided into chunks and passed out to nodes in the cluster for processing. When each node completes its calculations it passes the result back to the master node and waits for the next task
    This model doesn't apply to iChat (you can't IM any faster than you can type), or iTunes (ok, audio encoding might benefit, but most tracks encode pretty quickly and you might find the time it takes to transfer the raw audio data over the network outweighs the advantages).
    From a developer standpoint you can distribute your compiler tasks across a grid so that each node compiles a chunk of code and the master handles the final linking, but that's about the only advantage I can think of off-hand, unless you're planning on writing a distributed app.

  • How to call Fortran .dll file that using other library files?

    Hi,
    I am trying to do some arkward tasks using LabView, and I am desperately need help....
     A little bit background:
    1. My co-worker has some code written in Fortran, where he called other libraries (many from CERNLAB or PAW). Those stuffs are pretty powerful in mathmatical calculation and simulations.
    2. In some of my LabView code, I need to call his Fortran source code in order to do some complicated calculations. I have no capablility to translate his Fortran code to Labview (or is it even possible??), so we end up with trying to use "Call library function node" where I just provide input/outputs to communicate with his code. The idea sounds simple enough?
    3. We complie the Fortran code into .dll, and then specifiy the dll in "Call library function node". The first try with a very simple Fortran code, something like c = a+b*a, was sucessful. The dll file and Call lib function worked good. It's sort of proved the concept.
    4. Now I am trying more complicated Fortran code (say Test.dll), which calling other library (.lib files) that using typical "call xxx(a,b,c)" line, and my nightmare started....  It seems nothing was excuted when I call Test.dll in LabView.
    Questions:
    1. How do LabView know if the Test.dll code needs functions from other .lib files? Do I need to copy all the .lib files to a specific folder?
    2. When I create .dll file, for LabView to be able to use it, are there any special requirement on the way the .dll is compiled?
    3. Seems there is mismatch btw the data type in Fortran and LabView. For example, LabView's  Signed 8-bit Integer seems different with a integer in Fortran. How can i know the correlation btw data type in different langurage, i.e. LabView vs Fortran?
    4. Are there any good examples that I can take a look?
    I would highly appreicate any suggestions/helps!
    Rgds,
    Harry

    You are aware that Intel Visual Fortran is the successor to Compaq Visual Fortran (I think you made a mistype with the Virtual)? So an upgrade might be at its place.
    Anyhow I'm really not familiar with Fortran at all, but lib files are usually compiled into an EXE or DLL and not loaded dynamically. 1) 
    So there should be no problem with locating those libs. What most likely is a problem are other DLL dependencies such as any Fortran Runtime library or possibly other third party DLLs the more advanced code in your DLL might be using.
    Typically most compilers can be configured to link the runtime library code statically into the DLL, as altenbach reports for the Intel compiler, otherwise you must make sure to install the  redistributable Fortran Runtime Library for your compiler. Besides that you must make sure to find out what other runtime dependencies your code might have and install them.
    1) One exception I know of is LabWindows CVI which allows to also load lib files dynamically. This is supposedly a legacy feature from LabWindows for DOS, which allowed that feature to simulate dynamic module loading in order to swap modules at runtime to work around the 640k memory limitation of DOS.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Inheritance in OPA data model

    Hi all,
    I have a problem which OPM does not seem to handle well, but maybe I am lacking knowledge concerning some functionality. I am using a client patched 10.1 version of OPM.
    Situation:
    - I have an attribute in Global, which states the possibility to export an entitlement. This attribute is deducted using multiple compositions of conditions on both "child" level and "applicant" level. These are both entities in my data model.
    - However, some of the conditions are the generic for both roles. Therefore, what I really want to do is check attributes on "person" level and relate these to "the child" and to "the applicant".
    - Now, I've created an entity "the person" with a relation to "the child" and a relation to "the applicant".
    This raises an issue with the For/ForAll operator
    Issue:
    - To use the "For" operator, a -to-one relationship is needed. However, I can have two persons of which one is a child and one is an applicant. So, I need a - to-many relationship for person (from Global)
    - If I use the "ForAll" operator to 'work around' this problem, the goal attribute will stay inconclusive as the relationship from person 1 to the child is known, but from person 2 to the child in unknown (and vice versa for the applicant)
    Question:
    It seems to me that this is an issue of inheritance which OPM cannot handle. I am wondering:
    - has anyone dealt with this problem and/or does anyone have a solution?
    - is it likely that the entity containment functionality of OPM 10.2 + will be able to solve my issue?
    Thanks & regards, Els

    Given that I don’t know the details of your source material, and I don’t know Dutch, perhaps the best option is if I show you how to get a simple inferred relationship set up and working. Hopefully then you’ll see what it’s doing and know how to set it up for your own rulebase.
    1. Create a new empty test rulebase.
    2. Add a Properties file. Add a regular one-to-many containment relationship from Global to ‘the person’.
    3. From within the Properties file, have Global selected and in the right hand pane select the Relationships tab.
    4. Right-click in an empty space in the right hand pane and select ‘New Relationship’. Use these settings:
    - Source: Global (This will already be set, and will be read-only. If it isn’t already set to Global, then you didn’t do Step 3.)
    - Target: the person
    - Relationship type: Inferred (many-to-many)
    - Text: the adults
    5. Save the Properties file.
    6. Create a Word rule doc.
    7. Add a membership rule for the inferred relationship. A membership rule specifies the logic used to decide which instances are members of the inferred relationship. The parts in italics below are just examples of what the red configuration text will look like when the rule is compiled.
    +[IsMemberOf(“person”,adults)]+ the person is a member of the adults if
    +[p1 >= 18]+ the person's age >= 18
    In my example, I’m just basing it on age. It could be based on just about anything. Try to name your inferred relationship appropriately. I called it “the adults” since that’s what the group is. If I needed to have a group of people >= 18 years and who are female, then I’d call it something like ‘the female adults’, and obviously I’d include gender in the membership rule.
    8. Add some simple entity calculation rule such as these:
    the number of adults in the group = InstanceCount(the adults)
    the total amount of savings of the adults in the group = InstanceSum(the adults, the person's savings amount)
    9. Build and Debug. Work in the Data tab, not the OWD tab. You’ll be able to see more detail about what’s going on if in the Data tab.
    10. Add three instances of ‘the person’. Make two people older than 18 years, and one person younger than 18 years. Give each of them a different savings amount.
    11. Look at the Global results and you will see that the InstanceCount rule calculated ‘2’ and the InstanceSum rule only added up the savings from the subset of people who are adults.
    My general advice on this is:
    If the logic you need to do over subsets of entity instances is relatively simple, and can be easily accommodated by existing Instance functions, then don't bother with inferred relationships. Just set up the regular containment relationship and use the existing entity functions. Here are few examples of less complex entity calculations which can easily be handled without inferred relationships:
    - count the number of adults
    - calculate the total income of all household members who are over 25 years
    - find the age of the youngest male child
    So my example rulebase above is actually one for which I wouldn’t use inferred relationships if that was all I needed it for. I just wanted to pick a simple example to explain the concept. To do the example above without inferred relationships, you’d just need to use InstanceCountIf and InstanceSumIf and put the conditional logic in each calculation rule.
    If the logic you need to do over subsets of entity instances is much more complex and either it's not possible without inferred relationships, or it's just easier/more concise with inferred relationships, then add inferred relationships.
    Cheers,
    Jasmine

  • Numbers 09 (Rel. 2.1(436)) extremely slow under Lion

    I just gave Numbers a try with a relatively low complex mortgage calculation - 13 columns, 200 rows - simple formulas (if ... then ... else, difference in dates, simple multiplications).
    Numbers is extremely slow - whenever something is changed in the tables, Activity Monitor shows 100% CPU usage and the SBOD appears - it's nearly not possible to work. Restart of my MacBook Pro or Numbers allone has not made anything better. Has anybody made the same observations, i submitted feedback to Apple, but i have the feeling, that nobody is reading it (3 years ago i submitted the wish for goal seek for Numbers or some sort of Automator support)
    The dilemma is:
    Many of my coworkers now have iPad and iPhone and could use Numbers (i know there are some Excel Simulations for iPad and iPhone around, but these are not so nice to use) - therefore i want to provide the previos Excel Sheets as Numbers documents - but with this performance it's impossible to use Numbers.

    "200 rows of formulas in a Numbers document might be considered to be large ..." - that's complete nonsense - in the beginning of my "Apple History" i had a Mac IIsi, on this machine there was a spreadsheet software running, it's name was Ragtime - i did exact the same calculations which i now want to redo with Numbers - the IIsi with 8 MB of RAM was crunching trough these calculations a lot faster than my Macbook Pro - and there were not only 200 rows to calculate - (to be exact it were 300 + (4 x 25) rows - calculation 300 months + 4 quarters per year).
    Apple builds very nice hardware (most of the time), Apple designs very nice software (also most of the time) - but sometimes Apple Software is truly unusable if one decides just to get one step ahead the absolute-zero-level-hobby-user.
    Of course i know the phrase "horses for courses" and everybody will scratch his head "why does this guy absolutely want to use Numbers for this task and not the old Excel?" - i can tell you that: Because Excel has very bad layout options - in Numbers i can produce very nice layouts, free movable tables, integrated pages which sum up more sub-tables ... - yes, thats also possible with Word an Excel but not in this intuitive way Apple has come up.
    BUT - since Numbers is (and keeps) so dramatically slow it's barely unusable - it makes me sad, that i will never see Numbers being used in a business environment.
    PS: please excuse my rough English, i'm from Austria.

Maybe you are looking for

  • Project renames sequence and all clips in the sequence when a clip is added

    My project is renaming my sequences and the clips in those sequences whenever I add a clip. For example, I have a sequence called "dance section 2", which contains 20 some-odd clips with various names. When I add a clip named "drop from above", the n

  • T410i keeps doing restart if i am not in home wireless network!!!

    Good day, I am having a problem with my band new laptop ( Lenovo t410i – windows  7 professional ) less than a week old!!! It keeps restarting by itself! In the first few days nothing was happening, but starting from today suddenly a blue screen with

  • Not able to integration process(BPM) objects in ID

    hi, I have created one integration process(BPM) in IR part but I am not able to see it in my ID part. when I tried to import it thru IR its not showing me in list. Please let me know. Thanks, Bhupesh

  • Message not sent from BPM

    Hi, I have modeled a BPM in which Idoc is received from ERP and it is sent to CRM. When I see in SXMB_MONI, I find a message with PE as outbound. The Workflow shows it is completed and the last step in Workflow is "Send message Asynchronnously" with

  • Growing problem watching videos in Elements 7

    I initially installed PSE5 and Premiere 3 as part of a package a couple years ago. At the time I was easily able to watch videos in Elements 5, including relatively unusual formats such as .m2t, as well of course as .avis. I upgraded to PSE7 a few mo