Jump to content

NI Vision Assistant - Save Results in Batch Mode


Recommended Posts

QUOTE (professor_rumsdiegeige @ Oct 1 2008, 11:57 PM)

Hello!

I have designed a script including a circular edge detector. Now I want to save the results, i.e. the middle point of the circle found. When I switch to batch processing, and activate "save results" under script steps, however, nothing happens.

Is this a bug in Vision Assistant?

Thx in advance for your help.

Sabine Lorentz

Have you setup the save options in SETUP?

Perform Batch Processing Select Tools»Batch Processing. Select an image source. If you select Hard Disk, browse to the folder containing the images you want to process. If you select Acquisition, complete the following steps: Specify the acquisition module you want to use. note.gifNote You must have previously defined the parameters for the acquisition module you select. Vision Assistant uses the parameter settings you defined the last time you used a particular acquisition module. For example, if you select Image Capture RT, you must have previously used the Acquire Image (RT) function in the Acquire Images tab of the Processing Functions. If you select an acquisition module you have not used previously, Vision Assistant prompts you to exit batch processing setup and acquire an image using the module you selected in Acquisition Modules.In Iterations, specify the number of times you want to acquire an image during batch processing. In Period (s.), specify the length of the delay, in seconds, between acquisitions. Select a step in the Script Steps list. If the step processes the image under inspection, select one of the Process Mode options: Open Process Interface, Display Result Image, or Save Result Image. If the step analyzes the image under inspection, select one of the Analysis Mode options: Open Results Panel or Save Results. If you selected Save Results or Save Result Image in step 3, click Setup and configure the save options. Otherwise, proceed to step 6. Click OK to close the save setup dialog box. Click Run to start the batch process. Click Return to exit batch processing mode. tip.gifTips The progress window displays the current process, the number of iterations completed, the starting time, and an estimation of the time remaining. To stop batch processing, click the Cancel button in the progress window. Vision Assistant stops the batch process when the current step is complete or is cancelled from the Parameter window.

Let me know if this is the cause of the problem.

Cheers,

Link to comment

Thank you for your reply, Minh Pham. Yes, I have indeed setup the save options - see attached screenshot. The file I specified for the results in this dialog is simply not created at all.

QUOTE (Minh Pham @ Oct 2 2008, 12:19 AM)

Have you setup the save options in SETUP?

Perform Batch Processing Select Tools»Batch Processing. Select an image source. If you select Hard Disk, browse to the folder containing the images you want to process. If you select Acquisition, complete the following steps: Specify the acquisition module you want to use. note.gifNote You must have previously defined the parameters for the acquisition module you select. Vision Assistant uses the parameter settings you defined the last time you used a particular acquisition module. For example, if you select Image Capture RT, you must have previously used the Acquire Image (RT) function in the Acquire Images tab of the Processing Functions. If you select an acquisition module you have not used previously, Vision Assistant prompts you to exit batch processing setup and acquire an image using the module you selected in Acquisition Modules.In Iterations, specify the number of times you want to acquire an image during batch processing. In Period (s.), specify the length of the delay, in seconds, between acquisitions. Select a step in the Script Steps list. If the step processes the image under inspection, select one of the Process Mode options: Open Process Interface, Display Result Image, or Save Result Image. If the step analyzes the image under inspection, select one of the Analysis Mode options: Open Results Panel or Save Results. If you selected Save Results or Save Result Image in step 3, click Setup and configure the save options. Otherwise, proceed to step 6. Click OK to close the save setup dialog box. Click Run to start the batch process. Click Return to exit batch processing mode. tip.gifTips The progress window displays the current process, the number of iterations completed, the starting time, and an estimation of the time remaining. To stop batch processing, click the Cancel button in the progress window. Vision Assistant stops the batch process when the current step is complete or is cancelled from the Parameter window.

Let me know if this is the cause of the problem.

Cheers,

Link to comment

QUOTE (professor_rumsdiegeige @ Oct 2 2008, 03:47 PM)

Thank you for your reply, Minh Pham. Yes, I have indeed setup the save options - see attached screenshot. The file I specified for the results in this dialog is simply not created at all.

Why Browser is an image source? Would that be HD if you process imgs from your Hardrive. Or Acquisition if imgs are acquired via the camera?

Please confirm this.

Regards,

Link to comment

I use the image browser as an image source, because before starting the batch process, I add all the images I'm interested in to the image browser of Vision Assistant (i.e. then I load them from the disk). But even if I choose another option there, still no result file is created.

QUOTE (Minh Pham @ Oct 2 2008, 06:48 AM)

Why Browser is an image source? Would that be HD if you process imgs from your Hardrive. Or Acquisition if imgs are acquired via the camera?

Please confirm this.

Regards,

Link to comment

QUOTE (professor_rumsdiegeige @ Oct 2 2008, 12:35 AM)

I use the image browser as an image source, because before starting the batch process, I add all the images I'm interested in to the image browser of Vision Assistant (i.e. then I load them from the disk). But even if I choose another option there, still no result file is created.

I tried to recreate your issue in Vision Assistant 8.6 but everything worked as expected. Do you have write permissions to the folder you are storing images to?

Link to comment

QUOTE (professor_rumsdiegeige @ Oct 3 2008, 06:03 AM)

Yes, I just checked on that. I'm using Vision Assistant 8.0.0 - maybe it doesn't work in this version?

Can you change the File Prefix field to csv.txt instead of csv?

If it doesnt work then please try to save to 1 file option say csv.txt? Would that work?

It would be something simple that we are missing here.

Regards,

Link to comment

QUOTE (Minh Pham @ Oct 2 2008, 11:41 PM)

Can you change the File Prefix field to csv.txt instead of csv?

If it doesnt work then please try to save to 1 file option say csv.txt? Would that work?

It would be something simple that we are missing here.

Regards,

Finally... Somehow choosing one file for all results works while the other option does not work. But why I do not know.

Thanks to everyone participating here for the help! The problem is solved now.

Link to comment

QUOTE (professor_rumsdiegeige @ Oct 3 2008, 05:59 PM)

Finally... Somehow choosing one file for all results works while the other option does not work. But why I do not know.

Thanks to everyone participating here for the help! The problem is solved now.

I still dont know why saving multiple files did not work? Should we escalate this issue to NI Vision Support Group?

It's ok to use 1 file at the moment, that's cool.

Regards,

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.