Skip to Main Content
Centro Assistenza Cognex
LogoLogo

How to Save Images into Different Folders over FTP Based on Job Result from EasyBuilder Jobs

This article describes how you can save images into different folders on an FTP server from an EasyBuilder job using In-Sight Vision Suite software.

31/01/2025

Question

The Enabled property of the Write Image functionality can be assigned to a pass/fail result in the EasyBuilder jobs, but only one Write Image functionality is available in one job.

How can I save the images into different folders on the FTP server, depending on a pass/fail result?

Answer

This can be done by determining the folder name in a Math tool, depending on the pass/fail result.

For example, let's suppose that the pass/fail result is located in the A0 cell within a Math tool, then using the below function in another cell will generate "OK" or "NOK" strings:
if(A0,"OK","NOK")

Placeholder

Then linking this cell to the File Path property of the Write Image functionality will save the images under the correct FTP folder depending on the pass/fail result:

Placeholder

Risorse correlate