LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert String from ASCII to ANSI

Hi,

a command line instruction via LabVIEW function "System Exec.vi" retrieves me a string in ASCII format. Is there a function to convert string from ASCII to ANSII format? I use LabVIEW 8.5 German Installation.

Kind Regards
Christian
Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 1 of 2
(3,174 Views)
Hallo Christian,

AFAIK there is no such in function in LabView...

But you can:
- use "Search and replace string" to search for ASCII chars and replace them by their corresponding ANSI char, do this in a loop for all chars to be replaced (acceptable speed for small strings...)
- convert the string to an U8 array and use a lookup table to convert all bytes from ASCII to ANSI, convert back to string (may be faster for long strings...)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(3,169 Views)