Jump to content

Search string bug?


bwgames

Recommended Posts

I have a VI (screenshot attached) that works fine in highlight execution mode, the search string returns 0, yet when I run it normally, it doesn't match.

Screenshot contains probes for the result of the search string and the read buffer. As far as I can see, it should be returning 0, not -1, and indeed it does in highlight execution??

Using LV 8.0

:oops:

It works fine now, if I reduce the number of !!!'s in the search string, still doesn't really explain why it works in highlight execution only with the original number though...

post-5988-1157619635.jpg?width=400

Link to comment

As far as I can see (count!) you have 24 chars in your read buffer and 25 in the search pattern, thats why -1 is returned.

The reason this might work when you trace it, is most likely that your VISA read VI gets to read more data, as execution is delayed.

I don't think it's a problem with the string compare function.

-Mikkel :)

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.