Best Architecture for Fortran Code with Line Numbers

Hi all,
I have large fortran 90 file (10+ pages) which I need to convert to LabVIEW.
It contains several branching statements with Line Numbers, e.g.:
1000 IF (condition) goto 2000
I would like to know what is the best architecture to deal with this branching of the program.
Should I break the sections (based on line numbers) into user events or states?
Has anyone done similar conversions? 
Cheers,
Battler.

battler. wrote:
Hi all,
I have large fortran 90 file (10+ pages) which I need to convert to LabVIEW.
It contains several branching statements with Line Numbers, e.g.:
1000 IF (condition) goto 2000
I would like to know what is the best architecture to deal with this branching of the program.
Should I break the sections (based on line numbers) into user events or states?
Has anyone done similar conversions? 
Cheers,
Battler.
I would insert a preliminary step where I would assign a descriptive name to each line number that is the target of a branch. The names become the names of the states (like Christian was hinting at) then diagram the code into a state transition diagram. The rest gets passed to a developer to complete.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • What's best architecture for DAQmx app with two operational modes?

    I have an architectural question.  I am writing an application which takes measurements from a custom sensor which has two modes of operation: 1) idle mode where two voltages are sampled slowly, run through a transform, and then the result is plotted such that the user can see the idle state of the sensor; 2) a testing mode where the user defines a testing time of some number of seconds then hits 'Go' and records high-speed acquisition for the specified number of seconds (with some sort of simultaneous real-time plotting) and then writes the data out to a file.  I am trying to use the 'Top Level Application using Events" VI template but have run into issues with the VI not responding to UI clicks when in an event case...I got around **some** of these issues but now I am stuck because I can't get the app to register an abort button click when in testing mode.  I think I am missing something when it comes to events as LabVIEW defines them.  (I'm a .NET programmer)  My basic question is what is the best top-level VI architecture to use for something like this?  I don't want to go down the wrong path and have to re-write the whole thing...
    **I did come up with a seemingly neat way to get a tab control to switch tabs from inside an event case...I look at the X, Y coordinates of a mouse click and if it is within one of the tab selector zones at the top, left of the control I programmatically swith to the corresponding tab...seems like there should be an easier way but it works.

    I think that the best would probably be a producer consumer type architecture  with events.  You can do a search in the example finder and find a good one. As for the events not responding, you probably just need to uncheck the check box for disabling the front panel until the event finishes. You will find this at the bottom of the dialog box for the event structure.
    Joe.
    "NOTHING IS EVER EASY"

  • Best practice for sharing data with model window

    Hi team,
    what would the best practice for sharing data with a modal
    window be ? I use a modal window to display record details from a
    record list, but i am not quite sure how to access the data from
    the components in the main application in the modal window.
    Any hints would be welcome
    Best
    Frank

    Pass a reference to the parent into the modal popup. Then you
    can reference anything in the parent scope.
    I haven't done this i 2.0 yet so I can't give you code. I'll
    post if I do.
    Oh, also, you can reference the parent using parentDocument.
    So in the popup you could do:
    parentDocument.myPublicVariable = "whatever";
    Tracy

  • Best practices for apps integration with third party systems ?

    Hi all
    I would like to know if there is any document from oracle or from your own regarding best practices for apps integration with third party systems.
    For example, in particular, let's say we need customization in a given module(ex:payables) need to provide data to a third party system, consider following:
    outbound interface:
    1)should third party system should be given with direct access to oracle database to access a particular payments data information table/view to look for data ?
    2) should oracle create a file to third party system, so that it can read and do what it need to do?
    inbound:
    1) should third party should directly login and insert data into tables which holds response data?
    2) again, should third party create file and oralce apps will pick up for further processing?
    again, there could be lot of company specific scenarios like it has to be real time or not... etc...
    How does companies make sure third party systems are not directly dipping into other systems (oracle apps/others), so that it will follow certain integration best practices.
    how does enterprise architectute will play a role in this? can we apply SOA standards? should use request/reply using Tibco etc?
    Many oracle apps implementations customizations are more or less directly interacting with third party systems by including code to login into respective third party systems and vice versa.
    Let me your know if you have done differently and that would help oracle apps community.
    thanks
    rrb.

    you want to send idoc to third party system (NONSAP).
    what kind of system is it? can it handle http requests
    or
    can it handle webservice?
    which version of R/3 you are using?
    what is the mechanism the receiving system has, to receive data?
    Regards
    Raja

  • Ruler with line numbering and cury text underline

    Hi,
    I've just started programming in java and as an exercise i was trying to make an simple text editor. Uptil now i've been able to make a textarea and a menu with items and such, but i have 2 things that i'm very curious about.
    1. How can I make a vertical ruler with line numbers in it? (like in JBuilder/Eclipse editors) I'm planning on putting it next to the text so I can see at which line in the document i'm at.
    2. How can I underline (mark) text with those curly lines you often see in applications? (i.e. Marking grammar and spelling errors in MS Word or marking programming errors in editors like JBuilder/Eclipse)
    I hope that these things can be done in Java. If someone could help me out with this, i'd be very grateful.
    Kayhne

    Try this.
    regards,
    Stas
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.util.*;
    class Test {
        public Test() {
            JFrame fr = new JFrame("TEST");
            fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JEditorPane pane = new JEditorPane();
            pane.setEditorKit(new NewEditorKit());
            pane.setText("test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test ");
            StyledDocument doc = (StyledDocument) pane.getDocument();
            MutableAttributeSet attr = new SimpleAttributeSet();
            StyleConstants.setLineSpacing(attr, 5f);
            doc.setParagraphAttributes(0, doc.getLength(), attr, false);
            JScrollPane sp = new JScrollPane(pane);
            fr.getContentPane().add(sp);
            fr.setSize(300, 300);
            fr.show();
        public static void main(String[] args) {
            Test test = new Test();
    class NewEditorKit extends StyledEditorKit {
        public ViewFactory getViewFactory() {
            return new NewViewFactory();
    class NewViewFactory implements ViewFactory {
        public View create(Element elem) {
            String kind = elem.getName();
            if (kind != null) {
                if (kind.equals(AbstractDocument.ContentElementName)) {
                    return new JaggedLabelView(elem);
                else if (kind.equals(AbstractDocument.ParagraphElementName)) {
                    return new ParagraphView(elem);
                else if (kind.equals(AbstractDocument.SectionElementName)) {
                    return new BoxView(elem, View.Y_AXIS);
                else if (kind.equals(StyleConstants.ComponentElementName)) {
                    return new ComponentView(elem);
                else if (kind.equals(StyleConstants.IconElementName)) {
                    return new IconView(elem);
            // default to text display
            return new LabelView(elem);
    class JaggedLabelView extends LabelView {
        public JaggedLabelView(Element elem) {
            super(elem);
        public void paint(Graphics g, Shape allocation) {
            super.paint(g, allocation);
            paintJaggedLine(g, allocation);
        public void paintJaggedLine(Graphics g, Shape a) {
            int y = (int) (a.getBounds().getY() + a.getBounds().getHeight());
            int x1 = (int) a.getBounds().getX();
            int x2 = (int) (a.getBounds().getX() + a.getBounds().getWidth());
            Color old = g.getColor();
            g.setColor(Color.red);
            for (int i = x1; i <= x2; i += 6) {
                g.drawArc(i + 3, y - 3, 3, 3, 0, 180);
                g.drawArc(i + 6, y - 3, 3, 3, 180, 181);
            g.setColor(old);
    }

  • Where in BAT for "Users Associated with Line" field......

    Hi All,
    I am trying to find where I can export all user lines via BAT to see if they have an assignment for “Users Associated with Line”.
    Basically, I have administered approx 1000 phones (some UDP and some not) however I was unaware that I needed to administer this field for CUPC etc….
    I have looked at other posts that explain to update line appearance under the “Users” in BAT however this does no contain the field that I am looking for.
    In essence, I need to export all user lines, wash the data for who is not administered for this, then BAT in a change to associate users with line.
    Any help much appreciated!

    Hi,
    I use phones first and than the users option to upload using BAT.
    In th phone's tab, edit the the Maximum number of phone lines according to your requirement and click on the Create file format and select Directory Number in the Line field as shown below.
    And create your phones with MAC, Description,Phone lines and upload it, make sure it gets uploaded successfully.
    Now come to Users tab in the Bat.xlt file, here click on the Number of Controlled Devices as 1 (we are basically making phone as the controlled device to the users, phone already has lines as mentioned in the above step). And fill rest of the other details and upload it.
    Note: You can mention the Primary extension and IPCC Extension as part of this operation only.
    Hope it helps.
    Anand
    Please rate helpful posts by clicking on the stars below the right answers !!

  • Listing with line numbers

    how do I get a listing with line numbers to check compile errors with?

    how do I get a listing with line numbers to check compile errors with? What listing from where using what?
    AFAIK javac and jikes compilers give you the line numbers. What compiler are you using?
    Or do you mean how to display line numbers with this or that editor? If it isn't obvious I'd suggest getting a proper editor (as others have suggested)!
    BTW: eEdit = jEdit?

  • What is the best architecture for such app ?

    Each user will have independent block with info.
    For example
    - picture with info
    - timetable
    - favorite books
    He can show or hide each block.
    Some block can be obsolete in the future.
    Another block can be added in the future.
    First idea is put every info in user table.
    public class User
        public int UserId {get;set;}
        public string UserName {get;set;}
        //First block info
        public byte[] Image {get;set;}
        public string Deskription {get;set;}
        public bool IsInfoEnabled {get;set;}
        //Second block info
        public int TimeTableId
        public int TimeTableName
        public bool IsTimeTableNameEnabled {get;set;}
    So I get table which will be growing up in width ( i mean columns ).
    But I don't like to delete columns from these big table.
    That's why I decided to move all content block to separate table.
    Second idea :
    public class User
        public int UserId {get;set;}
        public string UserName {get;set;}
        public int InfoBlockId {get;set;}
        public int TimeTableBlockId {get;set;}
    public class InfoBlock
        public int InfoBlockId {get;set;}
        public byte[] Image {get;set;}
        public string Deskription {get;set;}
        public bool IsInfoEnabled {get;set;}
    public class TimeTableBlock
        public int TimeTableBlockId {get;set;}
    In second way scalability is better, but I will get more queries through numerous tables.
    What is the best way ? If you have your additional idea share it!
    My .NET Blog with projects and feedback.
    Since May 30, 2014 I am waiting for Microsoft fix
    these 2 bug. If you know how to speed them up, please help

    As your question is about architecture..
    The first question is: Do you want to follow a Code-First or Database-First design.
    Then you may choose the appropriate forum. From your post, I guess, it's Code-First. So take your wording as an outline. Thus you need a User class and blocks. As blocks can have different types, we need some polymorphism here. Thus it could be an IBlock.
    So that your concrete types derive from it:
    Instead of an interface it could be also an abstract base class:

  • How to copy source code without line numbers?

    Dear all,
    how can I easily copy source code from a post or thread. When I do it via the mark the text and CTRL-C I always have the line numbers also in the clipboard. It is anoying to remove 100+ line number to use the posted code from a thread in my IDE.
    Thank you, Time

    Do you mean how to copy text out of a forum post without the line numbers?
    If that is the case, then unlike the previous response I do think it is a forum issue and a browser incompatibilty. I noticed the same issue between Firefox and Safari under Mac OSX. While Firefox allows me to just select the text without the line numbers, Safari would not.
    Test:
    line 1
    line 2
    In fact, using Firefox verson 22 for instance, I cannot select the line numbers at all. Even when I select the whole page, line numbers are ignored.
    Perhaps you should try with another browser.

  • One pr for multiple materials with line items while running mrp

    Hi SAP gurus,
                  I am config the system for MRP as per my client requerement.
                     We use CBP for different RAW materialsfor example they having a 10 materials for planning,were,
             MRP type is VB,
              LOT size is FX,with Different Reorder points and fix order quantity for all materials,
             My client whant run MRP for all these materials in single time that means they whant multiple item at single levels,
            i soles these requirement with the help of Product Group(sop) and its working but when we running md02 for product group all materials have planed and they give different purchase requistion numbers for all these materials but my client Wants single purchase requistion with line items for all these materials.
         Pls give me the solution for that requirement.
    thanks and Regards,
    abhi

    this is not the way SAPs MRP run works.
    Where is the benefit for this?
    the requisitions are not even split into header and item table, it is just one table EBAN, and either way you would get exact the same number of records in EBAN.

  • Best practice for a site with a lot of images?

    I am working on a site that will have over a hundred images
    and I wanted to see what is the best practice for designing a site
    like this. Should a go with xml(please give examples or
    explanation), a text file or just loadMovie("image1project1.jpg",
    "bottomsec") with named external images that will stay the same.
    Any help is appreciated on staying up to date with this kind of
    site.
    Thanks,
    Randy

    ok I am new please be nice - I think I want to set it up like
    this
    <project1>
    <section>Architecture</section>
    <name>New Building for CREATiVENESS</name>
    <comment>The major challenge to designing this new
    tower was the site constraints  a small 3 acre urban corner site.
    It is located adjacent to a community center to facilitate extended
    use in the evenings and weekends for the entire community.
    </comment>
    <thumb>thumbs/project1.jpg</thumb>
    <img1>images/project1img1.jpg</img1>
    <img2>images/project1img2.jpg</img2>
    <img3>images/project1img3.jpg</img3>
    <img4>images/project1img4.jpg</img4>
    </project1>
    <project2>
    <section>Interiors</section>
    <name>New Building for Me</name>
    <comment>The major challenge to designing this new
    tower was the site constraints  a small 3 acre urban corner site.
    It is located adjacent to a community center to facilitate extended
    use in the evenings and weekends for the entire community.
    </comment>
    <thumb>thumbs/project2.jpg</thumb>
    <img1>images/project2img1.jpg</img1>
    <img2>images/project2img2.jpg</img2>
    <img3>images/project2img3.jpg</img3>
    <img4>images/project2img4.jpg</img4>
    </project2>
    <project3>
    <section>Architecture</section>
    <name>New Building for You</name>
    <comment>The major challenge to designing this new
    tower was the site constraints  a small 3 acre urban corner site.
    It is located adjacent to a community center to facilitate extended
    use in the evenings and weekends for the entire community.
    </comment>
    <thumb>thumbs/project3.jpg</thumb>
    <img1>images/project3img1.jpg</img1>
    <img2>images/project3img2.jpg</img2>
    <img3>images/project3img3.jpg</img3>
    <img4>images/project3img4.jpg</img4>
    </project3>
    <project4>
    <section>Interiors</section>
    <name>New Building for that guy</name>
    <comment>The major challenge to designing this new
    tower was the site constraints  a small 3 acre urban corner site.
    It is located adjacent to a community center to facilitate extended
    use in the evenings and weekends for the entire community.
    </comment>
    <thumb>thumbs/project4.jpg</thumb>
    <img1>images/project4img1.jpg</img1>
    <img2>images/project4img2.jpg</img2>
    <img3>images/project4img3.jpg</img3>
    <img4>images/project4img4.jpg</img4>
    </project4>
    but I am not sure of the way to create the way to run through
    it to find if it is in a section to put it in the menu and then to
    call the images and text once they are in a project area. I dont
    know if the
    this.firstChild.nextSibling.childNodes[0].childNodes[2]
    is the best way to call things in the file. Any help is
    appreciated. Please let me know what are the best practices and
    easiest way to work with a large xml file.
    Thanks,
    Randy

  • Best phone for Sync-ing with iCal?

    I'm due to upgrade my mobile and wondered which is the best available handset for Sync-ing with a mac. At present I have the Sony Ericson K750i which was working fine up until I upgraded to Tiger.
    Any ideas?

    Has anybody had any experience syncing the Motorola
    KRZR with iCal?
    I own a Motorola KRZR K1m (Sprint), which is supposedly supported by iSync 2.4. This seems to be a troublesome phone in regard to compatibility with iSync. If you read the iSync discussions, you will see many problems. Those that do get iSync to accept the KRZR as "supported" seem to still have problems with iCal in particular. Evidently, there are some system hacks available to force the sync to work with iCal. If you are not comfortable with getting inside files and re-writing code, then you may not be a happy camper.
    Naturally, if you have access to a Windows machine, you will have no problem. (... Getting ready to duck, since that last statement will draw out all the Apple apologists and Apple-employee-wannabes ...)
    Personally, I have had no success getting iSync to recognize my KRZR at all. While I can transfer files via bluetooth, the iSync issues make me wish I had some other phone. In fact, the iSync/KRZR issues are probably going to lead me to change to another (known to be supported) phone. Since I'm stuck with Sprint, that won't be easy.
    Good luck!
    G4's, G3's, etc.   Mac OS X (10.4.9)  

  • Problems with line numbers (building via ant).

    We use ant for our builds and are having a problem with getting line numbers into call stacks. When running on linux we do not get the lines for our projects (not all projects have debug option), just (Unknown Source), however we do see line numbers for the tib jars. Eclipse is fine, we can see all line numbers as appropriate.
    I have tried "lines", "lines,source" and "lines,var,source" - all build a different sized jar which suggest something is getting added. However as we see line nums for tib it suggests it's some strange java runtime option. We're using sunjdk 1.5.10 and also jrockit.
    Any ideas/answers most appreciated.
    Many thanks, Declan
    Ant task
    <target name="compile" depends="init">
         <javac target="1.5" destdir="${classes}" debug="on" debuglevel="lines,source">
              <src path="${src}"/>               
              <classpath refid="default.classpath"/>
         </javac>     
         <javac target="1.5" destdir="${classes-test}" debug="on" debuglevel="lines,source">
              <src path="${testsrc}"/>
              <classpath refid="default.classpath"/>
              <classpath location="${classes}"/>
         </javac>
    </target>
    Example output
    java.lang.IllegalArgumentException: Field data is null
    at com.tibco.tibrv.TibrvMsg._addImpl(TibrvMsg.java:1503)
    at com.tibco.tibrv.TibrvMsg.add(TibrvMsg.java:1020)
    at com.lehman.fid.jdt.channel.tibrv.TibrvMessage.putObject(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.publishDepth(Unknown Source)
    Cmd line
    VM_OPTS="-Dlogfile=../../log/CmdOrderBook.log"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.authenticate=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.password=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.ssl=false"
    PARAMS="-springcfg orderbook-context.xml -instancename CmdOrderBook"
    exec ${JAVA_HOME}/bin/java -DappInstance=CmdOrderBook -server -Xmx500M -Xms250M -Xincgc ${VM_OPTS} com.lehman.cmd.etrading.orderbook.CommoditiesOrderBook ${PARAMS} >> ../../log/Cm
    dOrderBook.out 2>&1

    We use ant for our builds and are having a problem with getting line numbers into call stacks. When running on linux we do not get the lines for our projects (not all projects have debug option), just (Unknown Source), however we do see line numbers for the tib jars. Eclipse is fine, we can see all line numbers as appropriate.
    I have tried "lines", "lines,source" and "lines,var,source" - all build a different sized jar which suggest something is getting added. However as we see line nums for tib it suggests it's some strange java runtime option. We're using sunjdk 1.5.10 and also jrockit.
    Any ideas/answers most appreciated.
    Many thanks, Declan
    Ant task
    <target name="compile" depends="init">
         <javac target="1.5" destdir="${classes}" debug="on" debuglevel="lines,source">
              <src path="${src}"/>               
              <classpath refid="default.classpath"/>
         </javac>     
         <javac target="1.5" destdir="${classes-test}" debug="on" debuglevel="lines,source">
              <src path="${testsrc}"/>
              <classpath refid="default.classpath"/>
              <classpath location="${classes}"/>
         </javac>
    </target>
    Example output
    java.lang.IllegalArgumentException: Field data is null
    at com.tibco.tibrv.TibrvMsg._addImpl(TibrvMsg.java:1503)
    at com.tibco.tibrv.TibrvMsg.add(TibrvMsg.java:1020)
    at com.lehman.fid.jdt.channel.tibrv.TibrvMessage.putObject(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.publishDepth(Unknown Source)
    Cmd line
    VM_OPTS="-Dlogfile=../../log/CmdOrderBook.log"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.authenticate=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.password=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.ssl=false"
    PARAMS="-springcfg orderbook-context.xml -instancename CmdOrderBook"
    exec ${JAVA_HOME}/bin/java -DappInstance=CmdOrderBook -server -Xmx500M -Xms250M -Xincgc ${VM_OPTS} com.lehman.cmd.etrading.orderbook.CommoditiesOrderBook ${PARAMS} >> ../../log/Cm
    dOrderBook.out 2>&1

  • Taking too much time for saving PO with line item more than 600

    HI
    We are trying to save PO with line items more than 600, but it is taking too much time to save. It is taking more than 1 hour to save the PO.
    Kindly let me know is there any restriction for no. of line items in the PO. Pls guide
    regards
    Sanjay

    Hi,
    I suggest you to do a trace (tcode ST05) to identify the bottleneck.
    You can know some reasons in Note 205005 - Performance composite note: Purchase order.
    I hope this helps you
    Regards
    Eduardo

  • ALV Report for multiple headers with Line Items

    Hi Sap All.
    here i have got a requirement to change the exisiting Zprogram which writes all the header information with line items in a normal simple report,now i have got to change the program in order to display in an ALV Format .
    in the exisiting program they are using EXTRACT ,INSERT Statement and multiple select statements for getting the values into each field ofheader and line items for writing in a simple report.
    so ijust want to know how i can populate all the data into alv grid.
    can any one help me in this.
    regards.
    Varma

    you have to store all header records in an internal table and all item records in a second table
    then you call function module REUSE_ALV_HIERSEQ_LIST_DISPLAY with both parameters T_OUTTAB_HEADER and T_OUTTAB_ITEM

Maybe you are looking for

  • Internet Explorer allows double click on submit

    Im having a problem with my update and insert pages while using WindowsXP IE 7. The insert page will allow you to do multiple clicks on the insert/submit button. The insert button will not go grey after clicking on it. You can continue to click and y

  • How to get refund for accidental In-App purchases

    Can someone please help how I get refund - when I report a problem it keeps saying " sorry this purchase is not eligible for a refund."  However, there are about 10 similar transactions and it is only two days old.  My son has accidentially purchased

  • Playing project on a HDTV

    Why does the themes look very poor when playing a dvd player with a HDTV. Video good be better.

  • Connection failure of Weblogic4.5.2(sp2) and iPlanet4.1(sp5) on HP-UX

    To whom concerned. Hello, I installed successfully the Weblogic Server4.5.2 sp2 and iPlanet Web server4.1 sp5 on HP-UX11.0 platform. But when connected Weblogic server to iPlanet web server , webserver startup error was occurred. (Please refer to the

  • Ipod touch restore error 1604 / 1603

    Hi, I plugged my new ipod touch into my computer but itunes did not show it, so I was told to restore it and i got an unknown error 1604 (sometimes 1603). I took it back an got a new one, and exactly the same thing has happened! Can anyone help at al