Note that there are some explanatory texts on larger screens.

plurals
  1. POLabVIEW: Extract data after a certain line
    text
    copied!<p>Any advice or help would be much appreciated.</p> <p><strong>Question</strong>: How to extract data after a certain line from a comma deliminated strings which are read from a serial port ?</p> <p><em>More Info:</em> A have a card that is gathering data values and is read into the computer via a serial port. Example string of data acquired as below:</p> <pre><code>;Data = 1 bps Tool = Sensor ;Label, Time, Voltage, Pressure, Temperature, Current A, 01:33, 5.1, 18.1, 31.2, -, B, 01:34, 5.5, 19.2, 30.5, -, ;Data = 1 bps Tool = Sensor ;Label, Time, Voltage, Pressure, Temperature, Current A, 01:35, 5.3, 18.3, 30.1, -, B, 01:36, 5.1, 19.0, 30.5, -, ;Data = 1 bps Tool = Sensor ;Label, Time, Voltage, Pressure, Temperature, Current A, 01:37, 5.1, 18.1, 30.8, -, B, 01:38, 5.3, 19.2, 30.1, -, </code></pre> <p>These data value will be kept updating line by line. I would like to start extracting the data only on the 3rd block of incoming data. I would not want the first 2 blocks of incoming data.</p> <p><em>Further Info:</em> Currently, my idea of doing that is to scan the ";Data" and put it into a counter. If there are 2 ";Data" scan, then from the counter it woud output a True value to a case structure to start extracting the data. Please see my attached photo.</p> <p>However, I am not able to create such a counter using an array as I cannot use a while loop and shift register. Do you have any idea how to start extracting data from 3rd block onwards ? Thank you very much.</p> <p><img src="https://i.stack.imgur.com/Yu0Iw.jpg" alt="enter image description here"> </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload