LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

match pattern

I am having a problem with my vi. I am using the match pattern string vi, as an input i have: the measurement is:
a simple string and match pattern is suppose to find : Unfortunately it gives me an error..
Not sure how to fix it.

Message Edited by GHernandez on 11-02-2005 04:03 PM

0 Kudos
Message 1 of 6
(3,267 Views)
What do you mean when you say "it gives me an error"? Your screenshot does not show a broken run arrow so the VI compiled. Are you saying that the "offset past match" output is -1? If so the Match Pattern function didn't find your search string. It's hard to tell from the screenshot, but are you looking for ":" (just a colon), or ": " (colon with space after it)?
0 Kudos
Message 2 of 6
(3,254 Views)
I apologize for not being specific. I get the following error:
Error1 occured at Scan from String (arg1) in build_string.vi -> File Write.vi
Possible reason(s):
Labview: An input parameter is invalid.
When usign the match pattern function, i am searching for ": "
basically a colon followed by a shift.

Message Edited by GHernandez on 11-04-2005 05:03 PM

Download All
0 Kudos
Message 3 of 6
(3,233 Views)
What i was trying to say is that its a colon followed by a blank space.

0 Kudos
Message 4 of 6
(3,223 Views)


@GHernandez wrote:
When usign the match pattern function, i am searching for ": " basically a colon followed by a shift.

What is a "shift"???
 
Why don't you attach your VI instead? It would be easier to troubleshoot. 🙂
0 Kudos
Message 5 of 6
(3,221 Views)
Look again at your error message:
 

I apologize for not being specific. I get the following error:
Error1 occured at Scan from String (arg1) in build_string.vi -> File Write.vi
Possible reason(s):
Labview: An input parameter is invalid.


The error occured at Scan from String, not from Match Pattern.  You have an input string wired, but no format string.  You need to wire in a format string.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(3,218 Views)