Jump to content

Filtering unprintable and extended characters?


Recommended Posts

I need to remove unprintable and extended characters from a string before sending it to a data collection system, but I can't fine an easy way to do it. I can brut force it by breaking down the string and then testing and replacing each character, but there must be an easier way that I'm not aware of.

Here's an example of the string I want to process:

Any information would be appreciated.

John

post-2-1160151480.png?width=400

Link to comment
I need to remove unprintable and extended characters from a string before sending it to a data collection system, but I can't fine an easy way to do it. I can brut force it by breaking down the string and then testing and replacing each character, but there must be an easier way that I'm not aware of.

Here's an example of the string I want to process:

Any information would be appreciated.

John

Will this work for you ?

Download File:post-114-1160065874.vi

Link to comment
here it is in LV7

Thanks Dan,

I did something similar (see attached), but thought that there must be a way to accomplish it with a native LabVIEW function that I didn't know about. Judging from the responses I've been getting there must not be.

I'm an old time LabVIEWer and I often use methods that are out of date. I thought that was the case here.

Thanks again,

John

Download File:post-4375-1160070948.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.