LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan string

I need to load a script file to run the test of my devices. This file must be related to the product, i.e. model and software version. To avoid mistakes, I would like to implement a verification that both file and product match. The problem is that the representation is quite different, like shown in this example:
 
information read from product:  V SW 3.03-12 10-11-05 XM-90
name of the file:  XM90_tsds3.03287257.sw
 
That´s only as an example, and the patterns can also differ a bit from one product to another one. What I would like to check is the parameter after SW (in this case 3.03) and after XM (90) in the product information. This values can also change, for example it could be 5.1 and XM105...
 
How can I implement that? The main issue is to extract the numbers (in this case 3.03 and 90), and then use a Match pattern function... How can I do for the extraction?
 
Thanks in advance
0 Kudos
Message 1 of 3
(2,693 Views)
Hi
herez a simle example i have attached.
 
it will work for your information read from product
 
To extract from 'name of the file' string, just specify a string length that you want to extract, and then convert extracted string to numeric.
 
regards
Message 2 of 3
(2,685 Views)
quick and pretty...
 
Cheers, may!
0 Kudos
Message 3 of 3
(2,680 Views)