TV and television manuals and free pdf instructions. Find the user manual you need for your TV and more at ManualsOnline. Find the user manual you need for your TV and more at ManualsOnline. Free Universal Remote User Manuals ManualsOnline.com.
![](/uploads/1/2/7/4/127462724/695578153.png)
The Quartus® Prime and Quartus II software includes comprehensive scripting support for command-line and tool command language (Tcl) script design flows. Separate executables for each stage of the software design flow (synthesis, fitting, and timing analysis, for example) include options for making common settings and performing common tasks. The Tcl scripting application program interface (API) includes commands covering basic to advanced functionality. The Quartus II Scripting Reference Manual (PDF) provides a complete reference covering all command-line options and Tcl commands. The Quartus Prime Settings File Reference Manual (PDF) lists and describes all QSF settings.
Command-Line Scripting
You can use Quartus Prime or Quartus II command-line executables in batch files, shell scripts, makefiles, and other scripts. For instance, use the following command to compile an existing project:
quartus_sh --flow compile <project name>
For more information about command-line scripting, refer to the Command Line Scripting chapter in Volume 2 of the Quartus II Handbook.
You can also use the Command-Line and Tcl API Help Utility for a complete list of supported options, descriptions, and examples. Run the utility by typing the following at a command prompt:
quartus_sh --qhelp
Tcl Scripting
Use the Tcl API for any of the following tasks:
- Creating and managing projects
- Making assignments
- Compiling designs
- Extracting report data
- Performing timing analysis
For example, the following Tcl script uses design files for the fir_filter tutorial design in the <qdesigns> directory. The script creates a project, makes pin, clock, and timing assignments, and compiles the design.
For more information about Tcl scripting, refer to the Tcl Scripting chapter in Volume 2 of the Quartus II Handbook.
You can also use the Command-Line and Tcl API Help Utility for a complete list of Tcl API commands, descriptions, and examples. Run the utility by typing the following at a command prompt:
quartus_sh --qhelp
Scripting Design Examples
Altera provides Tcl design examples you can learn from, modify, and use in your own designs.
Scripting Training
View online training presentations to get up to speed on scripting in the Quartus Prine or Quartus II software.
- Online Demo: View a short demonstration of Tcl and command-line scripting.
- Command-Line Scripting: This class covers the command-line executables and how to use them in scripts and Makefiles. It also provides examples.
- Introduction to Tcl Scripting: These two classes cover the basics of Tcl scripting, describing the language and basic operations, along with examples.
- Basic Tcl Scripting: These two classes introduce the Tcl scripting API for the Quartus Prime and Quartus II software. They also cover how to use Tcl scripts to create and compile projects, extract report data, and more. You should know how to write Tcl scripts before taking these classes.
This is a TraSMAPI specialisation for Aimsun simulator.
![Manual Manual](/uploads/1/2/7/4/127462724/653379396.jpg)
TraSMAPI is a generic API used as bridge for microscopic traffic simulators (what is a microscopic simulator?) that allows real-time communication between agents in the urban traffic context (such as vehicles, traffic lights and pedestrians) and the environment created by various simulators. This tool was developed at LIACC (Artificial Intelligence and Computer Science Laboratory), University of Porto.
Aimsun is a traffic modelling software that allows you to model anything from a single bus lane to an entire region. With thousands of licensed users in government agencies, consultancies and universities all over the world, Aimsun stands out for the exceptionally high speed of its simulations and for fusing travel demand modelling, static and dynamic traffic assignment with mesoscopic, microscopic and hybrid simulation.
TraSMAPI is written in Java. To use this extension you first need to include TraSMAPI into your project. That can simply be done by creating a trasmapi package and by cloning the genApi folder into there. Then, you have to include in that same trasmapi package the aimsun folder that is in this repository.
To perform the communication between TraSMAPI and Aimsun, it is necessary to implement a dedicated communication module in TraSMAPI which interconnects with the Aimsun’s API module (Figure 1). The Aimsun API module is placed, in the functional point of view, between the Aimsun simulator and the TraSMAPI.
Figure 1: Communication protocol
There are two types of communication processes that will be focused:
- between the Aimsun simulator and the Aimsun API module, provided by the Aimsun environment;
- between the Aimsun API module and the TraSMAPI, implemented by the user.
Every simulation step, Aimsun traffic simulator communicates with our algorithm trough the communication protocol.
The communication protocol was tested by us for version 6 and 7 of Aimsun simulator. Beyond Aimsun simulator license is necessary to have the supplement of Aimsun API Module.
Aimsun Environment
The Aimsun’s API Module allows the interface of almost any external application that may need access to some internal data of Aimsun during simulation run time since it has direct access to the simulation functions.The interaction between Aimsun simulator and its API module is performed by a set of functions provided by an interface of Aimsun. This set of functions allows the Aimsun’s API module to obtain information from the simulation model and modify the simulation state. Moreover, the external application must connect and establish a communication process with the API to take advantage of these functionalities. It is not possible to create new functions. However you can try to contact simulator support ([email protected]) and describe your problem, if they get interested they can include the new function in the next simulator version. The functions available depend of the Aimsun simulator version.
The Aimsun API module gives, to the user, the possibility of choose between two programming languages: C/C++ or Python. We used the C/C++ programming language to create an Aimsun API Extension. The C++ Aimsun API Extension (in apiAIMSUN_ folder) is a dynamic library that contains the desired code that will interact with the Aimsun. This folder includes by default some files as following:
- 5 header files (AKIProxie.h, CIProxie.h, ANGConProxie.h, AAPI_Util.h);
- 1 library (angext.lib);
- 2 samples files (AAPI.h, AAPI.cxx).
We can only modify the sample file AAPI.cxx. Below you can see parts of that file with some comments:
The file has to have six high level functions defined in order to guarantee the communication between the Aimsun API Module and the Aimsun Simulation model: AAPILoad(), AAPIInit(), AAPIManage(), AAPIPostManage(), AAPIFinish() and AAPIUnLoad(). As explained before, the functions which are responsible for exchange information or modify its state dynamically should be defined in the AAPIManage() function as stated in the above comments. After defining the selected functions in the file, the project is ready to compile and build the DLL file - AAPI_D.dll. Every time the user includes a new function from repository is necessary to compile and build the library.The AAPI.cxx file should be edit using Microsoft Visual Studio C++. In this work, we used version of 2010.
The dynamic library file (AAPI_D.dll) must be loaded in Aimsun simulator in order to complete the communication in Aimsun environment. In order to follow the dialogs in Figure 2:
The dynamic library file (AAPI_D.dll) must be loaded in Aimsun simulator in order to complete the communication in Aimsun environment. In order to follow the dialogs in Figure 2:
- open Aimsun file;
- click on the “Scenario” -> Properties and a new dialog will appear;
- select the Aimsun API tab folder;
- using the Add button or Remove button the user can load or unload a set of Aimsun Extensions (Dynamic libraries or Python scripts);
- check the desired Aimsun extension -> ok click.
Figure 2: Adding AAPI_D.dll
Note: If the Aismun Api folder named by us as “AAPIVisual” change the path location, it is necessary to upload again the folder in Aimsun simulator as explained above.
Aimsun Environment - TraSMAPI Environment
To link between TraSMAPI module and Aimsun API Module, it was develop a communication protocol supported in sockets (Figure 3).
Figure 3: Link between TraSMAPI module and Aimsun API Module
In the AAPI.cxx file (described in section above) is also defined the socket number in the Aimsun environment, in order to promote the communication between Aimsun API module and TraSMAPI environment.
In short the overall information flux between the several components is presented in Figure 4. This information flux occurs, for each function request of algorithm, in each simulation interval. The input data is passed through the API that asks the simulator for the function result and returns it back to the algorithm.
Figure 4: Information flux in communication protocol
Our case
The communication between our algorithm and traffic simulator allows us to get information from the simulation model and modify the simulation state during the simulation. The road network is modelled in traffic simulator. The TraSMAPI framework allows building an abstraction of this traffic light, and controlling the simulation lifecycle. For more information see our published papers.
We have created a batch file in order to run several Aimsun simulations in console mode without user interaction:
We appreciate any help you could give by improving our code, documention, or by simpling creating an issue. If you wish you can contact us at [email protected]
Submitting a Pull Request
- Fork it.
- Create a branch (
git checkout -b my_trasmapi
) - Commit your changes (
git commit -am 'Added message type'
) - Push to the branch (
git push origin my_trasmapi
) - Open a Pull Request
- Enjoy a refreshing Diet Coke and wait
Copyright 2016 STEMS-group
Licensed under the Apache License, Version 2.0 (the 'License');you may not use this file except in compliance with the License.You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an 'AS IS' BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
![](/uploads/1/2/7/4/127462724/695578153.png)