Example
As an example, we will generate an MSI barcode for the number sequence 1234567 using the most common Mod 10 check digit methodology.
The check digit (as calcuated above) for this sequence is 4.
Once you have calculated your check digit, simply map each character in the string to be encoded using the table above as a reference to get the binary map of the bar code; remember to precede the code with "start" and to end it with "stop" For example, to map the string 1234567 with a Mod 10 check digit it would produce the following binary map:
Character | Map | Comment |
---|---|---|
Start | 110 | The start character |
1 | 100100100110 | The number 1 |
2 | 100100110100 | The number 2 |
3 | 100100110110 | The number 3 |
4 | 100110100100 | The number 4 |
5 | 100110100110 | The number 5 |
6 | 100110110100 | The number 6 |
7 | 100110110110 | The number 7 |
4 | 100110100100 | The check digit 4 |
Stop | 1001 |
This results in the following barcode:
Read more about this topic: MSI Barcode
Famous quotes containing the word example:
“Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.”
—Marcel Proust (18711922)