Skip to main content

Signal Component -CLOC-source giving time

Tutorial Content

This tutorial aims to provide a detailed explanation of the Amesim documentation from a beginner's perspective, elaborating on the logic and key points, in order to help users better understand and get started.

image-20250525063216701

The function of the CLOC component is very simple; it outputs the simulation time. As shown in the figure below, if the simulation time is set to 10 seconds, the output on the y-axis will also be time, resulting in a 45-degree straight line.

image-20250525063327157

At first glance, this component seemed too simple, and I couldn't think of much to write about it.

It wasn't until recently when I encountered a scenario where I needed to create a function with time as the independent variable but couldn't find the corresponding functionality in the software. At that moment, I suddenly thought of this component—and indeed, it worked.

I built a simple model as follows, where the output function is y = x * x, and x represents time:

image-20250525064014344

The simulation results are as follows:

image-20250525064400322

Therefore, this is one use case for this component: providing time as an independent variable for further calculations.