NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

String value test will not go passed

I am reading this string from LabView:

 

AT$

ATA     answer
ATD     connect
ATEn    n=0,1 local echo off/on
ATFn    n=0,1 data echo off/on
ATH0    hang up
ATI     information
ATIQn   n=0,1 I-Q-BER-dump off/on
ATRN    retrain
ATO     return online
ATRG    renegotiate
ATSn=m  set S-reg n
AT&T1   digital loopback DSP0 / f1,f2 test
AT&T2   digital loopback DSP1 input / f1 test
AT&T3   digital loopback DSP1 output
AT&T4   analog loopback, manual agc
AT&T5   analog loopback
AT&TA   answer, manual agc
AT&TD   call, manual agc
AT?     TX/RX rates

 "

and want to check it with a String value test, but Test Stand will not accept it as equal even if I have copied it directly.

 

Please help... 

0 Kudos
Message 1 of 13
(4,427 Views)

Hi,

 

Check out your LineFeed and CarrigeReturn !

 

Copy and Paste your String to a hex editor and look for 0x0D and 0x0A

if there is a CR LF you must add it to your looukup String by using: "\x0D\x0A"

 

hope this helps

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 13
(4,427 Views)

I have copied both the "limit" text and the "status" text from the TestStand report back in to LabView, and LabView says they are equal. These strings are not equal to the string I read in LabView thoug, but it does not help to check agains this string either.

 

I tried to copy the string read from LabView into a TestStand variable, stop while running and copy the containts of this variable into the limit, but this did not help either.

0 Kudos
Message 3 of 13
(4,427 Views)

Hi,

 

Please post a small TS example with your LV string and desired lookup string

So the communtity can take a look on it

 

juergen 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 13
(4,424 Views)
This is what I have used to test it.
Download All
0 Kudos
Message 5 of 13
(4,422 Views)

Hi misa,

 

It was like i assumed, the CR and LF are missing !

I have pasted it to a hex-editor. All 0x0A and 0x0D has to be inserted in the lookup as "\x0A" and "\x0D"

 

Note for  other users:

Be carefully when downloading the example. The NI-step types are modified !

NEVER acept savings on ini-Files on closing !!!!

 

Greetings

 

juergen 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 13
(4,415 Views)

OK, thanks.

 

But how do I tell TestStand what to look for? Can I see the tekst formatting in the expected string value field?

The problem is that when I copy the string I get somethin else when I paste it.

0 Kudos
Message 7 of 13
(4,413 Views)

Hi misa,

 

What about doing comparison in LV by using simple a PassFail Test ?

 

juergen 

 

  

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 8 of 13
(4,404 Views)
That is of course possible. It just annoys me when I cant fix something I feel should be easy 🙂
0 Kudos
Message 9 of 13
(4,402 Views)

Hi misa,

 

That's our  daily struggle to keep things simple as possible
By the way i have no idea to do this at the moment....

Just let's wait a few hours maybe there is someone out there figuring

a great simple solution. Thats the reason why it is so interesting here.

 

Still have a great day with greetings

from the lake of constance, germany

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 10 of 13
(4,387 Views)