Code of BCH
I want to make a code of BCH,first I want to realize (7,4)code. here is I made,but It has not finished
Is there anybody know this and help me?
thank you for entering and seeing
Attachments:
7-4æ±æç .vi 57 KB
Hi Fay
BCH (coder and decoder) and others are implemeted in Modulation Toolkit.
Perhaps you can ask your local NI representative to supply the bch vis.
Cheers
Alipio
"Qod natura non dat, Salmantica non praestat"
Similar Messages
-
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,
-daveI 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 -
I have been working on and off with advanced material in vector and tensor space, grad level math
anyway I was looking at error correcting code and noticed BCH as being a generalization over ideas like parity etc.
The syndrome is computed as a vector of
f(j) = (a_0)^j + (a_2)^j + ... + (a_s)^j
for odd i from 1 do d-1, where a_i is the i-th component
for some vector a
remember that f(2j) is simply the square of f(j))
Because in C++ we number from 0, f(j) will reside in location (j-1)/2
Let m=GF2E::degree() (i.e., the field is GF(2^m))
assume d is odd and greater than 1, and less than 2^m (else BCH codes don't make sense)
Place your rig specifics into your signature like I have, makes it 100x easier!
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate How can you be an environmentalist and still eat meat?Hi Vegan,
Thanks for posting in VC++ forum.
VC++ forum aims to discuss and ask questions about the Visual C++ IDE, libraries, samples, tools, setup, and Windows programming using MFC and ATL.
This issue is not proper here. It is more related to math issue.
May
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello,
i have a problem. I need a Channel Coding for a 56 Bit Bitstream. The code is a modified BCH-Code (63,56. My generator polynom is x^7+x^6+x^2+x^0.
I have the NI Modulation Toolkit, but it dosnt help. In the MT BHC Encoder.vi i cant adjust the generatorpolynom and use the (63,56).
Has anyone an idee or an example for me?
thanksHi,
the MT BHC.vi uses the order m to choose a polynomial from a table in a subvi inside MT BHC.vi.
From outside it is not possible to specify a custom polynomial, so you could try to change is inside, but
I cannot tell what exactly happens there.
Marco Brauner NIG -
Generate prov.xml for Creative Cloud. Return Code 27
We're trying to follow this guide (Creative Cloud Help | Using Adobe Provisioning Toolkit Enterprise Edition) to serialize a package (or something). We're stuck on generating prov.xml. My best attempt at an entry is:
C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\APTEE>adobe_prtk.exe --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --regsuppress=ss --eulasuppress --locales=en_US --provfilepath=C:\Program Fil
es (x86)\Common Files\Adobe\OOBE\PDApp\CCP
It says half of this is optional, but I'm skeptical.
Anyway, I'm getting return code 27. This indicates that it is unable to edit the prov.xml file specified. I didn't specify a prov.xml file, I'm trying to make one. The syntax I'm using differs from what I found on the page I linked, as that was giving me syntax errors. I lifted this off someone else's code. I've tried just about every variation I can think of. Any help would be appreciated.
This is on WindowsOne of these links may help
http://helpx.adobe.com/creative-cloud/packager.html
http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent -
Code returns "null" and "0"s in main module - why?
I am coding a program that is in two modules. The main module serves it's standard function. The inventory class/module has three functions - 1) request stock input on 4 data points (1 String and 3 integers, one of which is a double) - 2) calculate the value of the inventory, and - 3) return string which reads out the 4 data points and the calculation showing the total value of the inventory. I've created the 3 functions in the inventory class/module, but obviously don't have them referring to each other correctly because when we come to the end of the program the output is null for the String and "0"s for the int/doubles. The code is below - any ideas about how to overcome the empty output? The code compiles fine and acts like it is going to work, but when it comes to the final command line it outputs
"null, which is item number 0, has 0 currently in stock at a price of 0.00 each. The total value of inventory in stock is 0.00"
Main module:
public class Main {
@SuppressWarnings("static-access")
public static void main(String[] args) {
Inventory inventory = new Inventory(); //call Inventory class
inventory.inventoryInput();
Inventory results = new Inventory();
results.inventoryResults(); //call for inventoryResults in Inventory class
}Inventory module:
import java.util.Scanner;
import static java.lang.System.out;
public class Inventory
//declare and initialize variables
int itemNumber = 0;
String productName;
int stockAmount = 0;
double productCost = 0;
double totalValue = 0;
String inventoryResults;
//initialize scanner
Scanner input = new Scanner(System.in);
public void inventoryInput ()
out.println("Please enter item number: "); //prompt for item number
itemNumber = input.nextInt();
out.println( "Enter product name/description: "); //prompt for product name
productName = input.next();
out.println("Quantity in stock: ");
stockAmount = input.nextInt(); // prompt for stock quantity
out.println("What is the product cost for each unit? ");
productCost = input.nextDouble(); // prompt for product cost
} // end inventoryInput
public double totalValue( double stockAmount, double productCost )
totalValue = stockAmount * productCost;
return totalValue; // return stock value
} // end totalValue
public void inventoryResults()
out.printf("%s, which is item number %d, has %d currently in stock at a " +
"price of %.2f each. The total value of inventory in stock is " +
"%.2f\n.", productName, itemNumber, stockAmount, productCost, totalValue);
} // end inventoryResult
}// end methodjustStartingOut wrote:
Actually my final solution was quite simple - I moved the calculation and final formated print text statements into the body of Inventory's class code. It now works. "Works" scares me a bit.
Someone cooking dinner might rummage about in the fridge and the cupboards to see what's there. Do imaginative things with what they come up with. And, with a bit of luck come up with something tasty or, at any rate edible.
A physician deciding on a medical treatment would do well to try a more cautious approach. A specific aim would be a good thing. And a calculated appreciation of the documented effects of each medicine. And how they interact.
It's up to you to determine which approach your coding should resemble. But it seems to me that your original Main class had a perfectly good reason to exist. It was a driver class whose purpose seemed to be to create and use an Inventory. (And using an Inventory is a very different thing from being an Inventory, so it made perfect sense to have two different classes.) To me it works or not, depending on whether it fufills that purpose. And what you have done is not so much solve the problem of it not working, as avoid that problem.
(If by "moved" you mean that the outputting now occurs as part of - or is called from - inventoryInput() then that is not a good thing. The input method should input: just input.)
I think that is because once the original input was loaded into the program (when I entered product number, name, price and value), the entries were dropped when the code switched to the next step. I think your intuition is entirely correct. In particular look at what your original main() method does (my comments replacing yours):
Inventory inventory = new Inventory(); // (A) Create an inventory...
inventory.inventoryInput(); // ... and put stuff into it
// (B) Create some new entirely different (and empty) inventory...
Inventory results = new Inventory();
results.inventoryResults(); // ... and print its contentsInstead of creating a second inventory, try printing the results of the first one.
Edited by: pbrockway2 on Apr 22, 2008 12:37 PM
Whoops ... just read reply 2.
It might sense, though to call totalValue() at the end your input method (because at that point the total value has changed). Or do away with that method - which you worked on getting right in your other thread ;) -
Sample source code for fields mapping in expert routine
Hi All
Iam writing the expert routine from dso to cube for example I have two fields in dso FLD1,FLD2
same fields in infocube also ,can any body provide me sample abap code to map source fields to target fields in expert routine,your help will be heighly appreciatble,it's an argent.
regards
eliazBasic would be ;
RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
Hope this helps
Derya -
My phone want let me download any apps when I put the password in it take me to billing option which tell me I have the wrong security code and that's the security code that was on the card on the account
iTunes Store: My credit card's security code or zip code does not match my bank's records
http://support.apple.com/kb/TS1646 -
I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport. I've been using the passport for about a year now without any problems on older Macbooks in my house. I used to be able to read and write to this drive no problem. I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive. When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem. If I try to delete that folder I just created, I get this error:
The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
(Error code -36)
The folder has nothing in it whatsoever. I just created it. But if I go to Terminal and I run
rm -rf "untitled folder"
This works fine. Why is Terminal acting different than Finder? This does not happen on my other Macbooks. Thanks in advance.Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!
-
Hi, All
i have a trouble about report generation.it seems the error happened at the "write UUT report"--this step is teststand report generation'DLL.
detail:
An error occurred calling 'Save' in 'Report' of 'NI TestStand 2010 SP1 API'
Access Denied.. Error writing to file 'D:\program\seq\xxx.xml'.
The file might be open in another application. If file access is intermittently denied, you should try disabling the Microsoft FindFast utility.
error code:-17205; Access Denied.
locationtep 'Write UUT Report' of sequence 'Single Pass' in 'SequentialModel.Seq'
How to fix it?
Thanks a lot.
BRHm, it looks like the file might be open in another application. If you see that file accesss is intermittently denied, you should try disabling the Microsoft FindFast utility.
CTA, CLA, MTFBWY -
Error in Printing Crystal Report Directly to Printer using SDK Code
Hello ,
I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
as (Document Number).But While running the Code the Report is not getting printed and also the system is
not able to fetch the correct data in the report using the supplied parameter .
I am using Visual Studio 2005 Crystal Report dll s in my code :-
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports
Imports System
Imports System.Data.SqlClient
Imports System.IO
For Clarification i am pasting my code below :-
Dim oRpt As ReportDocument
oRpt = New ReportDocument
oRpt.Load(Path)
With crConnectionInfo
.ServerName = Server
.DatabaseName = Database
.UserID = User
.Password = Password
End With
CrTables = oRpt.Database.Tables
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
If Printer <> "" Then
oRpt.PrintOptions.PrinterName = Printer
End If
oRpt.PrintToPrinter(Copies, False, 0, 1)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
Please suggest me what i have to do in my code to print the report with correct data in report.
Thanks & Regards,
Amitk
-
hi all,
i want to take the report for the closing stock of plant/sloc on a particular date,but am not able to find out the t code,have tried with MB5B,still am not getting the report.
ur help required in this
thanks and regards
VijayHi,
As somebody pointed out the right T code is MC.9, which would give you the stock value for all the materials in a plant.However , fr Quantities you may have to add the field required in the choose Key figures icon and refine your report further.
Thanks in Advance,
Nagrajan -
I do a system restore which allows me to open my browser. Without this I cannot open my browser - the error code comes up every time.
Do a clean (re)install
* Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
* Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
* Don't remove personal data when uninstalling.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
From https://support.mozilla.com/en-US/questions/764376 -
Training and Event management T-code: PV4I.
Hello All-
We are trying to implement TEM and we completed the back end SAP config, and we are implementing the ITS version of the booking by creating an Iview using PV4I. The screen that we see when we execute this T-code is prompting for username and password. Can someone let me know which username and password this is looking at? There are other parameters on this screen including Attendee type, ALE session etc.
You can even try this in ECC GUI using /nPV4I in any other T-code (deceive ITS).
Or anybody has any document on how to configure the ITS services? If so please email me at [email protected]
Thanks-
Chakri.
Message was edited by:
chakri somisettiZsolt-
I tried these options earlier, and also created an internet userID in SU05. But I don't understand of how the logic works here.
Can you please explain me like what should be created first.
Lets say my Pernr in SAP is: 23456 and UserID in Infotype 105 in RKCR012
Shall I have to create the SU05 internet user for SAP number or RKCR012. I tried both options but still its prompting me for login and password again when I am trying to access PV4i in SAP GUI or portal. Even If I enter my sap # or the ID its not working, its prompting me saying that user name and password does not match.
Can you please explain me how the username and password in the PV4i ITS service and the SU05 internet userID are connected???
Thanks-
Chakri. -
Hi to all,
I'm using Asp.Net 2.0-C#, Crystal Report 11 SP1.
I bind some records to the report, i want to print the report when a checkbox is clicked instead of CR Print button, how to do this, experts please post any code?Hello,
I posted hyperlinks to the [Developer Library|https://www.sdn.sap.com/irj/sdn/businessobjects-sdklibrary], and the [Crystal Reports .NET SDK Guide|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm] for CR XI R2.
From the main Developer Library page scroll down the page to the [XI|http://devlibrary.businessobjects.com/BusinessObjectsXI/en/devlib.htm] (v11.0) and the [XI R2|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm] (v11.5) versions of the Crystal Reports .NET SDK Guide.
Click on one of the above links to choose the version of the Dev Library you'd like to explore. After it loads you'll see Content and Search buttons in the left hand pane. Click on Search and search for PrintToPrinter. In the results list you'll see the PrintToPrinter method. Click on this and you'll see the information you're looking for.
Please start using the above links to search for your answers - the information is there.
Sincerely,
Dan Kelleher
Maybe you are looking for
-
What cable(s) do I need? And is there any way to extend the length of these cables to at least 3-4 feet?
-
ABAP proxy in Block step in BPM
Hi Experts, Can ABAP server proxy be used in the block step of BPM? Proxy cannot be generated using Abstract interfaces right? Thanks Suma S
-
Implementing methods in user interface
hi how can i implement my tested methods im my user interface which class must i right click to create data control,or there is another way Edited by: Tshifhiwa on 2012/05/03 11:23 PM
-
How to play videos on lockscreen of iphone 5s?
Well i have been using iphone 5s from the very first week it was launched. I am a techy and I played alot with android devices but this time i switched to iphone. This is a very unfortunate to say that iphone is missing such a common feature. when I
-
Any validity period or expire of maintain the skip indicator is there
Hi Any validity period or expire of maintain the skip indicator is there. Because we mantianed the skip lot for the materials. and it create the correctly upto some period and now eventhou we maintained in the insp type . it not show the X mark agai