MyRIO simple code compilation FPGA

Hello,
I am new to FPGA and I want to compile some simple code. I know that myRIO comes with default FPGA configuration so I want to create new one and compile it. Lets say that I want blinking LED. So I create new VI on FPGA and here is simple code:
then I add it to build and start compilation
As compilation goes it says that it will use 30% of FPGA resources:
Why is that? Whole compilation on cloud server takes more than 20 minutes. I have seen some example videos on CRio FPGA and that simple code should use no more than 2% of resources and shuld compile in 2 to 3 minutes.
What I am doing wrong?
Thanks in advice

Hey Pawhan11,
There are two main reasons for the FPGA resource consumption.  First is that the FPGA on the myRIO (Zynq Z-7010) is relativly small compared to some other NI targets you may have used.  The second reason that even a simple FPGA application takes ~20% of the FPGA fabric is because some of the FPGA fabric is already being used for other purposes.  For example some NI Real-Time targets implement UARTs, RS232 or even ethernet in the FPGA to ensure consistency between devices. 
Since myRIO is based on the Xilinx Zynq chip it uses a different toolchain than previous FPGA devices which may cause the difference in compile/synth times.
-Sam K
LabVIEW Hacker
Join / Follow the LabVIEW Hacker Group on google+

Similar Messages

  • Simple code compiled in 1.6 but not in 1.5

    Can any one tell me if this is bug in 1.5 or 1.6 ?
    This code seems to me perfectly legal, but in 1.5 compiler issues an error, in 1.6 it does not.
    Is any opened bug related to it so i can learn some more.
    class TKey<T> {}
    class TKeyWrapped<T, W extends Wrapper<T>> extends TKey<T> {}
    public class AlonProblem<T extends Number> {
        public void test() {
            // this assignment cause the error
            TKeyWrapped<T, ? extends Wrapper<T>> resolved = getKey();
        protected TKeyWrapped<T, ? extends Wrapper<T>> getKey() {
            return null;
    }The error is:
    D:\views.dat\BoazAdonisS\Q\wf\core\AlonProblem.java
    Error:Error:line (18)incompatible types
    found : wf.core.TKeyWrapped<T,capture of ? extends wf.core.Wrapper<T>>
    required: wf.core.TKeyWrapped<T,? extends wf.core.Wrapper<T>>
    Thanks
    Boaz
    Message was edited by:
    boaznahum

    FYI, I just compiled this with 1.5.0_7. I get the same error from IDEA 5.2.1) (so presumably also from javac directly), but Eclipse 3.2.1 compiles it just fine.

  • Ask for help( simple code but wired error )!

    The post I sent just now has some mistakes. This post is correct. My simple code is as follows:
    import java.io.*;
    import java.net.*;
    public class count {
    float dclient = (float)3.333;
    float dlan = (float)0.01884;
    float drouter = (float)0.00115;
    float doutlink = (float)0.04185;
    float dinternet = (float)1.2615;
    float dinlink = (float)3.18129;
    float client1 = 0;
    float lan1 = 0;
    float router1 = 0;
    float outlink1 = 0;
    float internet1 = 0;
    float inlink1 = 0;
    float client2 = 0;
    float lan2 = 0;
    float router2 = 0;
    float outlink2 = 0;
    float internet2 = 0;
    float inlink2 = 0;
    float x = 0;
    float z = (float)3.333;
    public static void main(String[] args) {
    for (int n=1; n<16; ++n)
    client1 = dclient;
    lan1 = dlan * (1+lan2);
    router1 = drouter;
    outlink1 = doutlink * (1+outlink2);
    internet1 = dinternet;
    inlink1 = dinlink * (1+inlink2);
    x = n / (z + client1 + lan1 + router1 + outlink1 + internet1 + inlink1);
    client2 = x * client1;
    lan2 = x * lan1;
    rounter2 = x * rounter1;
    outlink2 = x * outlink1;
    internet2 = x * internet1;
    inlink2 = x * inlink1;
    System.out.println(client1 + " " +
    lan1 + " " +
    rounter1 + " " +
    outlink1 + " " +
    internet1+ " " +
    inlink1+ " **** " +
    x + " **** " +
    client2 + " " +
    lan2 + " " +
    rounter2 + " " +
    outlink2 + " " +
    internet2+ " " +
    inlink2 + " ********************end of n = " + n + "************************"
    The compiling error is:
    count.java:43: Can't make a static reference to nonstatic variable dclient in class count.
    client1 = dclient;
    ^
    1 error
    What is wrong with it? Many thanks!

    import java.io.*;
    import java.net.*;
    public class count
         public static float dclient = (float)3.333;
         public static float dlan = (float)0.01884;
         public static float drouter = (float)0.00115;
         public static float doutlink = (float)0.04185;
         public static float dinternet = (float)1.2615;
         public static float dinlink = (float)3.18129;
         public static float client1 = 0;
         public static float lan1 = 0;
         public static float router1 = 0;
         public static float outlink1 = 0;
         public static float internet1 = 0;
         public static float inlink1 = 0;
         public static float client2 = 0;
         public static float lan2 = 0;
         public static float router2 = 0;
         public static float outlink2 = 0;
         public static float internet2 = 0;
         public static float inlink2 = 0;
         public static float x = 0;
         public static float z = (float)3.333;
         public static void main(String[] args)
              for (int n=1; n<16; ++n)
                   client1 = dclient;
                   lan1 = dlan * (1+lan2);
                   router1 = drouter;
                   outlink1 = doutlink * (1+outlink2);
                   internet1 = dinternet;
                   inlink1 = dinlink * (1+inlink2);
                   x = n / (z + client1 + lan1 + router1 + outlink1 + internet1 + inlink1);
                   client2 = x * client1;
                   lan2 = x * lan1;
                   router2 = x * router1;
                   outlink2 = x * outlink1;
                   internet2 = x * internet1;
                   inlink2 = x * inlink1;
                   System.out.println(client1 + " " +     lan1 + " " router1 " " outlink1 " " internet1 " " inlink1 " **** " +     x + " **** " +
                   client2 + " " +
                   lan2 + " " +
                   router2 + " " +
                   outlink2 + " " +
                   internet2+ " " +
                   inlink2 + " ********************end of n = " + n + "************************"

  • Still having probs running simple code in SE8

    I copied a very simple code into SE8 and compiled it. Please find folowing the code and the output:
    package average2;
        import java.text.DecimalFormat;
        import java.swing.JOptionPane;
    public class Main {
        public Main() {
        public static void main( String args[] )
                int total;          // sum of grades
                int gradeCounter;   // number of grades entered
                int grade;          // grade value
                double average;     // number with decimal point for average
                String gradeString; // grade typed by user
                // initialisation
                total = 0;          // initialise total
                gradeCounter = 0;   // initialise gradeCounter
                // processing phase
                // get first grade from user
                gradeString = JOptionPane.showInputDialogue( "Enter Student Grade or -1 to Quit:" );
                // convert gradeString to int
                grade = Integer.parseInt( gradeString );
                // loop until sentinal value is reached
                while ( grade != -1 ) {
                    total = total + grade;          // add grade to tatal
                gradeCounter = gradeCounter + 1;    // increment counter
                // get next grade from user
                gradeString = JOptionPane.showInputDialogue( "Enter Student Grade or -1 to Quit:" );
                // convert gradeStrin to int
                grade = Integer.parseInt( gradeString );
            }   // end while
                // termination phase
                DecimalFormat twoDigits = new DecimalFormat( "0.00" );
                // if user entered at leat one grade...
                if( gradeCounter != 0 ) {
                    // calculate average of all grades entered
                    average = (double) total / gradeCounter;
                    // display average with two digits of precision
                    JOptionPane.showMessageDialog( null, "Class average is "
                            + twoDigits.format( average ), "Class Average",
                            JOptionPane.INFORMATION_MESSAGE );
                } // end 'if' part of if...else
                else // if no grades entered, output appropriate message
                    JOptionPane.showMessageDialog( null, "No grades were entered",
                            "Class Average", JOptionPane.cINFORMATION_MESSAGE );
                System.exit( 0 );
        } // end main
        }  // end class averageHere is the resulting output:
    init:
    deps-jar:
    Compiling 1 source file to C:\Java\Average2\build\classes
    C:\Java\Average2\src\average2\Main.java:10: illegal start of expression
    public static void main( String args[] )
    C:\Java\Average2\src\average2\Main.java:73: ';' expected
    } // end main
    C:\Java\Average2\src\average2\Main.java:75: '}' expected
    } // end class average
    3 errors
    BUILD FAILED (total time: 2 seconds).
    Can anyone tell me what I'm doing wrong?
    Thanks in advance

    Hmmm, I put the } in at the end of the code and that got rid of one of the bugs. code now reads:
    package average2;
        import java.text.DecimalFormat;
        import java.swing.JOptionPane;
    public class Main {
        public Main() {
        public static void main( String args[] )
                int total;          // sum of grades
                int gradeCounter;   // number of grades entered
                int grade;          // grade value
                double average;     // number with decimal point for average
                String gradeString; // grade typed by user
                // initialisation
                total = 0;          // initialise total
                gradeCounter = 0;   // initialise gradeCounter
                // processing phase
                // get first grade from user
                gradeString = JOptionPane.showInputDialog( "Enter Student Grade or -1 to Quit:" );
                // convert gradeString to int
                grade = Integer.parseInt( gradeString );
                // loop until sentinal value is reached
                while ( grade != -1 ) {
                    total = total + grade;          // add grade to tatal
                gradeCounter = gradeCounter + 1;    // increment counter
                // get next grade from user
                gradeString = JOptionPane.showInputDialog( "Enter Student Grade or -1 to Quit:" );
                // convert gradeStrin to int
                grade = Integer.parseInt( gradeString );
            }   // end while
                // termination phase
                DecimalFormat twoDigits = new DecimalFormat( "0.00" );
                // if user entered at leat one grade...
                if( gradeCounter != 0 ) {
                    // calculate average of all grades entered
                    average = (double) total / gradeCounter;
                    // display average with two digits of precision
                    JOptionPane.showMessageDialog( null, "Class average is "
                            + twoDigits.format( average ), "Class Average",
                            JOptionPane.INFORMATION_MESSAGE );
                } // end 'if' part of if...else
                else // if no grades entered, output appropriate message
                    JOptionPane.showMessageDialog( null, "No grades were entered",
                            "Class Average", JOptionPane.INFORMATION_MESSAGE );
                System.exit( 0 );
        } // end void main
        } // end main
    //} // end class mainWith the following output:
    init:
    deps-jar:
    Compiling 1 source file to C:\Java\Average2\build\classes
    C:\Java\Average2\src\average2\Main.java:10: illegal start of expression
    public static void main( String args[] )
    C:\Java\Average2\src\average2\Main.java:73: ';' expected
    } // end void main
    2 errors
    BUILD FAILED (total time: 0 seconds)
    I'm really sorry for being stupid. I'm just trying to understand what is going wrong. As soon as I get this sorted I can apply the principle to all other code I'm trying to write. I copied this code directly from my textbook used the SDK. Netbeans dosen't seem to like the way the textbook writes the code!

  • Erreur logiciel lors d'une compilation FPGA

    Bonjour,
    Suite à un bug durant la compilation FPGA, j'ai installer la derniere version de LabView avec la derniere version du NI-RIO, et effectivement le bug est parti !
    Mais comme le bonheur ne dure qu'un temps, j'ai maintenant une erreur qui se produit lors de la compilation...
    En cliquant sur le bouton "Détails" de la fenetre de compilation, le message suivant apparait :
    Cette erreur peut elle etre due à mon code ou alors la raison est tout autre ?
    Cordialement
    Nathan

    Solution trouvé !
    http://digital.ni.com/public.nsf/allkb/5B8827503F7D90F386257BEA002D8E99
     

  • Downloading compiled FPGA bit file to target

    Hello.
    I'm trying to use multiple FPGA VIs in a same project, same target.
    But, currently the Labview force me to re-compile when I want to run different FPGA VI in same project.
    Even after compiling two FPGAs, the Labview program attempts to re-compile when I trying to run differnt FPGA VI.
    So I refered http://zone.ni.com/reference/en-XX/help/371599G-01/lvfpgahelp/compiling_fpga_vis_howto/ to download compiled FPGA bit file to the target to transit to another FPGA VI.
    However, still the Labview program trying to re-compile the FPGA VI when I click RUN on the VI after downloading compiled VI to the flash of the target.
    How can I solve this problem?
    P.S.:
    I checked off the option of the build specification that the FPGA VI does not automatically run when it is loaded to target and the target switch is on.

    Are you sharing VIs between the two top-level VIs?
    If they have any conditional disable structures with different settings then the sub-VIs will be marked as changed when opening the top-level VI  for your second target.
    Do you need to run the code in interactive mode or can you simply compile a bitfile and use that instead.  That was the compilation requirement disappears.
    I agree though that LVs rush to mark VIs as changed is a problem for interactive FPGA mode.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that
    1. a '{' is expected at line6;
    2. Statement expected at the line which PI is declared;
    3. Type expected at "System.out.println("Demostrating PI");"
    However, I can't figure out them. Please help. Thanks.
    Here is the code:
    import java.util.*;
    public class DebugTwo3
    // This class demonstrates some math methods
    public static void main(String args[])
              public static final double PI = 3.14159;
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);

    Change your code to this:
    import java.util.*;
    public class DebugTwo3
         public static final double PI = 3.14159;
         public static void main(String args[])
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);
    Klint

  • Can anyone explain why the code compiles on one database but not another?

    I have two databases, both running 10.2.0.4, same hardware/OS platform.
    On one database, this code compiles just fine, on the second database, I get errors as shown below:
    SQL> SET SERVEROUTPUT ON SIZE 1000000;
    SQL>
    SQL> create or replace procedure testproc as
    2 vCount number;
    3 vCmd varchar2(2048);
    4 vLastName varchar2(30);
    5 vFirstName varchar2(30);
    6 vPK integer := 0;
    7 vSortLN varchar2(30);
    8 vSortFN varchar2(30);
    9 cursor cPERSON is
    10 select LastName,
    11 FirstName
    12 from GENERIC.PERSON
    13 order by LastName, FirstName;
    14 BEGIN
    15 select count(*) into vCount from USER_OBJECTS where object_name = 'ML4TEMPPERSON';
    16
    17 IF (vCount = 0) THEN
    18 /* NOTE: Omit semi-colon from command. */
    19 vCmd := 'create table ML4TEMPPERSON (PK integer not null, LastName varchar2(30), SortLN varchar2(30), FirstName varchar2(30), SortFN varchar2(30))';
    20 Execute Immediate vCmd;
    21 vCmd := 'alter table ML4TEMPPERSON add (constraint XPKML4TEMPPERSON PRIMARY KEY (PK))';
    22 Execute Immediate vCmd;
    23 END IF;
    24
    25 delete from ML4TEMPPERSON;
    26
    27 for P in cPERSON
    28 loop
    29 vLastName := rpad(P.LastName, 30, ' ');
    30 vFirstName := rpad(P.FirstName, 30, ' ');
    31 vSortLN := vLastName;
    32 vSortFN := vFirstName;
    33 DBMS_OUTPUT.PUT_LINE(vLastName || ', ' || vFirstName);
    34 vPK := vPK+1;
    35 INSERT into ML4TEMPPERSON
    36 ( PK, LastName, SortLN, FirstName, SortFN)
    37 values
    38 (vPK, vLastName, vSortLN, vFirstName, vSortFN);
    39 end loop;
    40 IF (vPK > 0) THEN
    41 COMMIT;
    42 END IF;
    43 END;
    44 /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE TESTPROC:
    LINE/COL ERROR
    25/3 PL/SQL: SQL Statement ignored
    25/15 PL/SQL: ORA-00942: table or view does not exist
    35/7 PL/SQL: SQL Statement ignored
    35/19 PL/SQL: ORA-00942: table or view does not exist
    SQL>

    Your table ML4TEMPPERSON doesn't exist in your second database, and you want do delete ans insert, may be in first database the table ML4TEMPPERSON exist
    Try this code. /* Formatted on 2009/05/21 09:10 (Formatter Plus v4.8.8) */
    SET SERVEROUTPUT ON SIZE 1000000;
    CREATE OR REPLACE PROCEDURE testproc
    AS
       vcount       NUMBER;
       vcmd         VARCHAR2 (2048);
       vlastname    VARCHAR2 (30);
       vfirstname   VARCHAR2 (30);
       vpk          INTEGER         := 0;
       vsortln      VARCHAR2 (30);
       vsortfn      VARCHAR2 (30);
       CURSOR cperson
       IS
          SELECT   lastname, firstname
              FROM generic.person
          ORDER BY lastname, firstname;
    BEGIN
       SELECT COUNT (*)
         INTO vcount
         FROM user_objects
        WHERE object_name = 'ML4TEMPPERSON';
       IF (vcount = 0)
       THEN
    /* NOTE: Omit semi-colon from command. */
          vcmd :=
             'create table ML4TEMPPERSON (PK integer not null, LastName varchar2(30), SortLN varchar2(30), FirstName varchar2(30), SortFN varchar2(30))';
          EXECUTE IMMEDIATE vcmd;
          vcmd :=
             'alter table ML4TEMPPERSON add (constraint XPKML4TEMPPERSON PRIMARY KEY (PK))';
          EXECUTE IMMEDIATE vcmd;
       END IF;
       vcmd := 'delete from ML4TEMPPERSON';
       EXECUTE IMMEDIATE vcmd;
       FOR p IN cperson
       LOOP
          vlastname := RPAD (p.lastname, 30, ' ');
          vfirstname := RPAD (p.firstname, 30, ' ');
          vsortln := vlastname;
          vsortfn := vfirstname;
          DBMS_OUTPUT.put_line (vlastname || ', ' || vfirstname);
          vpk := vpk + 1;
          vcmd :=
                'INSERT into ML4TEMPPERSON
    ( PK, LastName, SortLN, FirstName, SortFN)
    values
             || vpk
             || ', '
             || vlastname
             || ','
             || vsortln
             || ','
             || vfirstname
             || ','
             || vsortfn
             || ')';
          EXECUTE IMMEDIATE vcmd;
       END LOOP;
       IF (vpk > 0)
       THEN
          COMMIT;
       END IF;
    END;
    /Edited by: Salim Chelabi on 2009-05-21 06:12

  • Convert simple code from as2 to as3

    Hello, i am looking for some help here for something simple (i think)
    var txt:String = link1;
    btn.onRelease = function():Void {
    if( sample_id )
    getURL("http://www.website.com/registration?partner_id=" + sample_id + "sampleURLCode", "_blank");
    else
    getURL("http://www.website.com/registration?sampleURLCode", "_blank");
    Is there a way to make this simple code into AS3?

    Hi, Apparantly that's because the 'link1' and 'sample_id' variables are not within the scope of the code you posted above, Perhaps you have defined them outside on a different frame or class. You can either define them with the same code like:
    var sample_id:Number=1234;  //Use your own variable type and value here
    var link1:String = "your string or link URL here";
    var txt:String = link1;
    btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(e:MouseEvent)
    if( sample_id )
          navigateToURL(new URLRequest("http://www.website.com/registration?sample_id=" + sample_id + "sampleURLCode"),"_blank");
    else
          navigateToURL(new URLRequest("http://www.website.com/registration?sampleURLCode"),"_blank");
    Or you can put a direct reference to your existing variable like (If your variables are defined on root/frame 1) :
    var link1:String = "your string or link URL here";
    var txt:String = MovieClip(this.root).link1;
    btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(e:MouseEvent)
    if( MovieClip(this.root).sample_id )
          navigateToURL(new URLRequest("http://www.website.com/registration?sample_id=" + sample_id + "sampleURLCode"),"_blank");
    else
          navigateToURL(new URLRequest("http://www.website.com/registration?sampleURLCode"),"_blank");
    try that, or you can share your .fla !
    cheers

  • NI-Farm internal error - unable to compile FPGA VI

    Hello!
    When I try to compile any FPGA VI with LabVIEW2013 or 2012 SP1, I receive the following error:
    "An error occurred attempting to connect to this compile server.
    Details:
    NI-Farm Internal Error: Client received unexpected or bad data from the server."
    The intermediate files are not generated, the error appears immediately after I select build from build specification, or after I click the run arrow.
    I'm using local compile server.
    The hardware I use: CompactRIO Evaluation Board - SbRIO9636, Laptop DELL, Intel core2 Duo, T5800, 2GHz, 3GB RAM, Windows 7 Ultimate 64bit, SP1.
    Intermediate files CAN be generated w/o any issues, if I select from the menu. If I launch FPGA Compile Worker, a balloon message appears specifying that "FPGA compile worker is running" but after a few seconds, another message pops up: Multiple log on attempts have been unsuccessful - please see attached images.
    At first I thought that my firewall(Comodo 6.3) is the reason for this, so I disabled it but nothing changed. Then I tried to repair LabVIEW FPGA, and XILINX tools with the firewall disabled but din not resolve the problem. I tried with both LabVIEW 2012 SP1 and 2013.
    If you have any suggestions, please let me know! Thank you!
    Certified LabVIEW Developer
    Solved!
    Go to Solution.

    Compile worker is set to local compile server. I could not start MAX 5.4 because of an Cmx exception, and after I upgraded MAX to 5.5, a missing dll error occurred. So long story short, I installed LabVIEW2013. Now MAX is working and I could generate a technical report. Only NI-RIO Server and NI License Server services were set on manual (or stopped?). I started both of them but still cannot compile FPGA vi.
    Certified LabVIEW Developer
    Attachments:
    ni_support.zip ‏1439 KB

  • Simple code to send ALV display as XLS attachment  to SAP inbox

    Hi All,
    Simple code to send ALV display as XLS attachment  to SAP inbox.
    Also i need to send only 200 records per attachement. So in this case i need send multiple attachment per mail
    Thanks,
    Lokesh

    The following code is used to send the internal table which u pass fo  the ALV display to be send as excel sheet attachment
    Internal table is it_attach[]
    ld_email               = po_email.
      ld_mtitle              = 'Email From Z377_EMAIL_XLS'.
      ld_format              = 'XLS'.
      ld_attdescription      = 'filename'.
      ld_attfilename         = 'Allot'.
      ld_sender_address      = ' '.
      ld_sender_address_type = ' '.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE li_content LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    *IMPORTING
    *sent_to_all                = w_sent_all
      TABLES
      packing_list               = t_packing_list
      contents_bin               = t_attachment
      contents_txt               = li_content
      receivers                  = t_receivers
      EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.

  • Jmf simple code

    Hi all,
    this is my simple code that plays a video from a specifed location.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author rohan
    import com.sun.media.util.ContentType;
    import javax.media.*;
    import javax.media.Manager;
    import java.io.*;
    import java.net.URL;
    import javax.media.bean.playerbean.MediaPlayer;
    import java.awt.*;
    import java.net.ProtocolException;
    import javax.swing.*;
    public class Main extends JFrame{
    * @param args the command line arguments
    public Main()
    try
    Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, true );
    Container cont=getContentPane();
    cont.setLayout(new FlowLayout());
    String myUrl=new String("C:\\Users\\rohan\\Softwares\\Jmf and jain sip\\Fig21_06_07\\bailey.mpg");
    System.out.println("myUrl====="+myUrl);
    MediaLocator myurls =new MediaLocator(myUrl);
    Player myplayer=Manager.createRealizedPlayer(myurls);
    System.out.println("Rohan");
    Component video = myplayer.getVisualComponent();
    cont.add(video);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    myplayer.start();
    catch(Exception e)
    System.out.println("Exception====="+e);
    public static void main(String[] args) {
    // TODO code application logic here
    // JFrame fr=new JFrame("hello");
    Main obj=new Main();
    obj.setBounds(300, 300 , 300, 300);
    obj.setVisible(true);
    Problem here is i get this exception
    "Exception=====javax.media.NoPlayerException: Cannot find a Player for :C:\Users\rohan\Softwares\Jmf and jain sip\Fig21_06_07\bailey.mpg
    Can u plz tel me where do i make changes ,so that i can run this simple app. Plz help me...so that i can go further(plz this is my first jmf app.)
    thanks.

    Change your file path like +"file:/C:/delta.mpg"+.
    Hope this will help you to fix your issue.
    Cheers,
    ARIF

  • Anyone have Simple Code to Play an .Flv file on a Website?

    Hi,
    Can someone please tell me how to make a web page play a .flv file. 
    Simple, basic code would do.
    I have an .flv file uploaded on my website.
    How do I get the Flash Player to play the file when someone visits the page?
    Again, all I'm looking for is simple code.
    Thanks,
    Joe

    add an flvplayback component to your swf.  give it an instance name (say flv).  then use:
    flv.contentPath="yourflv.flv";   // for as2
    flv.source="yourflv.flv";  // for as3

  • How can I allow user to customize the functionality of program at runtime? (not using runtime code compilation)

    Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML.  Where I define specific base operations like Get() and Put() methods that operate on strings. 
    And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them.  So they just create their own 'Operation' and fill it with the operations they want to perform on some
    incoming data type, in this case it is a string - with substring and insert methods. 
    EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option.  I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
    <Operation Name="GetValues">
      <Get id=123"  FromIndex="2" ToIndex="23"/>
      <Get id="234"  FromIndex="3" ToIndex="5"/>
       <Output Path="C:\" Filename="testOut.txt" Append="true">
         <Format>
              <Result id="123"/> , <Result id="234"/>
         </Format>
       </Output>
    </Operation>
    <Operation Name="InsertValue">
      <Put AtIndex="5">stringtoinsert</Put>
      <Put AtIndex="36">anotherstringtoinsert</Put>
    </Operation>

    Hi sjs1978,
    I am not familiar with dynamic code, and I made a research about it.
    >> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
    Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
    In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
    # Dynamic Source Code Generation and Compilation
    https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
    # CSharpCodeProvider Class
    https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
    # Is it possible to dynamically compile and execute C# code fragments?
    http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
    Best Regards,
    Tony
    Help each other

  • Same float code compiled differently on different machines

    Hi,
    Scenario:   same project build on different machines. and then both the  application executed on
    same machine .. giving  slightly different results..(like 23.07499   to 23.07500)
    project involves many float operations.  project build on vs2013. c++
    there is difference oberved in the final value of float calculations..  like 23.07499   to 23.07500
    seems , Same float code compiled differently on different machines,  any input
    Regards,
    james

    >Scenario:   same project build on different machines. and then both the  application executed on same machine ..
    giving  slightly different results..(like 23.07499   to 23.07500)
    Do you get consistent results with the same executable each time you
    run it?
    Assuming you do, and the only difference is the EXEs, what's the
    difference between them - there must be something. Have a look at "How
    to compare binary images of the same project builds"
    https://support.microsoft.com/en-us/kb/164151/ and see if that sheds
    any light onto the issue.
    Dave

Maybe you are looking for