I took a look at your code.  I am a bit confused.  I don't see the
case statement that you referred to.  Is this a subvi that is called
in the case statment?  There aren't any inputs or outputs in the
icon's connector.  If this is a subvi, the problem may still be in the
case statement that calls this subvi(?).

A couple things I noticed:
1. You update your indicators regardless of the TCP Read Error output.
If you have a TCP Read Error (as your posted code does) the text
string output of the read would be an empty string.  That is a
possible reason for the indicators resetting to zero.

2. You'll want to use the TCP Close Connection when you're done with
the vi (or subvi).

Hope this helps.  If there is a higher level vi that calls this one,
post it so we can see what you're doing.

Tim

Reply via email to