This tutorial shows you how to activate and configure easily the synchronization output signal available on the PULSE.
Several parameters can be changed to configure the Sync Out signal:
- Trigger: Trigger condition to generate a sync out (string)
- Polarity: Signal level change to use when the event is triggered (string)
- Duration: Signal pulse duration, in microseconds. It should be always smaller than half the signal period (number)
Before we start
The PULSE implements the sbgInsRestApi protocol over a serial interface. All available configurations and commands are detailed in the Digital interfaces page. All the examples use the sbgEComApi command line tool.
In this guide, we consider a PULSE connected to a Windows computer on the serial COM12 and using the default 921600 bps baud rate.
Read Sync Out Configuration
You can query the eventOutA
signal configuration using the following command:
The device should returns the whole configuration for the eventOutA
signal:
You can also query the whole device configuration using the path /api/v1/settings
Enable Sync Out Signal
By default, no Sync Out signal is enabled on the PULSE. In this example, we will enable the sync out signal at 200Hz on a rising edge with a duration of 1ms:
The device should return the following answer:
You don't have to reboot the device for the new sync out signal configuration to be effective.
You can also define each eventOutA
parameter one by one. For example, use the path /api/v1/settings/events/eventOutA/trigger
to only define the signal output period.
Save New Settings
Don't forget to save your new settings if you would like to keep them for the next power cycle. Simply send the command below:
The device answer should be: