06-24-2015 11:25 AM
Dear Sebastian,
some years later ... I have the same issue, can you explain how you have solved the conversion from the ascii to 7-bit PDU.
Regards,
Asper
06-24-2015 12:42 PM
Well, as you noticed, this is a very old thread, but the problem sounds very similar to the bit-twiddling challenge from 2002. This means that very efficient algorithms exsts, we just need to do a few tweaks to adjust the lenghts. (For some reason, the result page (link currently broken!) of the challenge has disappeared. I contacted NI to see if it caqn be restored...).
(Hint: avoid any green datatypes and do it all in blue code :D)
Does performance matter? How long are you strings?
Can you attach a very simple VI containing a typical input string and the expected result?
06-26-2015 09:33 AM
Dear altenbach,
as Sebastian, my goal is to encode an ASCII text in PDU GSM standard alphabet.
The PDU format is a 7-bit code packed in 8-bit, the 7-bit characters have a own conversion table vs ASCII.
The text length is maximum 160 character (standard SMS).
I have solved the issue, let say, by brute force, see attached image.
I was wondering if Sebastian, or someone else, has found a more efficient solution.
Asper