View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Expert System with PROLOG to Simulink

5.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 317 KB File ID: #36516 Version: 1.1
image thumbnail

Expert System with PROLOG to Simulink



03 May 2012 (Updated )

PROLOG to Simulink with The SWI-Prolog and JPL (Java Interface to PROLOG)

| Watch this File

File Information

This model contains a SWI-Prolog ( interface block for Simulink environment. Communication between SWI-Prolog and Simulink uses JPL (Java Interface to Prolog). JPL is a library using JNI (Java Native Interface) providing a bidirectional interface between Java and SWI-Prolog.
The SWI-Prolog Interface block allows you to create simulation with expert systems using PROLOG code. With this block can be read PROLOG source file and loads the clauses in SWI-Prolog environment. The clauses are called through a PROLOG query that is an input parameter of the SWI-Prolog Interface block.
The PROLOG query uses ''u'' as the input variable name and ''y'' as the output variable name. In the case of queries with multiple solutions, this block will only return the first solution found.

The SWI-Prolog and JPL (Java Interface to Prolog) configurations are showed on the pdf file.

The attached file contains a simple on-off tank level control with prolog-based expert system example using The SWI-Prolog Interface block.

Marcelo Augusto Costa Fernandes

Required Products Simulink
MATLAB release MATLAB 7 (R14)
MATLAB Search Path
Other requirements SWI-Prolog (
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
12 Dec 2016 fanantenana cesar

14 Sep 2016 1.1

Update for SWI Prolog version 7.2.3.

Contact us