Forum Replies Created

Viewing 2 posts - 361 through 362 (of 362 total)
  • Author
    Posts
  • in reply to: Reprogramming P3 and P4 on the Chi.bio #842
    harrison
    Keymaster

    Hi Alice,

    That should be no problem. I think the best way to go about implementing that change would be in the PumpModulation function, as this will mean the data/interface in each reactor will reflect its current behaviour, despite the fact that it is using pumps potentially attached to another one.

    A rough outline of the changes you might make are as follows:
    1) Decide on how you are going to remap the pumps. Perhaps what you could do is for every odd index reactor, use the pumps for the reactor with previous index (i.e. M1 uses P3,4 from M0, M3 uses P3,4 from M2).
    2) Add a new “if” statement to the top of PumpModulation. Inside this If statement you should catch each of the cases from step 1 independently. That is, case 1 is if you have an even index reactor, case 2 is odd index reactor. You can sort these by doing something like int(M[1])%2 to take the mod of the reactor index.
    3) Set up new variables called MB and itemB which will be defined in a case-dependent manner in these if statements.
    4) If case 1 and item==’Pump1′ or ‘Pump2′ then set MB=M and itemB=item. If case 1 and item==’Pump3’ or ‘Pump4’ then maybe just do sysData[M][item][‘ON’]=0 and then a return statement. This is to prevent the even index device from trying to control P3 or P4.
    5) If case 2 and item==’Pump1 or ‘Pump2’ then set MB=’M’+str(int(M[1])-1) and itemB=’Pump’+str(int(item[3])+2). Basically what I intend to do here is map (for example) M1 to M0 and Pump1 to Pump3. Thus, we would be using the desired pump boards for the odd index reactor. Also do a similar statement to as above to set sysData[M][item][‘ON’]=0 if Pump3 or Pump4 are called in this case.
    6) Now go through the PumpModulation function and update each incidence of setPWM(M,’Pumps’,sysItems[item] to setPWM(MB,’Pumps’,sysItems[itemB] Do not change the “M” in the next argument of the setPWM command.

    If you complete the above then the interface should basically work as before, but when you use pump 1,2 on an odd index reactor it routes the digital command to pumps 3,4 of a different reactor. It might be worthwhile implementing the above with print statements scattered throughout to ensure my logic was correct…

    in reply to: The lid and gas input/output #799
    harrison
    Keymaster

    Hi Jbe!
    The standard lid is open to atmosphere, so you wouldn’t be able to regulate the gas inside. However, the device uses standard test-tubes with threaded 22-400 closure, so you should be able to find some commercially available lid (or make your own) that fits those tubes and allows you to make a gas-tight seal on the tube.
    Making a custom air-tight lid is something we are currently considering, but we would likely wait a while until we can have a big demand before ordering them in a large quantity… thoughts?

Viewing 2 posts - 361 through 362 (of 362 total)
Log in/Register
Scroll to top