OO programing and other help......

I got the following done. It is very nearly finished. Apart from a few error. ( Which i can't find out why so if you figure it out please be so kind to tell me. )
I think you could see my idea and what i intend to do in this program. But it is my first long program so if i did something abnormal and idea how to improve it please tell me as well.
Something concern me is that it is not very OO. And the only reason i spend so much time trying to learn Java is because i can't get my head around OO programing. Although finally i manged to find a book to make me understand it. But doing it myself and using OO in pratice is much harder than i thought. ( As you can see in my code is very procedual ). So any comment on that issue is well come.
import parport.ParallelPort;
class Pio {
public static void main ( String []args )
     int init = 0;
     int input;
     int readin = 0;
     long start;
     long end;
     long elapsed;
     ParallelPort PPno1 = new ParallelPort(0x378);
     // 0x378 is normally the base address for the LPT1 port
     ParallelPort.writeOneByte(0x378, init);
     // Init DATA register
          System.out.println("Please Enter Relay 1 or 2 you would like to test" +input );
          for ( input /= 1 && input /= 2 );
          System.out.println("Please Enter either 1 or 2 as input paramteter");
          if ( input = 1 ){
               start = System.currentTimeMillis();
               init = init | 0x04; // set D1 (second bit from right to left)
               ParallelPort.writeOneByte(0x378, init); // update DATA register
          }else // if input is not 1 input must be 2
               start = System.currentTimeMillis();
               init = init | 0x08; // set D1 (second bit from right to left)
               ParallelPort.writeOneByte(0x378, init); // update DATA register
          readin = PPno1.read();
          if (readin > 0){
               end = System.currentTimeMillis();
     elapsed = end - start; //ms
     System.out.println("The total time it took relay to start" + elapsed);
( All part using class parallel port are working. As i have tested them seperately. )

Thanks. But may be i should concentrate on getting it works first. Because it is way far off finish then i have imagined................
I got the following, after you point out Input does not work as i have completely forgotten about it.
import java.io.*;
import parport.ParallelPort;
class Pio {
public static void main ( String []args )
     int init = 0;
     String input;
     int readin = 0;
     long start;
     long end;
     long elapsed;
     ParallelPort PPno1 = new ParallelPort(0x378);
     // 0x378 is normally the base address for the LPT1 port
     ParallelPort.writeOneByte(0x378, init);
     // Init DATA register
          System.out.println("Please Enter Relay 1 or 2 you would like to test" );
          // User input
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String text = in.readLine();
          // Reading User input in STRING!!!! ( caution )
          input = Integer.parseInt(text);//converting string to int
          //inorder while to compare
          for ( input != 1 && input != 2 ){
          System.out.println("Please Enter either 1 or 2 as input paramteter");
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          input = in.readLine();
          if ( input = 1 ){
               start = System.currentTimeMillis();
               init = init | 0x04; // set D1 (second bit from right to left)
               ParallelPort.writeOneByte(0x378, init); // update DATA register
          }else // if input is not 1 input must be 2
               start = System.currentTimeMillis();
               init = init | 0x08; // set D1 (second bit from right to left)
               ParallelPort.writeOneByte(0x378, init); // update DATA register
          readin = PPno1.read();
          if (readin > 0){
               end = System.currentTimeMillis();
     elapsed = end - start; //ms
     System.out.println("The total time it took relay to start" + elapsed);
When i compile i got the following error.
D:\Downloads\UserPort\UserPort\pio.java:27: incompatible types
found : int
required: java.lang.String
input = Integer.parseInt(text);//converting string to int
^
D:\Downloads\UserPort\UserPort\pio.java:30: operator != cannot be applied to java.lang.String,int
while ( input != 1 && input != 2 ){
^
D:\Downloads\UserPort\UserPort\pio.java:30: operator != cannot be applied to java.lang.String,int
while ( input != 1 && input != 2 ){
^
D:\Downloads\UserPort\UserPort\pio.java:33: in is already defined in main(java.lang.String[])
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
^
D:\Downloads\UserPort\UserPort\pio.java:37: incompatible types
found : java.lang.String
required: boolean
if ( input = 1 ){
But all these error wasn't there before i add the User input in........ which is very very confusing sincei spend the whole day trying to get it to work and i still couldn't............. May be that is why programmer are worth so much money these day................................

Similar Messages

  • When I get art work from older illustrator programs and other programs the colors don't print the same as they did about 2 months ago. Big issue for me! How do I cange this or fix it?

    Things were going fine until about a month or so ago, now when I take files from older illustrator programs or other programs that ran fine with illustrator before, the colors change. This is a BIG problem for me right now! I tried the on line help thing and I was afraid to erase the files that it asked me to erase because I may want it back the way it now is some day and because I don't have the files from the older program...  PLS help! Have tryed to call and am waiting for a chat to open,... 

    gaskins,
    You may have different Color Settings, and if you use Pantone you should be aware that the whole interpretation has changed (a number of times, most radically recently).
    If you say more, more can be said.

  • How to find which programs (and other objects) use the field LGORT

    Hi, Im an Abap freshman, and I have been asked to search all programs and objects that use the field LGORT (Storage Location), regardless of what table it is in.
    Is it possible to do it using the "Where-Used List"?
    This will be important since a new Storage Location will be created for MM, and we have to assure that no other programs that reference to it will be affected.
    I would appreciate any help. Thanks!!

    Hi George,
    Go to transaction SE11, choose radiobutton Data Element then enter the name LGORT. Now using the where-used-list in the toolbar, choose programs checkbox in the subsequent dialog and press enter. It should show all programs using the field LGORT irrespective of table name.
    Hope this helps.
    Cheers,
    Sougata.
    Using ECC6.0

  • Conservation-help please webdesigners and other help needed

    are you interested in world conservation issues? Would you like to be part
    of a team developing a website that may change the way people act towards
    conservation and may indeed change the future of conservation volunteering
    itself. [email protected] if you are interested a mission plan can be
    obtained from the above address we will see were things go from there. This
    is not a wind up in any way this is -planned to be both a serious tool in
    terms of science and in terms of conersvtaion help mostly in the uk but also
    abroad, the site will have a broad span of features. I need skilled web
    designers and others who can help me market the idea, also once the site is
    set up the way the site works will require a few trusted overseers, it must
    be stressed that the site is none profit making in intent possible small
    amounts may be paid for its construction but these will not be large. Anyone
    interested in helping in the construction of this website will be rewarded
    but further down the line and through simplwe satisfaction of seeing a
    useful and well thought out idea coming to life at their own hands. please
    reply to the sender address or [email protected] please if yopu have any
    inclination do reply we need you as they say , if no one volunteers this
    project wont getr carried out, any help will be greatfully accepted if you
    give me 1hr or 2 of your time i will be very greatful indeed. The website
    being constructed is only in web format because it makes it easy to access
    and it is the easiest medium in which to get setup quickly advertising is
    likely to follow in other mediums and over time the scope of the website as
    explained in the brief which I will send you if you are interested will
    increase and hopefully the good work which comes from that will increase
    also. Thank you for your time
    andrew cuthbert

    are you interested in world conservation issues? Would you like to be part
    of a team developing a website that may change the way people act towards
    conservation and may indeed change the future of conservation volunteering
    itself. [email protected] if you are interested a mission plan can be
    obtained from the above address we will see were things go from there. This
    is not a wind up in any way this is -planned to be both a serious tool in
    terms of science and in terms of conersvtaion help mostly in the uk but also
    abroad, the site will have a broad span of features. I need skilled web
    designers and others who can help me market the idea, also once the site is
    set up the way the site works will require a few trusted overseers, it must
    be stressed that the site is none profit making in intent possible small
    amounts may be paid for its construction but these will not be large. Anyone
    interested in helping in the construction of this website will be rewarded
    but further down the line and through simplwe satisfaction of seeing a
    useful and well thought out idea coming to life at their own hands. please
    reply to the sender address or [email protected] please if yopu have any
    inclination do reply we need you as they say , if no one volunteers this
    project wont getr carried out, any help will be greatfully accepted if you
    give me 1hr or 2 of your time i will be very greatful indeed. The website
    being constructed is only in web format because it makes it easy to access
    and it is the easiest medium in which to get setup quickly advertising is
    likely to follow in other mediums and over time the scope of the website as
    explained in the brief which I will send you if you are interested will
    increase and hopefully the good work which comes from that will increase
    also. Thank you for your time
    andrew cuthbert

  • Properly removing programs and other files

    I recently tried to install World of Warcraft on my macbook. After I realized that my computer was just a little too slow to run it properly I tried to erase it. Now my macbook is telling me that my hard drive is almost full and I'm convinced that I didn't remove World of Warcraft properly. How do I check if I removed it or not and if I didn't how do I properly remove it and other files for future reference?

    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications. Here is a selection:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Robotic programming and others

    hello friends,
    P lease, can someone give me a hint on the following :
    1. resources including appropriate softwares, code, classes, materials
    i need to write a java program that can send commands(or signals)
    via an infra-red(as in a TV remote control) or via laser or normal wires,
    to a machine or robot. for instance asking a machine to start, stop etc.
    or asking a robot to move, fly, land etc. how can
    i achieve this. your help is most welcomed thank you.
    2. i have a java program, which has a GUI that covers the entire screen including
    the status bar(just like in screen savers). But while it is visible, or being used
    and a user clicks CTRL + ALT + DELETE, in order to shut down or activate the task manager
    to enable him terminate the program, he achieves this successfully. But i don't want him
    to be able to do so. I want the java program to be the first to intercept or trap the
    CTRL + ALT + DELETE , and not the Operating System. I'm using windows2000 and XP.
    What code can i add to my java program to enable it trap this instead of the OS. The function to
    achieve this should only function while my program is running. Moreso, when it traps the key events
    it should request for a password to terminate the program, which if not correct, the program remains.
    3. can i deactivate the taskbar while my java program is running or prevent the taskbar or the programs
    menu from comming up when the user presses the window icon on the keyboard. can i achieve any of
    these with java. If yes, please how can i do these.
    4. any idea of a site where i can learn stuff on robotic programming with java and microprocessor
    programming with java.
    5. Please, sample codes will be well appreciated.
    Thank you in advance for your kind help.

    hello,
    in my question on this topic i got the following reply:
    1) In a previous Java Tech Days conference (2002), Simon Ritter from Sun shown us a small demo using Java-controlled robots (actually a Lego Mindstorms one, see http://lejos.sourceforge.net/ ). Maybe you could try to contact him in a Java Tech Days conference near you, or use the e-mail (simon dot ritter at sun dot com)
    2) Ctrl+Alt+Del is not trappable. You can use Windows policies to keep the user logged in a "kiosk mode".
    3) Same as 2)
    4) Same as 1)
    5) Same as 1)
    please, how use Windows policies to keep the user logged in a "kiosk mode in java. codes will be appreciated.

  • Need to install a mileage program and need help.

    I need to install a mileage program on my ideapad S10.  I have the cd and the code to make the program work.  How do I get this installed on my Ideapad?  Please give precise and clear directions.  I don't want to screw this up and end up having problems.  Any help is greatly appreciated.  Thanks in advance. 

    1. Easiest way is to purchase or borrow an external CD player, of course, or
    2. Contact the original company and pay to download an installable version.
    3. Bring your S10 & CD to a local computer store. They should install your program for cheap.
    4. Find a downloadable replacement mileage program online. Here is one..
    http://download.cnet.com/Mileage-Calculator/3000-2064_4-10436153.html?tag=mncol 

  • Netgear WGR614v6 Problems with Ebay and others-Help!!

    Just put in a Netgear WGR614v6 router and I can connect to the internet thru my 2-wire DSL modem (non-gateway1070-b).
    First issue was that any email I sent out-bound from Mac Mail that had an attachment would just sit in my outbox, I then disabled the SPI firewall on the Netgear router and all worked fine.
    The I went on to do further testing and found out that I can launch into ebay and ebay will only let me do one sign/in and or search then I will get a 'THE CONNECTION WAS RESET" page saying that "The connection to the server was reset while the page was loading."
    Also when I access my SBC/Yahoo email thru the web, I can log onto my account and read my first or any one message, but then when I go to view a second the same thing happens as with ebay.
    Anybody have any ideas as to what is going on.. is this a port 25 thing? All works fine when connected directly to the DSL modem.
    Thanks in adavnace for any help you may have.
    -the Danimal
    G5 Mac OS X (10.4.7)

    Figured it out, had to bridge by DSL modem and use the router as my DHCP server. All is working fine now.

  • Very n00b error....just started programming and need help?!?!

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration: <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new Greeter();
    ^
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new Greeter();
    ^
    2 errors
    Process completed.
    ok i get this error message alot....well actually just about everytime..
    I got it working just once using texteditor but have no clue how i did it that time...now nomatter what i try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still compile with this error..
    if anybody with patience could tell me what i need to do
    would i have to configure java some more with variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to
    compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration:
    <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5:
    cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    s\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find
    symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    get this error message alot....well actually just
    about everytime..
    I got it working just once using texteditor but have
    no clue how i did it that time...now nomatter what i
    try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still
    compile with this error..
    if anybody with patience could tell me what i need to
    do
    would i have to configure java some more with
    variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance
    Well here is all that goes
    As you said you were pretty new
    I suspect the following error done by most of the novice programmers in JAVA
    Where is the Greeter class ??
    ok may be you must have defined it somewhere else
    Mostly the Java Compiler hasnt found out your Greeting class
    Try locating that " Greeter.java"
    or mention it in an other file located in the same folder as "Newprog.java"
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();

  • CC (2014) Photo Program and other CS6 apps - Updates for CS6 to CC (2014)?

    I have the CS6 Design & Web Premium apps installed, plus the Creative Cloud Photo Program option (PS and LR).
    With the new CC (2014) release today I'm being offered CC (2014) updates for all the CS6 programs that I have that aren't in the Photo Program (i.e. Dreamweaver, Illustrator, InDesign, etc). Surely this isn't right. Shouldn't it be asking if I want to Install or Try them rather than providing an update?
    If I go ahead and update will it start charging me more? Its a bit confusing!

    I installed all the updates, including the CC 2014 programs. I am not being charged for them. However, they are not updates to the other programs. I now have 2 versions of all my CS6 programs installed on my computer. The CC 2014 programs are now default, for some reason, and when I open them they ask me if I want to start a free trial or if I want to put in a license code. My CS6 code doesn't work, obviously, but I tried anyway. I'm a little annoyed that this was offered to me like it was an update for my programs, even though it wasn't. And if I uninstall them, I am afraid that it is going to tell me that I have "updates" and try to install these programs again.

  • After deactivating flash  pro after acrobat stopped working in CS6, all programs converted to Trial Versions. How do I reactivate? Is the only solution to delete all programs and download CS6?

    Reactivating acrobat in CS6

    When you deactivate one program of a Suite the entire Suite is deactivated.  You should be able to reactivate by opening one of the programs and choosing Help -> Activate.  If that does not work then you probably need to uninstall the Suite and reinstall it.

  • Itunes error. the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention helps protect against damage from viruses and other threat.

    I have a windows Xp computer. and i needed to download the newest itunes to support my ipod touch. but now my computer doesn't let me open itunes. The the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention (DEP) helps protect against damage from viruses and other threat." I tried excluding itunes from DEP on settings but it still doesn't work. I don't know what to do. please help me!!!
    thanks 

    try to select the computer cd/dvd autorun off.
    I had the same problem, then Kaspersky software found a conflict suggesting me this solution.
    Itunes now works...even if it always asks to set the cd/dvd autorun on when lunched.

  • I somehow installed a version of Firefox which won't work on my "old" iMac G5 (10.5.8) so I trashed the program and now I can't get it out of my trash bin... Any help appreciated because now I can't empty my trash at all! Thanks.

    I somehow installed a version of Firefox which won't work on my "old" iMac G5 (10.5.8) so I trashed the program and now I can't get it out of my trash bin... Any help appreciated because now I can't empty my trash at all! Thanks!!

    You must purchase a new QT key for each computer.
    Since you have a new iMac, you are entitled to 90 days of FREE phone tech support from Apple and you can use the Chat with a Support Agent. The online chat support _*is available 24 hours a day, 7 days a week.*_
    If you've purchased an AppleCare Protection Plan, you're eligible for the duration of that agreement.

  • Help with RFC sender, Program And RFC Destination

    Hi!!
    my scenary is asynchronous
         RFC Sender -> SAP-XI -> Oracle reciever
    I have a problem with abap, especially rfc, program and rfc destination. The connection with SAP-XI exist and SAP-XI  receive the message but the message is empty.
    1. In my program on the line
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error system_failure = 2 and it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC
    2. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' STARTING NEW TASK 'NEW' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error communication_failure = 1 but the rfc ZBAPI_SD_PED_ORD_SERVIC is executed but no send to SAP-XI
    3. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' IN BACKGROUND TASK DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              No error but it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC and the message in SAP-XI is empty, display the tables but not the row. i check the table PED_ORDEN and RETURN but the controls fields dont are afected.
    What is my Error?
    Where am i making a mistake?
    RFC
    FUNCTION zbapi_sd_ped_ord_servic.
    *"Interfase local
    *"  TABLES
    *"      PED_ORDEN STRUCTURE  ZSD_RFC_T04
    *"      RETURN STRUCTURE  ZSD_RFC_R06
      TABLES: zsd_ped_orden, zsd_rfc_r01.
      DATA: tb_ped_orden LIKE zsd_ped_orden  OCCURS 0 WITH HEADER LINE,
                     tb_rfc_orden_error LIKE zsd_rfc_r01 OCCURS 0 WITH HEADER LINE.
    *Get Pedido by Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_ped_orden
              FROM zsd_ped_orden
              WHERE estatus  EQ  space.
      LOOP AT tb_ped_orden.
        MOVE-CORRESPONDING tb_ped_orden TO ped_orden.
        APPEND ped_orden.
        tb_ped_orden-estatus = 'X'.
        tb_ped_orden-fecha_actualiz = sy-datum.
        tb_ped_orden-hora_actualiz = sy-uzeit.
        MODIFY tb_ped_orden.
      ENDLOOP. 
      MODIFY  zsd_ped_orden FROM TABLE tb_ped_orden.
      COMMIT WORK.
    *Errors in Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_rfc_orden_error
              FROM zsd_rfc_r01
              WHERE estatus  EQ  space.
      LOOP AT tb_rfc_orden_error.
        MOVE-CORRESPONDING tb_rfc_orden_error TO return.
        APPEND  return.
        tb_rfc_orden_error-estatus = 'X'.
        tb_rfc_orden_error-fecha_actualiz = sy-datum.
        tb_rfc_orden_error-hora_actualiz = sy-uzeit.
        MODIFY tb_rfc_orden_error.
      ENDLOOP.
      MODIFY  zsd_rfc_r01 FROM TABLE tb_rfc_orden_error.
      COMMIT WORK.
    ENDFUNCTION.
    PROGRAM
    REPORT  ZBAPI_SD_PED_ORD_SERVIC.
    DATA: ped_orden LIKE ZSD_RFC_T04 OCCURS 0 WITH HEADER LINE,
          return LIKE ZSD_RFC_R06 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
         TABLES
              ped_orden             = ped_orden
              return                = return
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF sy-subrc <> 0.
      MESSAGE 'error' type 'I'.
    ENDIF.
    COMMIT WORK.
    RFC DESTINATION
    RFC Destination: ZXI_ENVIAR_PED_ORD_SERVIC
    Connection TYpe: TCP/IP Connection
    Register Server Program: ZBAPI_SD_PED_ORD_SERVIC
    Gateway host: host00
    Gateway service: sapgw00

    hi
    For rfc sender adapter we hv to do some settings .Please chk whether this settings are well configured or not.
    a) RFC destination
    b) RFC channel in the XI directory
    This weblog is a response to a few question about the basic configuration of the RFC sender adapter
    that were posted on the XI forum (and also on my e-mail)
    So here we go, basically we have to configure 2 things:
    a) RFC destination
    b) RFC channel in the XI directory
    RFC destination:
    1. To create the RFC go to TCODE: SM59
    2. Create new destination of type T (TCP/IP)
    3. Make sure you select Registered Server Program option before writing your program ID
    4. Write you program ID (remember it's case-sensitive)
    5. In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server)
    7. No configuration in the J2EE administrator nessecary
    Now we can proceed to RFC channel configuration:
    1. Enter your Application Server
    2. Your Application Server Service
    3. Enter your Program ID from the RFC destination
    And we're done:)
    Now you can test the RFC destination in SM59 to see if it works.
    Please chk this following link.
    1. RFC Processing with the RFC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    2. Configuring the Sender RFC Adapter -
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    3.  /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    regards
    Manas

  • Adding a RAID card to help speed up export (and other drive question) in Premiere Pro CC

    First of all, I have read Tweakers Page exporting section because that is where my primary concern is. First my questions, then background and my current and proposed configurations:
    Question 1: Will adding a hardware RAID controller, such as an LSI MegaRAID remove enough burden from the CPU managing parity on my software RAID 5 that the CPU will jump for joy and export faster?
    Question 2: If true to above, then compare thoughts on adding more smaller SSDs for either a one volume RAID 0 or smaller two volume RAID 0 to complement existing HDD RAID 5. That is, I'm thinking of buying four Samsung 850 Pro 128 GB SSDs to put in a four disk volume to handle everything (media/projects, media cache, previews, exports), or split it up into two volumes of two disks each and split the duties, or keep the four disk volume idea and put the previews & exports on my HDD RAID 5 array.
    The 850's are rated at SEQ read/write: 550/470 MB/s thus I could get around 2000/1500 MB/s read write in a four disk RAID 0 or 1/2 that if I split into two volumes to minimize volumes from reading/writing at the same time, if that really matters with these SSDs?
    The Tweaker's page made a few comments. One is splitting duties among different disks, rather than a large efficient RAID may actually slow things down. Since the SSDs are much faster than a single HDD, I'm thinking that is no longer accurate, thus I'm leaning toward the Four disk configuration putting OS & Programs on C drive, Media & Projects on D (HDD RAID 5), Pagefile & Media Cache on SSD (2-disk RAID 0) and Previews &Exports on 2nd SSD RAID 0 (or combine the two RAID 0's and their duties).
    Just trying to get a perspective here, since I haven't purchased anything yet. Any experience/stories, I would appreciate.
    My current drive configuration:
    My D drive is software RAID 5 consisting of four 1 TB Western Digital RE4 (RED) 7200 RPM HDDs with a CrystalDiskMark SEQ Read/Write of 339/252 MB/s.
    The C drive is SSD 500 GB (Samsung 840 (not Pro) and does 531/330 MB/s. My OS, Program Files and Page File are on C, and data/media files/project, etc all are on the RAID drive.
    Problem:
    Current setup allows for smooth editing, only the exporting seems slow, often taking between two and two and a half times the video length to export. Thus a 10 minute video takes 20-30 minutes to export. 15 minute video can take 30-40 minutes to export. The first 10% of the two-pass export takes under a minute (seems fast), but it gets slower where the final 10 or 20% can hang for many minutes like my system is running out of steam. So where is the waste?
    I have enabled hardware acceleration (did the GPU hack since my GPU isn't listed) and it may spike at 25% usage a few times and eat up 600 MB of VRAM (I have 2 GB of VRAM), otherwise it is idle the whole export. The CPU may spike at 50% but it doesn't seem overly busy either.
    Our timeline is simple with two video streams and two audio streams (a little music and mostly voice) with simple transitions (jump cuts or cross dissolves). We sometimes fast color correct, so that might use the GPU? Also, since we film in 1080 60P and export 1080 29.97 frames/sec, I think that is scaling and uses the GPU. I know without the GPU, it does take a lot longer. I have ruled out buying a faster GPU since it doesn't appear to be breaking a sweat. I just need to know if my system is bottlenecked at the hard drive level because I'm using software RAID and my disks are slow and will hardware RAID significantly reduce the CPU load so it can export faster.
    Our files are not huge in nature. Most our clips are several MBs each. Total project files are between 5 GBs and 10 GBs for each video with Windows Media File export being 500 MB to 1.2 GB on average. We shoot using Panasonic camcorders so the original files are AVCHD, I believe (.MTS files?).
    Considerations:
    1. I'm thinking of buying (and future proofing) an LSI Logic MegaRAID 9361-8i that is 12Gb/s SAS and SATA (because some current SSDs can exceed the 6Gb/s standard).
    2. I'm not replacing my current RAID 5 HDDs because not in my budget to upgrade to 6 or more large SSDs. These drives are more important to me for temporary storage because I remove the files once backed up. I don't mind a few inexpensive smaller SSDs if they can make a significant difference for editing and exporting.
    I can only guess my HDD RAID is slow but the CPU is burdened with parity. I would imagine running RAID 10 would not help much.
    My setup:
    my setup:
    CPU - i7-3930K CPU @4.5 GHz
    RAM - G.SKILL Ripjaws Z Series 32GB (4 x 8GB) DDR3 2133 @2000
    Motherboard - ASUS P9X79 WS LGA 2011
    GPU - Gigabyte GeForce GTX 660 OC 2GB (performed the compatibility list hack to enable hardware acceleration).
    C drive - 500 GB Samsung 840 SSD (Windows 7 Pro 64 bit and programs).
    D drive - four 1 TB WD RE4 Enterprise HDDs 7200 RPMs in software RAID 5
    Case - Cooler Master HAF X
    CPU Fan - Cooler Master Hyper 212 EVO with 120 mm fan
    Power Supply - Corsair Pro Series AX 850 Watt 80 Plus Gold
    Optical Drive - Pioneer BDR - 208DBK
    thanks in advance,
    Eric

    ........software RAID 5 off the motherboard ??????......NOT a good idea, from what I have read here on this forum from experts like Harm Millard and others. They have mentioned a LARGE overhead on the CPU doing this....causing sub-par performance. RAID 0 off the motherboard will NOT do this, however.....RAID 0 would provide optimum speed, but, with the risk of total data loss if ANY drive fails. You may wish to reconfigure your RAID to be RAID 0...BUT...you would need to DILIGENTLY back up its entire volume onto perhaps a quality 4TB drive very frequently.
         A lot depends on the nature of your current and FUTURE codecs you plan to edit. You may not want to sink a lot of money into an older setup that may have trouble with more demanding future codecs. For now, in the 1080p realm, your rig should be OK....the read/write performance on your CURRENT RAID 5 setup is not great, and a definite drag on the performance. The rest of your components appear to be fine.....the Samsung SSD, though not ideal, is OK.....it's write speed is WAY lower than the Pro model,but, the drive is used mainly for reading operations. Since you have Windows 7 Pro, and NOT Windows 8.......you CAN put the entire windows page file onto the RAID 0 you might create.....this will take that frequent read/write load OFF the SSD. Read the "tweakers Page" to see how to best TUNE your machine. To use your current setup most efficiently, without investing much money, you would :a. create the RAID 0 off the motherboard, ( putting all media and project files on it )  b. install a quality 7200rpm 4TB HDD to serve as a BACKUP of the RAID array. Then, install a Crucial M550 256GB or larger SSD, ( close in performance to Samsung 850 Pro...much cheaper), to put all previews, cache , and media cache files on....AND to use as " global performance cache" for After Effects...if you use that program. Exporting can be done to ANOTHER Crucial M550 for best speed...or, just to the either the FIRST Crucial or, the 4TB drive. Your current GPU will accelerate exports on any video containing scaling and any GPU accelerated effects. Your CPU is STILL important in SERVING the data to and from the GPU AND for decoding and encoding non-GPU handled video....your high CPU clock speed helps performance there ! You may want to check out possibly overclocking your video card, using MSI Afterburner.or, similar free program. Increasing the "memory clock speed" can RAISE performance and cut export times on GPU effects loaded timelines,or, scaling operations. On my laptop, I export 25% faster doing this. With my NEW  i7 4700 HQ laptop, I export in the range of your CURRENT machine....about 2 to 3 times the length of the original video. PROPERLY SET UP...your desktop machine should BLOW THIS AWAY !!
        Visit the PPBM7 website and test your current setup to possibly identify current bottlenecks,or, performance issues. THEN, RE-TEST it again, after making improvements to your machine to see how it does. Be aware that new codecs are coming (H.265 and HEVC,etc.) which may demand more computer horsepower to edit, as they are even MORE compressed and engineered for "streaming" high quality at a lower bandwidth on the internet. The new Haswell E...with its quad-channel memory, 8 core option, large number of PCI gen. 3 lanes, goes farther in being prepared for 4K and more. Testing by Eric Bowen has shown the newer PPro versions provide MUCH better processing of 4K than older versions.

Maybe you are looking for