Hi all, I am trying to read strings of data in over TCP and use that to graph waveforms. If an event has occured.
Let me explain what I am trying to do. I will be receiving a set of
data over TCP that looks like this (all in string form, with a "\n" at
the end of each line):
"Begin Transmission"
"F 0 1 2 3" (where 0 1 2 3 will be either a 0 or 1, identifying if a specific
event has occurred)
"F A[i] B[i] C[i]" (where A, B, and C each contain about 100 data
points from three phases of current that I would like to plot)
"End Transmission
So, I will only receive information if an event has occurred (a 1
appears in the second line). When I see this event, I want to note that
the event happened, and record the current waveforms from each phase
into a file, and display the graph of these waveforms.
I have successfully made an output file, that I like, using three
waveform generators, so I think the concept works.
I have tried to put all of this functionality together in this vi, and
feel like the only thing I'm not setting up correctly and completely is
the TCP read portion. That is where I really need the help.
I've looked at a lot of sample code, but have yet to find anything that
shows me how to split up strings like this.
Thanks in advance for any help you can offer.
Brendan