pump isssues in feeding task

MEDState Notation Repository Forums Coding Help Archive pump isssues in feeding task

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12753
    Med_Support
    Moderator

    Hello,

    I am having some trouble getting my sucrose pump to work during a feeding task I have programmed. Everything else seems to work except the pump that does not start when the lever is pressed. It would be great to receive some help on the matter. I have attached the program.

    Thank you

    Devan

    denom

    #12752
    Med_Support
    Moderator
    Jim Frei

    Hi Devan,
    When turning on the pump, why are you trying to call a Pascal command? Why not simply say ON ^Pump?

    Take care,

    Jim

    #12757
    Med_Support
    Moderator
    Gary Bamberger

    Hi Devan,

    The program that you attached won’t even compile. Example:

    S4,
    IF N>=5 [@True, @False]
    @True: Z^Z_Sucrose ---> S5
    @False: ---> S2
    

    This is not valid code and if I tried to compile it, it would say illegal or missing input statement. There are several locations in the program where the same problem exists.

    This makes it a little hard to give advice because you could not possibly be using this program to run your experiments.

    Now having said that it looks like you are trying to use a PHM-100VSS pump. The pump is only turned on when a Z^Z_Sucrose pulse is issued. In S.S.1, S4 & S7 this Z-pulse is issued. In S10, S13, S16, S19, S22, S25, S28, and S31 no Z-pulse is issued.

    Hopefully this is the cause of the problem. If that doesn’t help, then the next step is to see if you can turn on the pump when using MED Test. If it doesn’t work in MED Test it will never work when running your MED-PC program.

    Please let me know if this helps solve your problem.

    Gary

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.