NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one setup TestStand to parse a String from a TcpIp Read?

Solved!
Go to solution

L&G's,

 

I am interested in connecting TestStand to a product of mine and I have downloaded the eval and am running a typically TcpIp Sequence as shown in the examples.  I am trying to understand how to setup TestStand to parse the string comming back from my server as too pass/fail information and/or test results present in the returned string.

 

I look forward to your replies and Thanks for your help.

Craig Byrd

 

0 Kudos
Message 1 of 3
(2,267 Views)

L&G's,

 

I found one solution (probably not the most elegant) to the problem.  I added an If/Else statement after the TCPRead where the conditional statment look to see if the TCPRead Statement received was = "passed".  If it was, I forced a pass with the pass/fail test,  If not, I forced a fail with the pass/fail test.  This resolves the issue for now.

 

I am now off to figure out why changing the TCPWrite string value on one TCPWrite statement, changes the TCPWrite string value for all the TCPWrite statements.  I do not yet know how to create a local variable and use it as the TCPWrite string value.  I will look into the discussion forum for the answer to this question.

 

Thanks

Craig Byrd

 

0 Kudos
Message 2 of 3
(2,259 Views)
Solution
Accepted by topic author CraigByrd

L&G's,

 

I figured out how to create and use a local variable (string) as the TCPWrite string by simply modifying the TCPWrite for the step in question and set the the Results.Data value to use the Locals.TCP<name of created local variable>.

 

Regards

Craig Byrde

0 Kudos
Message 3 of 3
(2,257 Views)