I feel like this probably has an easy fix, but I can not seem to figure it out. I’m looping over a large sequence and after each 96 channel pipetting step is done, I want to get the used position count and then subtract that by the total positions in the sequence to get the remaining number of positions left. The first pipetting step does change the used position count and the remaining positions count, and then it stays the same for the rest of the pipetting steps. If someone could please tell me what I’m doing wrong I would greatly appreciate it!
I realized that the SeqGetUsedPositions only gives the positions used in the last step, so is there an easy way to concatenate the positions from each step?
You should be able to use SeqGetTotal (I don’t remember the exact name) and use that to apply it to the MM1_stop variable, or a new variable of that is used elsewhere.
It’s also useful to put strings into your trace so you can easily reference the values returned. Eg.
"Used_384: "
Used_384
Thanks for the reply! I used SeqGetTotal before writing this, but it only gives me the total number of positions in my sequence, not how many have already been used. Basically, I want to know how many positions are left in the sequence after each 96MPH transfer because if the number of positions in <96, I need it to switch over the the 8 channel.
I just read your previous reply, so I understand the problem a bit better now.
After reading your last reply and understanding your objective, I can suggest 2 possible solutions:
Solution 1:
Adjust your calculation to
positions_left = positions_left - Used_384
Set positions_left, above the loop in the method, to equal MM1_stop or a variable from SeqGetTotal
Solution 2:
Use a calculation, from variables assigned by Seq functions eg.
SeqGetCurrentPosition assign to variable Current_384
Used_384 = MM1_stop - Current_384
SeqGetCurrentPosition needs to be inside the loop so it’s dynamical calculated. The stop position can calculated once, before the loop in the method, as it remains static
Ahhh yes Solution 1 was what I was looking for, thank you!! I forgot that I needed to keep the original positions_left out of the loop in order for this to work. Thanks again!