Can anyone suggest how to insert a series of control images into a running batch at set intervals?
Hi,
Can anyone suggest how to insert a series of control images into a running batch at set intervals? I'm having a few issues regarding inserting a series of control images into a batch being processed.
I think I need a loop counter, an open and process command, update data collector and return to where the batch left off. I cant get past the loop counter.
any help would be much appreciated.
Can anyone suggest how to insert a series of control images into a running batch at set intervals? I'm having a few issues regarding inserting a series of control images into a batch being processed.
I think I need a loop counter, an open and process command, update data collector and return to where the batch left off. I cant get past the loop counter.
any help would be much appreciated.
0
Answers
-
Hi Sean,
How do you run batch processing in IP Plus? You can use our sample script Batch_Process.ipm, which you can find in the Scrips folder of IPWIN installation. The script has some comments, so you can check how it works and modify for your needs.
Regards,
Yuri
0 -
Hi Yuri,
On IP plus 6.3 I use the batch process script with the process directory macro.
currently it will run through my images and dump the data in the data collector which is fine, but i need to insert control images at regular intervals for quality assurance.
I've looked through the script comments and cant find anything to suggest how i can modify it in this way.
Also there doesn't not seem to be a straight forward command for a loop counter in 6.3 is there a way round this?
regards,
Sean0 -
Sean,
Looping is done in while loop:While fName <> ""' Print out the file name and its attributesDebug.Print GetAttr(gDirStart + fName); " "; fName' Load the imagedocID = IpWsLoad(gDirStart + fName, "")' Don't process if there is a failure loadingIf docID >= 0 Then' Call processing routine here ***' The document ID and file name are sent here' in case the processing routine needs them.DoStuff docID, gDirStart + fName' Close the initial imageret = IpAppSelectDoc(docID)ret = IpDocClose()ElseDebug.Print "Error loading "; gDirStart + fNameEnd If' Get the next file namefName = Dir()Wend
you can create your own indexing variable and control the count:
Dim MyCounter as Integer
MyCounter=0While fName <> ""...
MyCounter=MyCounter+1Wend
Regards,
Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions