Generating BCH Codes for Forward Error Correction

Has anybody created VIs for generating BCH (Bose-Chaudhuri-Hochquenghem) error correction codes?
I need to generate the codes for a 16 bit data packet.
I've found samples in C on the web (http://www.eccpage.com/) but nothing in LV.
Thanks,
-dave

I hate to bump a topic that is over 6 years old, but I am in need of a simple BCH encoding algorithm and do not have the toolbox which provides this.  I only need the encoding algorithm so I am hoping to implement this .VI posted here. 
I have slightly altered the cleaned up version that was posted to have the inputs/outputs in a format that I expect, but I am worried that it is not correctly calculating the BCH code.  This is my first time working with BCH codes, but I need to implement the CCSDS version using n = 63, k = 56 7-bit BCH code with generator polynomial G(x) = x^7 + x^6 + x^2 + 1.
I think when using 0xC5C5C5C5C5C5C5 as my input message the 7 bit BCH is supposed to be 0x43, but I am getting 0x00.  Could someone with more experience than me see if I did something obviously wrong?  Or know of a way to validate a BCH encoding algorithm, so I know if what I did was correct.  I attached my modeified .vi.  Thanks!
Attachments:
BCH_3.vi ‏24 KB

Similar Messages

  • Forward Error Correction

    I'm trying to find a way to implement Forward Error Correction (FEC) in Java, and if possible, find a code that someone has wirtten b4.
    Can any1 plz help me? I need this FEC in a one way communication.

    BTW, I want this in native Java (not C, like swarmcast)

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • Transcation code for seeing error dump in BSP

    Hi,
    I want to know T code for seeing  error dump in BSP and also about few function modules related to
    CRM_ORDER_READ and thier purpose.
    Thanks,
    Brahmaji

    HI,
    Dumps you can see through ST22 as in ABAP.
    CRM_ORDER_READ  belongs to the function group CRM_ORDER_API.
    In SE80, under this function group you have list of several function modules.
    Br,
    SS

  • Problem while Generating client code for webservice

    hi,
    my environnement is weblogic 8.1, and i folow the tutorial to generate stub and client code for invoking a webservice hosted by another weblogicserver, here is a portion of the wsdl file :
    <wsdl:definitions targetNamespace=" .......
    xmlns:tns2="http://exception.toto.fr"......>
    <wsdl:types>
    <schema targetNamespace="http://exception.toto.fr" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="ChainedException">
    - <sequence>
    <element name="cause" nillable="true" type="xsd:anyType" />
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message ....../>after that, as desribed in the weblogic doc, i create a build.xml, and run the ant command (wich call the clientgen weblo ant task, i end up with the following error :
    [clientgen] weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://exception.toto.fr']:tns2:ChainedException perhaps due to the lack of an import statement for namespace http://exception.toto.fr
    [clientgen] at weblogic.xml.schema.model.XSDSchema.getSchemaForName(XSDSchema.java:1062)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTopLevelObjectImpl(XSDSchema.java:893)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTypeImpl(XSDSchema.java:881)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupType(XSDSchema.java:872)
    [clientgen] at weblogic.xml.schema.model.XSDObject.lookupType(XSDObject.java:324)
    [clientgen] at weblogic.xml.schema.model.XSDAnyType.getBaseTypeObject(XSDAnyType.java:56)
    [clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.realBaseType(SchemaInspe
    .....thanks a lot for your help

    I am facing the same problem.Did any one able to find the solution

  • Finder error in WL generated Stub code for a BMP Entity Bean

    Hi,
    I have a group finder error in a BMP I am writing in WL 6.1 sp3.... The
    group finder is...
    public Collection ejbFindByDocumentKey(DocumentPK docKey) {.....
    .... // get a record set of all the interesting keys....
    ArrayList retVal = new ArrayList();
    while(rs.next()) {
    int subDocNum = rs.getInt(1);
    SubDocPK subDocPK = new SubDocPK(subDocNum);
    retVal.add(subDocPK);
    return retVal;
    ..... // Exception handling
    Which works fine in the debugger, but in the session facade when I get an
    Iterator on the Collection and cast the result to a SubDocPK I get a
    ClassCastException. When I look at the type of the class in the Collection
    returned by the container it is SubDocBean_mjdk3_EOimpl (I cannot remember
    the exact name as it was at work and I am now at home)
    Has anyone else found this problem or a way around, or should I just write a
    DAO and get the collection myself?
    Yours
    Paul Brennan

    Right, this is how finders work in BMP.
    The ejbFindXXX implementation returns a collection of primary keys. The
    container then takes this and returns a collection of remote or local
    references.
    -- Rob
    Paul Brennan wrote:
    Hi all,
    Just got into work and I want to add that the class inside the collection is a
    cdcp.ejb.cdcp.SubDocPK
    as below; and when I look in the session bean I get a type
    cdcp.ejb.cdcp.SubDocBean_jktqi5_ELOImpl
    I have an EAR file I am willing to share....
    Any comments or suggestions are welcom
    "Paul Brennan" <[email protected]> wrote:
    Hi,
    I have a group finder error in a BMP I am writing in WL 6.1 sp3....
    The
    group finder is...
    public Collection ejbFindByDocumentKey(DocumentPK docKey) {.....
    .... // get a record set of all the interesting keys....
    ArrayList retVal = new ArrayList();
    while(rs.next()) {
    int subDocNum = rs.getInt(1);
    SubDocPK subDocPK = new SubDocPK(subDocNum);
    retVal.add(subDocPK);
    return retVal;
    ..... // Exception handling
    Which works fine in the debugger, but in the session facade when I get
    an
    Iterator on the Collection and cast the result to a SubDocPK I get a
    ClassCastException. When I look at the type of the class in the Collection
    returned by the container it is SubDocBean_mjdk3_EOimpl (I cannot remember
    the exact name as it was at work and I am now at home)
    Has anyone else found this problem or a way around, or should I just
    write a
    DAO and get the collection myself?
    Yours
    Paul Brennan

  • Generating activation code for mobile application

    Hi
    I am writing a mobile application which I am planning to have some kind of registration so that they don't install the application easily. For example, can I generate an activation code kind of thing using the phone's IMEI or is there any other logic or ways of doing it.
    Thanks
    Mani.

    Oh no I do not mean to unlock my phone, I just need to activate the SIM card inside so that I can use the phone to make calls and send messages etc. By this point I even have no idea what my number is... =D

  • Dowloading Code for files Error

    so im still having trouble with this code, I can download the files, and i get prompted, but when other people try to download it doesnt work.
    When i just tried opening the .swf i get prompted by this window
    but when i open  the flash file and export a .swf it downloads
    is there something im missing?
    <<armenia_btn.addEventListener(MouseEvent.MOUSE_DOWN,armeniaDownload);
    armenia_text.addEventListener(MouseEvent.MOUSE_DOWN,armeniaDownload);
    function armeniaDownload(event:MouseEvent):void
        request = new URLRequest("http://www.ps4h.org/country_data_files/Armenia.zip");   
        localRef = new FileReference();   
        try
                localRef.download( request );
        catch (error:Error)
                trace("Unable to download file.");  
    }>>

    thanks for youre help so far!!! I appreciate it!
    so i talked to my partner and he tried uploaded the files along with the files that are to be downloaded on the godaddy.com server, and he and the producer was still getting the message.
    sorry i am just stumped and have no idea  how to proceed  or where to even begin.
    if its on a non-local server( godaddy is a non-local right?) and it is still not working.
    where should i proceed?

  • How to check code for syntax errors

    How do I check or validate my html code in dreamweaver. I wish to see if all the braces and tags are closed or not
    please guide me

    Hi There:
    You can check to make sure the tags, parentheses (( )), braces ({ }), and square brackets ([ ]) in your page are balanced. Balanced means that every opening tag, parenthesis, brace, or bracket has a corresponding closing one, and vice versa.
    Check for balanced tags
    Open the document in Code view.
    Place the insertion point in the nested code you want to check.
    Select Edit > Select Parent Tag.
    The enclosing matching tags (and their contents) are selected in your code. If you keep selecting Edit > Select Parent Tag, and your tags are balanced, eventually Dreamweaver will select the outermost html and /html tags.
    Check for balanced parentheses, braces, or square brackets
    Open the document in Code view.
    Place the insertion point in the code you want to check.
    Select Edit > Balance Braces.
    All of the code between the enclosing parentheses, braces, or square brackets is selected. Choosing Edit > Balance Braces again selects all of the code inside the parentheses, braces, or square brackets that enclose the new selection.
    And also make sure to validate your HTML code at - http://validator.w3.org/
    Regards
    Vinay

  • A SMALL EXAMPLE CODE FOR MUTATING ERROR

    create or replace trigger TRG_T1
    before insert on T1
    begin
    insert into T1 values(2);
    end;
    IF I TRY TO INSERT INTO T1 TABLE I GET A MUTATING ERROR HOW CAN I SOLVE??????

    joealexander wrote:
    create or replace trigger TRG_T1
    before insert on T1
    begin
    insert into T1 values(2);
    end;
    IF I TRY TO INSERT INTO T1 TABLE I GET A MUTATING ERROR HOW CAN I SOLVE??????
    No, you do NOT get a mutating table error. You get this:
    orcl112> create table t1(c1 number);
    Table created.
    Elapsed: 00:00:00.03
    orcl112> create or replace trigger TRG_T1
      2
      3  before insert on T1
      4
      5  begin
      6
      7  insert into T1 values(2);
      8
      9  end;
    10
    11  /
    Trigger created.
    Elapsed: 00:00:00.04
    orcl112> insert into t1 values (1);
    insert into t1 values (1)
    ERROR at line 1:
    ORA-00036: maximum number of recursive SQL levels (50) exceeded
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    You are the second person today who has claimed to have seen this error and posted code that did not raise it. What is going on?

  • Jabber Guest Sample code for iOS - ERRORS

    I am trying to develop a Jabber Guest app for a customer. I downloaded the sample xcode projects and attempted to run ABC Bank, to see how a it one would work. The build failed and I received the error: " No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). " Any help is appreciated.
    I've attached a screenshot of the error message

    From the screenshot it looks like you are using a simulator to run the sample apps. For the sample apps to work you have to build using a device. Running on a simulator is not supported.
    It's on our roadmap to add support to build via simulator. 

  • Weblogic 6.0 (SP2) generates incorrect java code for JSP with response.sendRedirect()

              Hi,
              Here are the steps to reproduce the problem with the examplesWebApp application
              bundled with wlserver6.0(sp2):
              Product: Weblogic server 6.0 (sp2)
              Browser: IE 5.0
              1. Add index.jsp as the welcome file in WEB-INF/web.xml
              2. Create index.jsp as below:
              <%
              response.sendRedirect("index.html");
              return;
              %>
              <html>
              <head>
              <title>Index JSP file</title>
              </head>
              <body>
              <font color="red">This is index.jsp file </font>
              </body>
              </html>
              3. Create index.html as below:
              <html>
              <head>
              <title>Index HTML file</title>
              </head>
              <body>
              <font color="red">This is index.html file </font>
              </body>
              </html>
              4. Run the examples server and make sure examplesWebApp is deployed on the examples
              server using the console
              5. Access the URL http://localhost:7001/examplesWebApp
              The page will display a compilation error as below:
              C:\bea\wlserver6.0\config\examples\applications\examplesWebApp\WEB-INF\_tmp_war_examplesServer_examplesServer_examplesWebApp\jsp_servlet\_index.java:89:
              unreachable statement
              out.print("\r\n<html>\r\n<head>\r\n<title>Simple html</title>\r\n</head>\r\n<body>\r\n<font
              color=\"red\">This is index.jsp page</font>\r\n</body>\r\n</html>\r\n");
              ^
              and a look at the generated java code for index.jsp (_index.java) will reveal
              the erroneous code snippet below in the jsp service method:
              try { // error page try block
              //[ /index.jsp; Line: 1]
              response.sendRedirect("index.html"); //[ /index.jsp; Line: 2]
              return; //[ /index.jsp; Line: 3]
              out.print("\r\n<html>\r\n<head>\r\n<title>Simple html</title>\r\n</head>\r\n<body>\r\n<font
              color=\"red\">This is index.jsp page</font>\r\n</body>\r\n</html>\r\n");
              } catch (Exception __ee) {
              while (out != null && out != _originalOut) out = pageContext.popBody();
              pageContext.handlePageException(__ee);
              The above web application works fine in Tomcat 3.2.X environment. The Weblogic
              server 6.0 servlet engine should not generate the "out.println()" corresponding
              to the html section of index.jsp. The moment it sees the "return", it should stop
              processing further.
              Can someone from Weblogic support team please verify this and let me know when
              this bug will be fixed?
              One interesting thing I noticed was when we last tried weblogic 6.0 at its beta
              stage, it worked fine after we put in a special patch jar file called "redirectfix.jar"
              we received from weblogic team but somehow it got re-introduced by the time it
              was released!!
              We are planning to migrate our product from tomcat 3.2.x to weblogic 6.0. Our
              product has a lot of pages with such conditional {response.sendRdirect("page.jsp");return;}
              blocks. We would really appreciate a faster response form weblogic team.
              Thanks in advance.
              sam...
              Sam Palanisamy
              Senior Software Engineer
              Manage.com
              2345 N. First Street First Floor
              San Jose CA 95131
              

    Why should it stop when it sees a return? Is that in the spec?
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "Sam Palanisamy" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > Here are the steps to reproduce the problem with the examplesWebApp
              application
              > bundled with wlserver6.0(sp2):
              >
              > Product: Weblogic server 6.0 (sp2)
              > Browser: IE 5.0
              >
              > 1. Add index.jsp as the welcome file in WEB-INF/web.xml
              >
              > 2. Create index.jsp as below:
              > <%
              > response.sendRedirect("index.html");
              > return;
              > %>
              > <html>
              > <head>
              > <title>Index JSP file</title>
              > </head>
              > <body>
              > <font color="red">This is index.jsp file </font>
              > </body>
              > </html>
              >
              > 3. Create index.html as below:
              > <html>
              > <head>
              > <title>Index HTML file</title>
              > </head>
              > <body>
              > <font color="red">This is index.html file </font>
              > </body>
              > </html>
              >
              > 4. Run the examples server and make sure examplesWebApp is deployed on the
              examples
              > server using the console
              >
              > 5. Access the URL http://localhost:7001/examplesWebApp
              >
              > The page will display a compilation error as below:
              >
              C:\bea\wlserver6.0\config\examples\applications\examplesWebApp\WEB-INF\_tmp_
              war_examplesServer_examplesServer_examplesWebApp\jsp_servlet\_index.java:89:
              > unreachable statement
              > out.print("\r\n<html>\r\n<head>\r\n<title>Simple
              html</title>\r\n</head>\r\n<body>\r\n<font
              > color=\"red\">This is index.jsp page</font>\r\n</body>\r\n</html>\r\n");
              > ^
              >
              > and a look at the generated java code for index.jsp (_index.java) will
              reveal
              > the erroneous code snippet below in the jsp service method:
              >
              > try { // error page try block
              >
              > //[ /index.jsp; Line: 1]
              > response.sendRedirect("index.html"); //[ /index.jsp; Line: 2]
              > return; //[ /index.jsp; Line: 3]
              > out.print("\r\n<html>\r\n<head>\r\n<title>Simple
              html</title>\r\n</head>\r\n<body>\r\n<font
              > color=\"red\">This is index.jsp page</font>\r\n</body>\r\n</html>\r\n");
              > } catch (Exception __ee) {
              > while (out != null && out != _originalOut) out =
              pageContext.popBody();
              > pageContext.handlePageException(__ee);
              > }
              >
              > The above web application works fine in Tomcat 3.2.X environment. The
              Weblogic
              > server 6.0 servlet engine should not generate the "out.println()"
              corresponding
              > to the html section of index.jsp. The moment it sees the "return", it
              should stop
              > processing further.
              >
              > Can someone from Weblogic support team please verify this and let me know
              when
              > this bug will be fixed?
              >
              > One interesting thing I noticed was when we last tried weblogic 6.0 at its
              beta
              > stage, it worked fine after we put in a special patch jar file called
              "redirectfix.jar"
              > we received from weblogic team but somehow it got re-introduced by the
              time it
              > was released!!
              >
              > We are planning to migrate our product from tomcat 3.2.x to weblogic 6.0.
              Our
              > product has a lot of pages with such conditional
              {response.sendRdirect("page.jsp");return;}
              > blocks. We would really appreciate a faster response form weblogic team.
              >
              > Thanks in advance.
              > sam...
              > Sam Palanisamy
              > Senior Software Engineer
              > Manage.com
              > 2345 N. First Street First Floor
              > San Jose CA 95131
              >
              >
              

  • Error Correction for iTunes?

    When importing CDs into iTunes there is an option for Use Error Correction. There is a minimal explanation under Help as to what it does but not as to how. Does anyone know how the Error Correction process works. Is there a check against a data base comparing the rip against others to verify accuracy? Any details you can provide is appreciated.
    My interest in knowing is maintaining the highest quality and most accurate iTunes library possible.

    found in another discussion on another forum:
    David Charlap
    Don Hurter asks what "Use error correction when reading Audio CDs" does.
    Audio CDs have error correction codes on the disc, so that errors (like manufacturing defects, scratches, fingerprints, and even some copy protection schemes) can often be played through without corrupting the sound.
    When you rip a CD, the computer reads the raw audio data from the disc. Typically, it just reads the audio samples and ignores the error-correction codes, assuming that the data will be good. This means that if there are any errors on the disc, those errors will become defects in the sound (typically heard as pops or clicks.)
    When you turn on the "use error correction" feature, iTunes will process the error correcting codes along with the audio samples, using them to correct any errors it finds. If your computer is fast enough (relative to the drive's audio-extraction speed), you won't notice a slowdown (but you may notice an increase in CPU usage.) If the computer is not that fast, using error correction will slow down the ripping.
    JGG

  • Designerd does not generate Order BY code for Sort Order on a lookup tabel column.

    I am setting the Sort Order on a column which is based on a lookup table.
    When generate the the module, designer does not generate the code for the Sort Order that I set on the lookup table column.
    Is there a work around for this problem or is there some thing else that needs to be done in designer to make it generate the order by clause?
    I will very much appreciate help.
    Regards
    Prasad.

    A bound lookup item, will be generated as a NON-database item in Forms. Designer generates an ORDER BY CLAUSE (a Forms Block property) for the ordering. But a NON-database item cannot be included in the ORDER BY CLAUSE.
    I used a stored function for ordering the lookup item.
    Best regards
    Harm van Zoest

  • Same error code for two different errors

    I have a simple state machine with a few states, two of which are read ini file and read GPIB data. I also have an error handling state where I would like to handle all errors. Errors are checked for on each iteration of the loop, passed by shift register. However, I can't just unbundle the error cluster and wire the error code to a case structure because if the ini file doesn't exist (error code 7) I want to exit the program. But if I get error 7 from the gpib (Nonexistent GPIB interface) I want the program to continue running. What is the best way to track where the error is coming from so I know how to handle it when two error codes for different errors have the same error code value?
    Message Edited by for(imstuck) on 01-27-2010 03:47 PM
    CLA, LabVIEW Versions 2010-2013

    Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

Maybe you are looking for