LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Record / Playback of TCP data

I'm rather new to Labview, and I'm trying to create a program that can
display, record, and play back data coming in over TCP/IP. I created
a program that can display and record the data, but I can't figure out
how to put the playback in.

I'm using a sequence that waits for the incoming TCP/IP data to start,
then opens the file, then receives and records the data, and finally
closes the file. I've tried putting in a case that allows you to
start off opening a file instead of opening the TCP/IP port, but then
I end up with all these unused wires between the parts of the
sequence. For example, there's a TCP connection ID wire that I don't
need when it's in the file playback mode, but Labview gives me an
error because it's not connected.


Is there a better way to approach this problem? Or am I on the right
track and I should just keep plowing through it?

-Paul
0 Kudos
Message 1 of 2
(2,462 Views)
I'd have to say that a better way to approach the problem is to drop the use of sequences altogether and try to implement a state machine architecture. There's a shipping example called Queued Message Handler and numerous others on NI Developer Zone that you can find by doing a search. A state machine can easily accomplish what you're trying to do and can do it without a bunch of unused wires.
Message 2 of 2
(2,462 Views)