Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VB 2010 - Why I can not give an image logging step image name a numeric value ?

Solved!
Go to solution

 

Hi 

 

I am using a Vision Builder 2010, I am trying to log a failed image as image and its data as a row in CSV file in different steps (data logging, image logging). 

My problem is that I want to link between the image and its row (in CSV file). I thought about system variable - inspection iteration counter (numeric), I want to save this number as a felid on a CSV file and as a part of the image file name. In this way, when I search for failure, I can look at the inspection iteration counter as an identifier (image and data). The problem is that I can not chose the inspection iteration counter as an image file name in the image logging step because it is numeric (I can not see it in the list , I see only the string variables) ,I don’t have a problem in the data logging step , because I can log the  inspection iteration counter as a felid .

 

How can I give a system variable - inspection iteration counter (numeric) as an image name????

Or is there any other way that I can give an image and a CSV data row a unique identifier (the same for both)??

 

Please help me.

 

A sample template and explanation image attached 

 

0 Kudos
Message 1 of 2
(2,620 Views)
Solution
Accepted by MYounis

Hi

A solution is to create a String Variable called for example "Iteration string", then you have to convert the system variable "Inspection Iteration Counter" from numeric to string using a "calculator step"

Variable convert

After the conversion, simply update your strin variable to the result of you "calculator step".

Then your variable will be available to create your image name in the "image logging" step.

 

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 2
(2,611 Views)