Automation using Stage Pro
We are using an ASI stage that is properly interfaced with IPP. We are
aware of Stage Pro, and my graduate students can successfully use it to
define a path with multiple image acquisition points. We can acquire
images along this path. We have two problems:
1) we want to automatically cycle through the path many times.
2) we want to pause between each cycle.
Is there a simple way to accomplish this without macros? If no, we need advice how to achieve this another way.
Thank you,
Jesse Greener
Professor, U. Laval
Dept. Chemistry
1) we want to automatically cycle through the path many times.
2) we want to pause between each cycle.
Is there a simple way to accomplish this without macros? If no, we need advice how to achieve this another way.
Thank you,
Jesse Greener
Professor, U. Laval
Dept. Chemistry
0
Answers
-
Jesse, this is actually a question about Image-Pro Plus so I move it into the appropriate forum.
Pierre0 -
Thanks, looking forward to help from the community.
0 -
Stage-Pro doesn't have built-in functionality for pauses or multiple iterations. The extended AFA module supports this if you have it. If not, a macro is really the best way to get the functionality.
Record moving from one point to another. Set up a "For" loop that iterates from 0 to (count-1), move to that location, use IpMacroWait( n ) to pause in 10ths of a second, and an outer Do or For loop to repeat the pass many times.
Something like:
numListPts = IpStageGetListLength(0)
for i = 1 to numLoops
for j = 0 to numListPts-1
ret = IpStageGotoListPos(0, j)
ret = IpMacroWait(100) ' Pause for 10 seconds
next j
next i
0 -
I've attached a (relatively) simple macro UserDialog that does this. Upon pressing the "Go" button it reads the iterations and the delay time, resets counters, and sets a flag to act during Windows Idle events.
In the Idle event if the action flag is 'True' it moves to various stage positions, waits, increments counters and returns. If the action flag is 'False' nothing is done; the dialog is idling.
This is a good illustration of how to have a dialog run an operation continuously and in the background, with feedback and and interruptible controls - or even the option to modify parameters while the operation is proceeding.0 -
Thanks very nice we'll try to use this. Is there a link to documentation on macros? From the 30 mins we spent on it today we found that we could invoke a macro during the Stage pro operation, but the behaviour was very strange.
0
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