Jump to content

OCR+PCM+Autorun


---
 Share

Recommended Posts

I would like to capture the component's serial number in a program during autorun using the new OCR function in O-Inspect and then start the associated test plan based on the read number.
Capturing the component number and reading it into a PCM variable works.
Is there a way to let Autorun decide which test plan to execute based on this variable?

Link to comment
Share on other sites

  • 2 weeks later...

Maybe create a Select Case in PCM?

(Not tested, just thrown together). You would have to create varaibles.

selectCase component_number

case (component_number) == "1234"

testPlan == "1234"

case (component_number) == "1234-9"

testPlan == "1234-9"

endSelect

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...