LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

search string

Solved!
Go to solution

Hi,

Here is a string "Agilent Technologies,E5071C,MY46103457,A.08.12". I want to have a VI which return 1, if it find "E5071C". else return 0. Can I use already exsiting VI in pallete?

0 Kudos
Message 1 of 6
(17,453 Views)
Solution
Accepted by song403

What are you waiting for? 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 2 of 6
(17,449 Views)
Solution
Accepted by song403

You can use three functions that are already in the pallets.  Take a look at the help for Match Pattern; you may find something that helps more than a 0,1 result.

 

Example_VI_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 6
(17,424 Views)

one more question, If I store all possible values in array. for instance, {E5071c, E5071B, 8759ES} and want to search a string to see if any of string in that array in that string. could you please share a VI to solve this question?

0 Kudos
Message 4 of 6
(17,385 Views)
Search 1D Array.

Please take some of the free LabVIEW tutorials.
0 Kudos
Message 5 of 6
(17,372 Views)
p.s. Why don't you just use the existing 5071C driver? At least look at how the idn? query is handled in it.
0 Kudos
Message 6 of 6
(17,367 Views)