Make a point change over time
set_signalAttach sine, ramp, random, counter, or square signals to a device point so its value changes over time, replacing any existing signal. Use it to simulate dynamic values in a Modbus device for testing.
Instructions
Attach a signal to one point so its value changes by itself: sine, ramp, random, random walk, counter, square or constant. It replaces any signal already on that point and runs until replaced, stopped, or overwritten by set_point. Pass signal null to stop the signal and keep the current value. Use set_point for a fixed value and apply_scenario to change several things on a timeline. Returns the point with its current value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>",
"point": "<point>",
"signal": "<signal>"
},
"name": "set_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| point | Yes | Name of an existing point on that device (see get_device or read_points). | |
| signal | Yes | Signal object. One of: {"type":"constant","value":N} | {"type":"ramp","from":N,"to":N,"period_s":N,"repeat":true} | {"type":"sine","min":N,"max":N,"period_s":N} | {"type":"random","min":N,"max":N} | {"type":"random_walk","min":N,"max":N,"step":N} | {"type":"counter","per_second":N,"rollover":N (optional)} | {"type":"square","low":N,"high":N,"period_s":N}. Values are engineering values (after scaling). | |
| device_id | Yes | Id of a running device, as returned by create_device, clone_device or list_devices. |