01-23-2013 01:53 AM
i have made this little code to detect in a string (min 3 char) if there are special characters....in case they are present my output needs to be F, if there aren't T.
but it doesn't work....
why?
01-23-2013 02:23 AM - edited 01-23-2013 02:25 AM
Hi gigi,
when you ask for help on debugging your code you should attach the actual code, nut just a picture of it!
Meanwhile I had to re-code your picture, but it seems to work for me:
(The size check is up to you...)
but it doesn't work....
Has no one told you by now that "doesn't work" isn't a good error description?
What error(s)? What's wrong? Where's your problem at debugging it?
01-23-2013 02:32 AM
There should be "OR" operator insted of "AND" operator. I guess.. 😉
01-23-2013 02:56 AM
Your code seems correct to me... Please upload a small vi so we can test it without actually coding.
GerdW: gigi is working with LV 7.1 so the conditional terminal in the loop is not available.
01-23-2013 03:00 AM
Check this code.
01-23-2013 03:02 AM
01-23-2013 05:14 AM
here my code...
signature with labview version done 🙂
after lunch i'll try and array elements (if i'll find it)
01-23-2013 05:36 AM
I overlooked that you need a True getting out the while loop if the string is OK.
Replace <0 with >=0 and change the conditional terminal to "Stop if True".
You may also improve the code replacing the constant 12 with the character array size; this prevents to break the code if you later want to add or remove forbidden characters.
01-23-2013 05:47 AM
01-23-2013 06:30 AM
DONE 🙂
THANK YOU ALL 🙂