cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-7987%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Ehow%20to%20convert%20binary%20data%20into%20ascii%20codes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7987%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%3CBR%20%2F%3EI%20have%20some%20analog%20data%20I%20need%20to%20convert%20it%20to%20binary%20basing%20on%20its%20value(done).%20Then%20I%20managed%20to%20put%208%20bits%20together%20to%20make%20a%20binary%20data%20by%20jmp%20script.%20Where%20I%20need%20help%20is%20how%20to%20convert%20the%20binary%20data%20into%20text%2Fnumber%20using%20ascii%20codes.%20I%20tried%20use%20blob%20to%20char%20but%20it%20reporting%20wrong%20data%20type....%3C%2FP%3E%3CP%3EI%20attached%20jmp%20table.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7991%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20convert%20binary%20data%20into%20ascii%20codes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7991%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Ethanks%20MS.%3C%2FP%3E%3CP%3ESorry%2C%20in%20fact%20that%20I%20realized%20later%20that%26nbsp%3B%20%22wl%22%200~11%2C%2014~25%20and%2028~39%20are%202%20digits%20decimal%20number%2C%20which%20only%20need%20be%20convert%20to%20decimal.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7990%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20convert%20binary%20data%20into%20ascii%20codes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7990%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThe%20binary%20numbers%20in%20your%20table%20do%20not%20always%20correspond%20to%20A-Z%20or%200-9.%20These%20show%20up%3A%20%22%20%23%20%26amp%3B%200%201%202%203%204%205%206%207%20%3F%20%40%20A%20B%20C%20D%20E%20F%20G%20H%20I%20J%20K%20L%20M%20N%20P%20Q%20R%20S%20T%20U%20V%20W%20X%20_%20o%20%7B%20%7D%20~%3C%2FP%3E%3CP%3EAnd%20in%20the%20many%20cases%20of%20non-printable%20ascii%20%22characters%22%20there%20will%20be%20empty%20cells%20in%20JMP.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI've%20probably%20misunderstood%20your%20goal%2C%20but%20try%20this%20formula%2C%20which%20will%20make%20an%20exception%20for%20all%20wl%20among%20%7B12%2C%2013%2C%2026%2C%2027%2C%2040%2C%2041%7D.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EIf%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EContains%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSTRONG%3E%7B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E12%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E13%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E26%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E27%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E40%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E41%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%7D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3Ewl%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%232800e1%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3EChar%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%232800e1%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3EMatrix%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E%7B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%220%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%221%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%222%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%223%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%224%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%225%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%226%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%7D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%60%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E*%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%5E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EIndex%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E0%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E6%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%60%3C%2FSPAN%3E%3CSTRONG%3E)%5B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E1%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%5D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%232800e1%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3EHex%20To%20Char%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%232800e1%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3ERight%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EHex%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EMatrix%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E%7B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%220%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%221%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%222%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%223%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%224%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%225%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23801392%3B%22%3E%226%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%7D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%60%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E*%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%5E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%232800e1%3B%22%3EIndex%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E0%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E6%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%60%3C%2FSPAN%3E%3CSTRONG%3E)%5B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E1%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%23801392%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%22integer%22%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%23509092%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23160091%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%23801392%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%22us-ascii%22%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7989%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20convert%20binary%20data%20into%20ascii%20codes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7989%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20MS!%3C%2FP%3E%3CP%3EI%20know%20nothing%20about%20matrix%20usage%20in%20jmp.%20for%20the%20data%20I%20posted%2C%20my%20ultimate%20goal%20are%20A%3A%20convert%20%22wl%22%200~11%2C%2014~25%20and%2028~39%20to%20text%20composing%20A-Z%20and%200-9.%20B%3A%20Other%20%22wl%22s%20represent%20a%202%20digit%20decimal%20number.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eyour%20script%20work%20for%20A%20but%20not%20for%20B.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7988%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20convert%20binary%20data%20into%20ascii%20codes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7988%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThere%20is%20probably%20a%20simpler%20way%2C%20but%20try%20to%20paste%20the%20code%20below%20into%20a%20column%20formula%20field%20in%20the%20posted%20data%20table.%20It%20should%20give%20the%20ascii%20character%20(the%20first%20argument%20of%20Hex()%20alone%20calculates%20the%20ascii%20decimal%20code)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3EHex%20To%20Char%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3ERight%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EHex%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3EMatrix%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E%7B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%220%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%221%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%222%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%223%22%3C%2FSPAN%3E%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%224%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%225%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EName%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%226%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E)%7D%20%3C%2FSTRONG%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%60%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E*%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%5E%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E%5B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E0%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E1%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E3%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E4%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E5%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%22%3E%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E6%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E%5D)%5B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E1%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22line-height%3A%201.5em%3B%22%3E%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%22integer%22%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%26nbsp%3B%20%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E2%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%26nbsp%3B%20%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%22us-ascii%22%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
robust1972
Level IV

how to convert binary data into ascii codes


I have some analog data I need to convert it to binary basing on its value(done). Then I managed to put 8 bits together to make a binary data by jmp script. Where I need help is how to convert the binary data into text/number using ascii codes. I tried use blob to char but it reporting wrong data type....

I attached jmp table.

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: how to convert binary data into ascii codes

The binary numbers in your table do not always correspond to A-Z or 0-9. These show up: " # & 0 1 2 3 4 5 6 7 ? @ A B C D E F G H I J K L M N P Q R S T U V W X _ o { } ~

And in the many cases of non-printable ascii "characters" there will be empty cells in JMP.

I've probably misunderstood your goal, but try this formula, which will make an exception for all wl among {12, 13, 26, 27, 40, 41}.

If( Contains( {12, 13, 26, 27, 40, 41}, :wl ),

  Char(

  (Matrix(

  {:Name( "0" ), :Name( "1" ), :Name( "2" ), :Name( "3" ), :Name( "4" ),

  :Name( "5" ), :Name( "6" )}

  )` * 2 ^ Index( 0, 6 )`)[1]

  ),

  Hex To Char(

  Right(

  Hex(

  (Matrix(

  {:Name( "0" ), :Name( "1" ), :Name( "2" ), :Name( "3" ),

  :Name( "4" ), :Name( "5" ), :Name( "6" )}

  )` * 2 ^ Index( 0, 6 )`)[1],

  "integer"

  ),

  2

  ),

  "us-ascii"

  )

)

View solution in original post

4 REPLIES 4
ms
Super User (Alumni) ms
Super User (Alumni)

Re: how to convert binary data into ascii codes

There is probably a simpler way, but try to paste the code below into a column formula field in the posted data table. It should give the ascii character (the first argument of Hex() alone calculates the ascii decimal code)

Hex To Char(

  Right(

  Hex(

  (Matrix(

  {:Name( "0" ), :Name( "1" ), :Name( "2" ), :Name( "3" ), :Name( "4" ), :Name( "5" ), :Name( "6" )} )` * 2 ^ [0, 1, 2, 3, 4, 5, 6])[1],

  "integer"

  ),

  2

  ),

  "us-ascii"

)

robust1972
Level IV

Re: how to convert binary data into ascii codes

Thanks MS!

I know nothing about matrix usage in jmp. for the data I posted, my ultimate goal are A: convert "wl" 0~11, 14~25 and 28~39 to text composing A-Z and 0-9. B: Other "wl"s represent a 2 digit decimal number.

your script work for A but not for B.

ms
Super User (Alumni) ms
Super User (Alumni)

Re: how to convert binary data into ascii codes

The binary numbers in your table do not always correspond to A-Z or 0-9. These show up: " # & 0 1 2 3 4 5 6 7 ? @ A B C D E F G H I J K L M N P Q R S T U V W X _ o { } ~

And in the many cases of non-printable ascii "characters" there will be empty cells in JMP.

I've probably misunderstood your goal, but try this formula, which will make an exception for all wl among {12, 13, 26, 27, 40, 41}.

If( Contains( {12, 13, 26, 27, 40, 41}, :wl ),

  Char(

  (Matrix(

  {:Name( "0" ), :Name( "1" ), :Name( "2" ), :Name( "3" ), :Name( "4" ),

  :Name( "5" ), :Name( "6" )}

  )` * 2 ^ Index( 0, 6 )`)[1]

  ),

  Hex To Char(

  Right(

  Hex(

  (Matrix(

  {:Name( "0" ), :Name( "1" ), :Name( "2" ), :Name( "3" ),

  :Name( "4" ), :Name( "5" ), :Name( "6" )}

  )` * 2 ^ Index( 0, 6 )`)[1],

  "integer"

  ),

  2

  ),

  "us-ascii"

  )

)

robust1972
Level IV

Re: how to convert binary data into ascii codes

thanks MS.

Sorry, in fact that I realized later that  "wl" 0~11, 14~25 and 28~39 are 2 digits decimal number, which only need be convert to decimal.

Recommended Articles