Re: Clearing a local variable after each read

2004-03-30 Thread tmh
As Mads comments, this is a perfect application for a queue (and a
really bad application for a local!)



Re: Clearing a local variable after each read

2004-03-30 Thread Mads
In such a case I would skip the indicator and local and use either a
que or a functional global to receive the output from the TCP
function.

If the TCP reads separate messages the que would be my first choice.
If it just read the data as it is I would use a functional global to
hold the traffic and add multiple methods to it. The reason why you
use an indicator at all e.g. I assume is because sometimes you want to
see the traffic. Instead of having an indicator in the reading VI
though I would have a read method in the func.global that lets you
read out the traffic to display it wherever you need it.



Re: Clearing a local variable after each read

2004-03-25 Thread ssmith490D
Dennis--
I don't see any attachments.

S



Re: Clearing a local variable after each read

2004-03-25 Thread ssmith490D
The VI is generating a polling command for multiple 485 devices. The
responses are received via TCP/IP. The receive WHILE loop continuously
listens fro the responses. Using a LOCAL is the only to get the
responses out of the loop while they're being received. Thanks for the
help. Now I have to figure out how to get an empty string to the
indicator between responses.

S



Re: Clearing a local variable after each read

2004-03-25 Thread Mads
Clearing a local is the same as writing an empty string to the
indicator (or another local of it in write mode). Use data flow (may
need the help of a single-frame sequence e.g.) to ensure that you have
read the local before you write an empty string using another local...

If you have an indicator there must be a value going to it, most
likely from a wire. Why do you use a local to read the value of the
indicator instead of wiring the value to whereever you need it?



Clearing a local variable after each read

2004-03-25 Thread ssmith490D
I want clear the value of a local variable(in this case a string)
right after it's read. In this case the local is reading an indicator
that's in another part of the VI.Can anyone help. Thanks in advance.

S