07-13-2017 10:24 AM
I have the following string:
~Q€s}3c@%#403302852#node_WS#0#PLV1:0.00#PLV2:0.00#PLV3:0.00#ANE:0.00#WV:0#t
I need to get only the parts between # #.
Thank you
07-13-2017 11:08 AM
My first stupid thought is to use the Spreadsheet String To Array with # as your delimiter. Then you can use Decimate 1D Array to get the strings you actually care about.
The other route I am envisioning is to use Search/Split String to find the #, then another Search Split/String to get your value. Repeat this in a loop until the After Match is empty.
07-13-2017 04:28 PM
Yup the keep it simple solution of string to array is the way I would go even if it is probably much slower than split in a loop.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-14-2017 08:08 AM
Do you mean that you need this:
403302852#node_WS#0#PLV1:0.00#PLV2:0.00#PLV3:0.00#ANE:0.00#WV:0
or this:
403302852
node_WS
0
PLV1:0.00
PLV2:0.00
PLV3:0.00
ANE:0.00
WV:0
or this:
403302852
0
PLV2:0.00
ANE:0.00
?