Editing .BAT files

Adding extra doses - simulation

IMPORTANT Use a plain text editor, no formatting.

Starting with a two dose simulation, with a lag time. The first dose starts at the lag time, here 0.2 hr. The second dose given at 4 hours is specified as 4.2 (i.e. 4 + lag time). Let's add two more doses at 8 and 12 hr. That is, at 8.2 and 12.2. Note times are type 0 parameter and doses are type 1. Also specify all (if possible) invariant parameters before specifying time. The .BAT file snippet below describes four parameters, two for each dose. To add two additonal doses copy these 20 lines and paste them after the last line shown. Note the '--' is used here to separate parameter details and is not included in the .BAT file.

--
    0                             Parameter type            <- a Time
FirstDoseTime                                               
  0.2000                          Parameter value           
    0                             happy or not              <- end of FirstDoseTime
--
    0                             Parameter type            <- a Time
SecondDoseTime                                              
   4.200                          Parameter value           
    0                             happy or not              <- end of SecondDoseTime
--
    1                             Parameter type            <- a Dose
DoseOne                                                     
   250.0                          Parameter value           
    1                             Start interrupt number    <- given at the first Time
    1                             To                        
    0                             happy or not              <- end of DoseOne
--
    1                             Parameter type            <- a Dose
DoseTwo                                                     
   250.0                          Parameter value           
    2                             Start interrupt number    <- given at the second Time
    1                             To                        
    0                             happy or not              <- end of DoseTwo
--
This will result in 40 lines as shown below
    0                             Parameter type                     
FirstDoseTime                                                        
  0.2000                          Parameter value                    
    0                             happy or not                       
    0                             Parameter type                     
SecondDoseTime                                              
   4.200                          Parameter value                    
    0                             happy or not                       
    1                             Parameter type                     
DoseOne                                                     
   250.0                          Parameter value                    
    1                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    1                             Parameter type                     
DoseTwo                                                     
   250.0                          Parameter value                    
    2                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    0                             Parameter type                     
FirstDoseTime                                                        
  0.2000                          Parameter value                    
    0                             happy or not                       
    0                             Parameter type                     
SecondDoseTime                                              
   4.200                          Parameter value                    
    0                             happy or not                       
    1                             Parameter type                     
DoseOne                                                     
   250.0                          Parameter value                    
    1                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    1                             Parameter type                     
DoseTwo                                                     
   250.0                          Parameter value                    
    2                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
Now edit the later 20 lines.

Change FirstDoseTime to 3rdDoseTime
Change 0.2000 to 8.2, the third dose time plus lag time
Change SecondDoseTime to 4thDoseTime
Change 4.2 to 12.2, the fourth dose time plus lag time
Change DoseOne to DoseThree
Change 1 to 3, to point to the third type 0 parameter
Change DoseTwo to DoseFour
Change 2 to 4, to point to the fourth type 0 parameter

This should result in these new lines

    0                             Parameter type                     
FirstDoseTime                                                        
  0.2000                          Parameter value                    
    0                             happy or not                       
    0                             Parameter type                     
SecondDoseTime                                              
   4.200                          Parameter value                    
    0                             happy or not                       
    1                             Parameter type                     
DoseOne                                                     
   250.0                          Parameter value                    
    1                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    1                             Parameter type                     
DoseTwo                                                     
   250.0                          Parameter value                    
    2                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    0                             Parameter type                     
3rdDoseTime                                                        
  8.2000                          Parameter value                    
    0                             happy or not                       
    0                             Parameter type                     
4thDoseTime                                              
   12.20                          Parameter value                    
    0                             happy or not                       
    1                             Parameter type                     
DoseThree                                                     
   250.0                          Parameter value                    
    3                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
    1                             Parameter type                     
DoseFour                                                     
   250.0                          Parameter value                    
    4                             Start interrupt number             
    1                             To                                 
    0                             happy or not                       
IMPORTANT Save the edited file as plain ascii text with the .BAT extension.

Editing data lines - Simulation

IMPORTANT Use a plain text editor, no formatting.

A data set included within a .BAT file might look like this for a simulation.

    1                             Data from disk or keyboard         
   0.000                          X value                            
   0.000                          Y value                            
  0.2500                          X value                            
   0.000                          Y value                            
  0.5000                          X value                            
   0.000                          Y value                            
   1.000                          X value                            
   0.000                          Y value                            
   2.000                          X value                            
   0.000                          Y value                            
   3.000                          X value                            
   0.000                          Y value                            
   4.000                          X value                            
   0.000                          Y value                            
   6.000                          X value                            
   0.000                          Y value                            
   9.000                          X value                            
   0.000                          Y value                            
   12.00                          X value                            
   0.000                          Y value                            
   18.00                          X value                            
   0.000                          Y value                            
   24.00                          X value                            
   0.000                          Y value                            
  -1.000                          X value                            
Each data point consists of two lines. One for the x value and one the y value. Include decimal points. End the data with x = -1.

IMPORTANT Save the edited file as plain ascii text with the .BAT extension.