Forum Replies Created
-
AuthorPosts
-
SinaBeierParticipant
But I think a part at the end of your reply got missing?
- This reply was modified 3 years, 3 months ago by SinaBeier.
SinaBeierParticipantThank you! I think that will help a lot to get this working.
SinaBeierParticipantThis is roughly what I have right now (in a custom program):
timept=int(sysData[M][‘Custom’][‘Status’]) #This is the timestep as we follow in minutes
sysData[M][‘Custom’][‘Status’]=timept+1 #Increment time as we have entered the loop another time!#We have 2 custom parameters. Max volume and “reduced volume” (goal volume)
sysData[M][‘Custom’][‘param1’] =float(Params[0]) #max volume, probably 20.0
sysData[M][‘Custom’][‘param2’] = float(Params[1]) #goal volume
#For now I am just trying to do something every hour
timelength = 60 # time interval in minutes
if (timept % timelength == 2): # So this happens every hour!GoalVolume = sysData[M][‘Custom’][‘param2’]
sysData[M][‘Volume’][‘target’] = GoalVolume
ODNow = sysData[M][‘OD’][‘current’]
ODTarget = 0 #We probably also need to set that, based on ODNow and GoalVolume
sysData[M][‘OD’][‘target’] = ODTarget#Now we can have it regulate the OD based on OD and/or Volume target
RegulateOD(M)Volume = sysData[M][‘Volume’][‘target’]
The question is do I need to calculate the ODTarget, or can I just co with a GoalVolume? If I need to calculate it, how?
SinaBeierParticipantThe difference between that proposal and what I am suggesting is that my suggestion is pumping out/in at the same time, while keeping the volume constant.
I don’t necessarily have to pump out first, then back in. But I would have to pump out (& in at the same time) a fixed volume, not to reach a fixed OD. Can I do that using RegulateOD()? Maybe by calculating the OD I would reach if I replaced the volume I want to remove with medium? (Which then supposedly should result in what I want when setting the right target OD?)
SinaBeierParticipantI think I could use RegulateOD() to do what I need. If I do not want to reach a goal OD, but would like to do it the equivalent of “pump out until volume is x and then fill back to normal amount”, how would I do that?
Measure the OD, calculate what the OD would be if I removed volume X and pumped the same volume of medium back in, then RegulateOD to what I calculated?
or can I just set sysData[M][‘Volume’][‘target’] without setting sysData[M][‘OD’][‘target’] and let it run its course?September 9, 2021 at 2:39 pm in reply to: Where is the beginner’s guide for making custom Chi-Bio software? #1329SinaBeierParticipantHas there been any development on this guide since this post was started? I think it would unlock a large user base for you to provide better documentation on the customisation. Right now it is still a bit tedious and the examples in the code only cover a few of the functionalities while others are left out.
-
AuthorPosts