Jump to content

Parsing


Recommended Posts

Hello,

 

I have these to strings of data how do i use labview to differentiate bettwn the two? the first four letters are always the same and the rest changes,

 

SDFS = Data1

 

ASXP = Data2

 

I guess what i want is when the data comes... labview automaticly knows this line is DATA1 or this line is DATA2

 

 

SDFS~S0000000040942770200002014016980156XXX

 

ASXP`0100361553364651\`

 

Link to comment

Many ways.  How about getting the string subset on the first four characters and seeing if they equal SDFS or ASXP then getting the string subset of there for the appropriate length and offset for each.

 

I'm sure regular expression could do it too.  Post your VI you have tried and show what you couldn't get to work.

Link to comment

As someone wiser (and more sarcastic) than myself has already pointed out...

 

Some people, when confronted with a problem, think 

“I know, I'll use regular expressions.†  Now they have two problems.

 

:lol:

Notice I didn't say to use regular expressions, I just said that it could be used.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.