bwgames Posted September 7, 2006 Report Share Posted September 7, 2006 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 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... Quote Link to comment
Mikkel Posted September 7, 2006 Report Share Posted September 7, 2006 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.