We have developed an artificial stomach-duodenum model made up of three compartments representing the stomach, (including a fragment of hog gastric mucosa), the proximal duodenum, and the distal duodenum. Gastroduodenal flow rates are controlled by a microcomputer capable of (1) adjusting gastric emptying and alkaline secretion in the proximal duodenum according to intragastric pH; (2) adjusting pancreatic alkaline secretion according to proximal duodenum pH; and (3) simulating acid response to food ingestion. Antacid drugs were added 90 min after simulated food ingestion in near-physiological or duodenal ulcer conditions. Aluminum phosphate-containing antacids resulted in a persistent antacid effect, due to their adsorption to the gastric mucosa; this prolonged the buffering capacity at pH 2.4 to 120 min. Aluminum+magnesium hydroxides and calcium+magnesium carbonate combinations mainly exerted neutralizing activity, inducing an increase in the gastric emptying rate. In the duodenal ulcer simulation, the pH of the gastric contents was lower and the antacid effect was shorter than in the 'physiological' simulation.