Loading the Controls with the API Command Line
- Last UpdatedApr 20, 2020
- 2 minute read
In this section, we’ll load the control configuration through the command line LoadAll.
Once the modifications are complete, run the simulation in order for the changes to take effect. After completing a control configuration modification, run the model, and then, perform a Checkpoint through the ICC. Save the process model to ensure the checkpoint file is saved to the backup S4M file. Then, perform the following steps.
-
Place the simulation in FREEZE mode until the completion of the steps below.
-
If an ICC is open, click EXIT to close the ICC.
-
Open a command prompt window. To open a command prompt window, navigate to Start > Run, and type cmd in the text field named Open, then click OK.
-
Start a Nutcracker shell session by typing sh at the prompt.
-
Place the files in a directory and copy the controls to this location (or make a note of the location and replace the directory path as needed).
mkdir d:/opt/esscor/saveallfile
cp –r a:* d:/opt/esscor/saveallfile
-
Move to the directory where the SaveAll command is located.
cd d:/opt/fox/ciocfg/api
-
Load the controls, replacing "ESSSCP" with your CP letterbug name, and the directory shown with the directory containing your controls. /load_all ESSSCP d:/opt/esscor/saveallfile
-
If errors are logged, error messaging directs the user to check an error file.
-
Refresh FoxSelect / BlockSelect and verify that the compounds are turned on and address any cyan block issues.
-
Compile PLB, IND, MON, DEP, and EXC blocks. When complete, run, and then freeze the simulator.
-
Run the process model through the longest period/phase (anywhere from 0.5 sec to 10 minutes, depending on the controls set).
-
Open the ICC and manually perform a CHECKPOINT.
-
Save the process model.