NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence using .NET serial port class works only once after TestStand starts

Solved!
Go to solution

I am using .NET serial port class in a sequence to write and read over the COM port.  Once I start Teststand 2012 and execute the sequence, it works perfect, and I can read back data successully from my COM port, however, if I try to run it again, I cannot read anything back over the COM - I would have to restart Tesstand. Attached is my Sequence.  Can anyone help?  I am making sure I Close() the port, and release the Object reference at Cleanup to no avail.

 

 

 

 

0 Kudos
Message 1 of 3
(3,733 Views)
Solution
Accepted by topic author jb7060405889

I figured out the problem.  i was reading the buffer too quickly (before it had anything in it).

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

What did you change in your sequence of TestStand to resolve the problem?

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