07-13-2008 12:29 PM
07-14-2008 06:04 AM
07-15-2008 08:33 AM
07-15-2008 08:57 AM
Hi,
Try holding your string in an array, then use Chr() to convert each value to a character
eg Locals.MyString += Chr(Locals.MyData[RunState.LoopIndex])
Regards
Ray Farmer
07-15-2008 09:15 AM
07-15-2008 10:09 AM
Hi Ray,
Your suggestion may be an overkill....
I'm simply looking to detect a prompt. This prompt always comes at the end of the text and ALWAYS looks like that:
;
<
My problem is how to use this as an expected string....what to do witht he CR + LF in between the 2 characters?
I tried to look for this ";\x0D\x0A<" but it didn't work...
Does your previous answere still applicable?
Thanks and Regards
07-15-2008 01:54 PM - edited 07-15-2008 02:01 PM
Hi Rafi,
I have used my stuff to detect a prompt from an embedded Linux serial terminal during bootup. With it i am able to
so stop and send some new environment variables. So see if Linux was getting the message i will scan my serial
port for this prompt.
Ok I was scanning for LF CR -> but thats the same.
So please send us YOUR comlpete string including the ending stuff in a Local.strString of a TS sequence File, so we can examine it on our TS maschines
to see whats getting wrong.
greetings
Juergen
Add:
I am using TS4.0 !
07-15-2008 03:55 PM
Hi Rafi,
If all you need is to look for "<" then use the Find(). This will return -1 is it doesn't exist and a value indicating its position in the string.
I have attached an example (TS4.0) of the 3b 0d 0a 3C string, just playing around with it. (I have saved it in INI format so at least you can open this in notepad)
Unless you pop out to something like labview, then you have to resort to tricks to set up strings. (or try loading it using the PropertyLoader).
Regards
Ray