Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use substring function in select inspection?

Hi All,


I need to select inspection by barcode scanner to select the individual file. (Barcode scanner is connect to PC by USB port.) The file name of inspection is part number only but barcode lable have partnumber&date&time. After scanned I need to cut the part number only before use in inspection table for select file. I cannot do that. Anyone please help me.


Thank you,
Aim

0 Kudos
Message 1 of 4
(3,022 Views)

What's the format of this string? Is there anything that's unique to all strings that are coming in? For example, is the length of the part number a constant? What about the date and time? If you can write a few examples, that would be great.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(3,014 Views)

Hi Adnan,

 

First, I would like to say very thank you.

My barcode format is XXXXXXXXDD/MM/YYhh:mm:ss

XXXXXXXX = Part Number

DD = Day

MM = Month

YY = Year

hh = Hour

mm = Minute

ss = second

For example P123456714/12/1208:34:58

I need to cut only P1234567 to execute file P1234567.vbai

 

Regards,

Aim

0 Kudos
Message 3 of 4
(3,004 Views)
why don't you try string subset function found in string palette, or are you using vision builder?
---
Silver_Shaper | CLD
0 Kudos
Message 4 of 4
(3,000 Views)