I have succesfully used a dual input oral one compartment model to fit single dose data. I now wish to simulate multiple dose. To the original model I have added code from J=1 to ‘dose = con(j-1)’ based on gabrielsson model PK 26, see code below. On execution I get the following message in the verification tab: ‘WNL ASCII format missing source’. Has the correct code been used if not what should it be? MODEL COMM NFUN 1 NDER 1 NPAR 6 PNAM ‘Ka1’, ‘Ka2’, ‘V’, ‘K’, ‘frct’, ‘tlag’ NCON 2 END TEMP DOSE = CON(1) END START Z(1) = 0. END DIFF J = 1 NDOSE = CON(2) DO I = 1 TO NDOSE J = J+2 IF X<= CON(J) THEN GOTO RED ENDIF NEXT RED: NDOSE = I -1 J = 1 IF X GT 0 THEN DO I = 1 TO NDOSE T = X - CON(J) DOSE = CON(J-1) ENDIF INPT1 = DOSE1FRCTKA1EXP(-KA1T) IF T LE TLAG THEN INPT2 = 0.0 ELSE INPT2 = DOSE1*(1-FRCT)KA2EXP(-KA2*(T-TLAG)) ENDIF DZ(1)= (INPT1 + INPT2)/V - K*Z(1) END FUNC 1 F = Z(1) END EOM
Hi Graham, It sounds like you are running this WNL classic code within Phoenix? Could you post the project as my feeling is that this is not a syntax issue but a mapping one. That said this is one reason I’d strongly advise to write the code in the Phoneix model since multiple doses can be accounted for with out having to modify the model code - just supply them as an input data sheet. Simon.