08-26-2008 08:37 AM
08-26-2008 08:45 AM
Hi dirtyb15,
i´m not sure if there is a ready function to use, but you can split your string into peaces. Search first for the string before your wild card characters, if you find a match you can jump over the next number of available wild card characters and check if the string after this matches your input. If not start with this process from the beginning with offset of the last match.
Hope it helps.
Mike
08-26-2008 08:48 AM
I thought about doing something like that, just was hoping there was an already built function :).
Thanks for the suggestion, guess thats the route i will take.
08-26-2008 09:03 AM - edited 08-26-2008 09:03 AM
I don't know at which LV version this was introduced, but you can right-click the replace function and check "regular expression". In regular expressions a period "." matches any character. In hex representation a period is 2E. So you can edit the search string to "0A0A 2ED2".
Hope this helps,
Daniel
08-26-2008 09:10 AM
08-26-2008 09:35 AM
08-26-2008 09:39 AM
Did you configure the "Search and Replace String" function to "Regular Expression"?
I attached a small sample VI (LV 8.5) that works for me.
08-26-2008 09:54 AM - edited 08-26-2008 10:00 AM
yes, i made sure to select regular expression. Whats odd is i can use a search string with no wild cards (2E), and it will work with out regular expression enabled, but if i enable it, then it wont work.
Could you maybe revert save that back to 8.0 for me?
thanks!
I have something working using the search and split ect., but if i can get this function to work it would be much cleaner anyways.
Thanks everyone for the quick replies, much appreciated.
Well just tried the same vi i made with labview 8.6 and it worked so maybe something is not right with the function and labview 8. Unfortunately i dont have the application builder for 8.6 so guess ill have to use the long way. Thanks for the help guys.
08-26-2008 10:01 AM
Here's the VI in LV8.0.
08-26-2008 10:38 AM