This is the development version of the documentation. It may change before the next release. See 0.14.x for the latest release.
Synchronize
Synchronize is a command that reinitializes the synchronization clock the FPGA uses to generate PWM and aligns the output phase across the devices.
It must be called once after open.
Synchronize;Synchronize()new Synchronize();Example
Section titled “Example”use autd3_rs::commands::Synchronize;use autd3_rs::geometry::{Autd3, Geometry};use autd3_rs::Client;use autd3_rs::udp::TransportOption;
let geometry = Geometry::new(vec![Autd3::default()]);let option = TransportOption::default();let mut client = Client::open(&geometry, &option).await?;
client.send(Synchronize).await?;import asyncio
from autd3 import Client, TransportOptionfrom autd3.commands import Synchronizefrom autd3.geometry import Autd3, Geometry
async def main() -> None: geometry = Geometry([Autd3()]) with await Client.open(geometry, TransportOption()) as client: await client.send(Synchronize())
asyncio.run(main())using System.Threading.Tasks;using AUTD3;
var geometry = new Geometry(new[] { new Autd3() });using var client = await Client.OpenAsync(geometry, new TransportOption());
await client.SendAsync(new Synchronize());