Hello ,
I'm trying to built ,an automatic program in Prflab ,for a bluetooth module.
When the module acknowledge the good protocol of command, it transmit a string "OK"
I 'm arrived to display this string ,but not compare.
I used string comparator with OK in channel A ,and string from port com receive.
I am not arrive to detect this "OK" string
Thank for people ,who can help me
Here, pictures of my problem
String comparator ,problem
String comparator ,problem
- Dateianhänge
-
- Ascii display.PNG (1.3 KiB) 6043 mal betrachtet
-
- String display.PNG (3.95 KiB) 6044 mal betrachtet
-
- String comparator.PNG (14.17 KiB) 6032 mal betrachtet
Re: String comparator ,problem
Hello TOURNEUR,
you might have to put a '$TRIM' in between the 'Selection' & the '$COMP' parts, as in the picture below. (removes any unwanted SPACES from String)
As an alternative check it out with a '$CONST' instead of 'Selection' ...
you might have to put a '$TRIM' in between the 'Selection' & the '$COMP' parts, as in the picture below. (removes any unwanted SPACES from String)
As an alternative check it out with a '$CONST' instead of 'Selection' ...
- Dateianhänge
-
- PL-E_$TRIM.png (12.89 KiB) 6020 mal betrachtet
++++++
Gruss/regards IKT
Gruss/regards IKT
Re: String comparator ,problem
Good evening , IKT
Thank you for your help ,
I inserted this function between my Hex generator and comparator.
Without any success ...
I have put command on left and right, but nothing more .
Thank you for your help ,
I inserted this function between my Hex generator and comparator.
Without any success ...
I have put command on left and right, but nothing more .
Re: String comparator ,problem
Hello,
may be that there are CR LF at the end of the string, coming form the device?
LG Wolfgang
may be that there are CR LF at the end of the string, coming form the device?
LG Wolfgang
Re: String comparator ,problem
Hei,
try $Position instead of $Comp, then leading or trailing unvisible chars dont bother.
Any number greater than zero means, that $S exist in $M.
If you position the cursor on a connection during the projekt is running, you can see the actual value of the singnal.
Mike
try $Position instead of $Comp, then leading or trailing unvisible chars dont bother.
Any number greater than zero means, that $S exist in $M.
If you position the cursor on a connection during the projekt is running, you can see the actual value of the singnal.
Mike