EasyCode II arrays

Hello, first time poster so if there is already a topic on this, please let me know and I will refer to that one. (although I have scoured the forum pretty thoroughly and haven’t seen any similar to this)

I’ve tried to reference the EasyCodeII manual but I am having some difficulties with a barcode matching step in my matrix tube scanning submethod. For context, I have a separate submethod that scans the worklist and creates an array with the barcodes to be used in the method. The easyCode should scan the matrix tubes and then be able to match the barcodes with the ones present in the worklist.

However, when I get to the scanning portion, the easyCode will create arrays that list the barcodes in certain positions on the matrix rack. Although the barcodes will match, the position will not and therefore throw an error stating that either the barcodes are missing or there is a barcode mismatch.

I’ve tried thinking of a couple solutions, including
A) truncating the null values from the barcode portion of the EasyCode array
B) somehow making an array (or 2) that lists position and barcode on the worklist.

I wanted to know if there is some kind of way on EasyCode software to have it that it only scans the barcodes, not the positions, and limit the size of the array to the number of samples scanned, or if there’s a way I’ll be able to implement either of the two options above.

Thanks

I would use HSLExtentions here

Specifically the Array part

You can use Find, Contain here.

image

If I see your workflow you want to compare your arrays. Basically I would first getSize of your worklist array and loop over this one. With Each loop I would increment the array index and get the value from your worklist. Store this in an array.

The use the find tool to locate that value from the easycode barcode array. This will produce an array of the integer type. Each index in this array represents the index where your requested value is found. In this example on index one. You can use the result from this to obtain the position and other information since these are on the same index found in the other arrays.

Real quick and dirty

This is the general idea here. You can make it as complicated as you like. But for the sake of datahandling I would not touch the outcome from the easycode arrays. I would merely use them to compare data from. This was QA department will be happy and don’t nag you.

1 Like