06-23-2014 10:21 AM - edited 06-23-2014 10:21 AM
@apok wrote:
Why are you using the Delete From Array? The Array Subset is a lot more eficient. And then you are only using the last output.
06-23-2014 10:38 AM
@crossrulz wrote:
is a lot more eficient....
how do you mean? please show me...
06-23-2014 10:47 AM - edited 06-23-2014 10:47 AM
@apok wrote:
@crossrulz wrote:
is a lot more eficient....
how do you mean? please show me...
There is a lot involved with the Delete From Array. The Array Subset just copies out the portion of the array you want. The Delete From Array also has to compact the other array, creating more data copies.
06-23-2014 10:50 AM
06-23-2014 10:56 AM
@ben64 wrote:
You can use regular expressions to extract the data you want.
A string parsing thread can't be complete until somebody mentions regular expressions. I'm surprised it took this long...
06-23-2014 11:24 AM
@crossrulz wrote:
@ben64 wrote:
You can use regular expressions to extract the data you want.
A string parsing thread can't be complete until somebody mentions regular expressions. I'm surprised it took this long...
I'm also surprised !!
The lookahead is useless in this case. The following regex will do.
(\d+:\d+:\d+)(.*?) Inspection Finished
Ben64
06-23-2014 11:24 AM
@ben64 wrote:
You can use regular expressions to extract the data you want.
Ben64
Could you post the VI the drag and drop only gives me the forum link for some reason
06-23-2014 11:27 AM
06-23-2014 11:32 AM
PauldePaor wrote:Could you post the VI the drag and drop only gives me the forum link for some reason
Dragging straight from a web browser just doesn't work for who-knows-what reason. But you can drag the snippet to your desktop to save the image file there and then drag from your desktop to a VI and it works.
06-23-2014 12:12 PM - edited 06-23-2014 12:15 PM
@crossrulz wrote:
There is a lot involved with the Delete From Array. The Array Subset just copies out the portion of the array you want. The Delete From Array also has to compact the other array, creating more data copies.
hmmm....in my example, the assumed data file was to change size and will handle that. How do you handle it when the data grows?Does the efficiency have to do with bench mark time here?
EDIT: i didnt see your comment on data copies....my bad