03-20-2013 07:51 AM
Hi All, first post so please be gentle.
I have created a VI that will send a command to, and then read in from, an RS232 connection. It then compares the data read in with a known string to give a true or false outcome. Firstly it checks the length of strings match, and then compares the actual string with the known string.
This is okay, but I cannot always guarantee the string length and all of the text will match, so what I would actually like to do is send the command and then scan through the returned text and look for one specific line in the text. Is this possible, are there any pre-written VIs? I have looked but failed miserably to find one so far.
Thanks in advance for any help.
Jim.
Solved! Go to Solution.
03-20-2013 08:18 AM
Use the Match Pattern or the Search/Split String to perform a search a large string for a smaller string. They return a -1 for the offset is the string was not found.
03-25-2013 10:29 AM
Hi, thanks for your reply. I used match pattern in the end, thanks for your help.