LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from string

Solved!
Go to solution

Hello everyone,

I have this beginner question, I don't understand what happens here, I'd expect Name="Voltage " and Unit="mV", how should I do that, what do I don't understand?

 

I want to ignore the caracters before "(", space or not should not affect anything. Just return it in Name.

 

Cheers!

 

Capture.PNG

0 Kudos
Message 1 of 2
(2,329 Views)
Solution
Accepted by JimChretz

I do not know your expectation for spaces or no spaces but you can do this for the format string:

 

%[^(](%[^)])

 

Match a string that does not have '('  --> Name

Match '('

Match a string that does not have ')'  --> Unit

Match ')'

 

The final match is optional, it will toss an error if there is no closing ), that is up to you.

Message 2 of 2
(2,314 Views)