LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search string and shorten

Solved!
Go to solution

Hello everyone! I'm a bit new to labview but i'm learning heh.

 

I'm getting a response from a picoammeter in the form of a string that contains the current and then some junk i don't need afterwards. Each thing is seperated by a comma so i want to search the string for the comma and then cut off the comma and everything after just keeping the data that comes before the comma. I'm struggling to find a good way to do this. Anyone point me in the right direction? Thanks!

 

 

0 Kudos
Message 1 of 4
(2,501 Views)
Solution
Accepted by topic author Mark.E
Use "match pattern" from the string palette with a comma as pattern, then use the "before substring" output (top terminal) for the desired result.
Message Edited by altenbach on 04-18-2009 02:10 PM
Message 2 of 4
(2,499 Views)
Thanks! Very easy elegent solution:)
0 Kudos
Message 3 of 4
(2,494 Views)
If a solution in LabVIEW is not "easy and elegant", you can be pretty sure that it can be improved. 😄
Message 4 of 4
(2,470 Views)