Skip to content

Scheduled Action Commands#

The Scheduled Action Commands camera feature allows you to send action commands that are executed in multiple GigE cameras at exactly the same time.

If exact timing is not a critical factor in your application, you can use the Action Commands feature instead.

Using the Feature#

How It Works#

The basic parameters of the Scheduled Action Command feature are the same as for the Action Commands feature:

In addition to these parameters, the Scheduled Action Command feature uses the Action Time parameter:

Action Time#

A 64-bit GigE Vision timestamp used to define when the action is to be executed.

The action is executed as soon as the internal timestamp value of a camera reaches the specified value.

With the Precision Time Protocol enabled, the timestamp value is synchronized across all cameras in the network. As a result, the action will be executed on all cameras in the network at exactly the same time.

The value must be entered in ticks. On Basler cameras with the Precision Time Protocol feature enabled, one tick equals one nanosecond.

Example: Assume you issue a scheduled action command with the action time set to 100 000 000 000. The action will be executed as soon as the timestamp value of all cameras in the specified network segment reaches 100 000 000 000.

Info

If 0 (zero) is entered or if the action time is set to a time in the past, the action command will be executed immediately, equivalent to a standard action command.

Using Scheduled Action Commands#

Configuring the Cameras#

Follow the procedure outlined in the Action Commands topic.

Issuing a Scheduled Action Command#

General Use#

To issue a scheduled action command:

  1. Make sure that all cameras in your network are synchronized via the Precision Time Protocol feature.
  2. Call the IssueScheduledActionCommand method in your application.

The parameters are similar to the IssueActionCommand method. The only difference is the additional Action Time parameter.

Example:

Scheduled Action Command Parameters

Issuing a Scheduled Action Command to Be Executed after a Certain Delay#

To issue a scheduled action command that is executed after a certain delay:

Info

  • The following steps must be performed using the pylon API.
  • Because there is an unspecified delay between transmission and execution of the pylon API commands, the desired delay can't be achieved exactly.
  1. Make sure that all cameras in your network are synchronized via the Precision Time Protocol feature.
  2. Execute the TimestampLatch command on one of your cameras. If one of your cameras serves as the PTP master clock, use this camera.
    A "snapshot" of the camera's current timestamp value is taken.
  3. Get the value of the TimestampLatchValue parameter on the same camera.
    The value is given in ticks. On Basler cameras with the Precision Time Protocol feature enabled, one tick equals one nanosecond.
  4. Call the IssueScheduledActionCommand method with the action time set to the value determined in step 3 plus the desired delay in ticks (= nanoseconds).
    For example, if you want the command executed after roughly 30 seconds, set the action time to TimestampLatchValue + 30 000 000 000.

All cameras in the network segment will execute the command simultaneously after the given delay.

Issuing a Scheduled Action Command to Be Executed at a Precise Point in Time#

To issue a scheduled action command that is executed at a precise point in time:

  1. Make sure that all cameras in your network are synchronized via the Precision Time Protocol feature to a time standard, e.g., Coordinated Universal Time (UTC).
    This can be achieved, e.g., by integrating a IEEE 1588-enabled UTC clock device in your network.
  2. Call the IssueScheduledActionCommand method with the action time set to a coordinated time value.
    For example, if your cameras are synchronized to UTC, you can set the action time to 1 765 537 200 000 000 000 to execute the action command exactly on Fri Dec 12 2025 11:00:00 UTC.
Queueing Scheduled Action Commands#

If the ActionQueueSize parameter is available and its value is greater than one, you can queue scheduled action commands.

This means that the camera can store and process multiple scheduled action commands. The camera will execute them in ascending order of action time. If the queue is full, additional commands will be ignored.

Example: Assume the value of the ActionQueueSize parameter is 2. Now, assume you send the following commands to the camera:

  1. IssueScheduledActionCommand(4711, 1, 0xFFFFFFFF, 20000000000, "192.168.1.255")
  2. IssueScheduledActionCommand(4711, 1, 0xFFFFFFFF, 10000000000, "192.168.1.255")
  3. IssueScheduledActionCommand(4711, 1, 0xFFFFFFFF, 5000000000, "192.168.1.255")

Command 2 will be executed first, after 10 000 000 000 nanoseconds. Command 1 will be executed second, after 20 000 000 000 nanoseconds. Command 3 will be ignored because the queue is full.

Specifics#

Show all camera models

Camera Model Action Queue Size
a2A640-240gmSWIR 2
a2A640-240umSWIR Scheduled Action Commands feature not supported
a2A1280-80gmSWIR 2
a2A1280-125umSWIR Scheduled Action Commands feature not supported
a2A1920-51gcBAS 2
a2A1920-51gcPRO 3
a2A1920-51gmBAS 2
a2A1920-51gmPRO 3
a2A1920-160ucBAS Scheduled Action Commands feature not supported
a2A1920-160ucPRO Scheduled Action Commands feature not supported
a2A1920-160umBAS Scheduled Action Commands feature not supported
a2A1920-160umPRO Scheduled Action Commands feature not supported
a2A1920-165g5cBAS 2
a2A1920-165g5mBAS 2
a2A2048-35gmSWIR 2
a2A2048-110umSWIR Scheduled Action Commands feature not supported
a2A2440-98g5cBAS 2
a2A2440-98g5mBAS 2
a2A2448-23gcBAS 2
a2A2448-23gcPRO 3
a2A2448-23gmBAS 2
a2A2448-23gmPRO 3
a2A2448-75ucBAS Scheduled Action Commands feature not supported
a2A2448-75ucPRO Scheduled Action Commands feature not supported
a2A2448-75umBAS Scheduled Action Commands feature not supported
a2A2448-75umPRO Scheduled Action Commands feature not supported
a2A2448-105g5cBAS 2
a2A2448-105g5mBAS 2
a2A2448-120cc Scheduled Action Commands feature not supported
a2A2448-120cm Scheduled Action Commands feature not supported
a2A2448-210cc Scheduled Action Commands feature not supported
a2A2448-210cm Scheduled Action Commands feature not supported
a2A2560-20gmSWIR 2
a2A2560-70umSWIR Scheduled Action Commands feature not supported
a2A2590-22gcBAS 2
a2A2590-22gcPRO 3
a2A2590-22gmBAS 2
a2A2590-22gmPRO 3
a2A2590-60ucBAS Scheduled Action Commands feature not supported
a2A2590-60ucPRO Scheduled Action Commands feature not supported
a2A2590-60umBAS Scheduled Action Commands feature not supported
a2A2590-60umPRO Scheduled Action Commands feature not supported
a2A2600-20gcBAS 2
a2A2600-20gcPRO 3
a2A2600-20gmBAS 2
a2A2600-20gmPRO 3
a2A2600-64ucBAS Scheduled Action Commands feature not supported
a2A2600-64ucPRO Scheduled Action Commands feature not supported
a2A2600-64umBAS Scheduled Action Commands feature not supported
a2A2600-64umPRO Scheduled Action Commands feature not supported
a2A2840-14gcBAS 2
a2A2840-14gcPRO 3
a2A2840-14gmBAS 2
a2A2840-14gmPRO 3
a2A2840-14gmUV 3
a2A2840-48ucBAS Scheduled Action Commands feature not supported
a2A2840-48ucPRO Scheduled Action Commands feature not supported
a2A2840-48umBAS Scheduled Action Commands feature not supported
a2A2840-48umPRO Scheduled Action Commands feature not supported
a2A2840-48umUV Scheduled Action Commands feature not supported
a2A2840-67g5cBAS 2
a2A2840-67g5mBAS 2
a2A2840-67g5mUV 3
a2A2840-86cc Scheduled Action Commands feature not supported
a2A2840-86cm Scheduled Action Commands feature not supported
a2A3840-13gcBAS 2
a2A3840-13gcPRO 3
a2A3840-13gmBAS 2
a2A3840-13gmPRO 3
a2A3840-45ucBAS Scheduled Action Commands feature not supported
a2A3840-45ucPRO Scheduled Action Commands feature not supported
a2A3840-45umBAS Scheduled Action Commands feature not supported
a2A3840-45umPRO Scheduled Action Commands feature not supported
a2A4096-9gcBAS 2
a2A4096-9gcPRO 3
a2A4096-9gmBAS 2
a2A4096-9gmPRO 3
a2A4096-30ucBAS Scheduled Action Commands feature not supported
a2A4096-30ucPRO Scheduled Action Commands feature not supported
a2A4096-30umBAS Scheduled Action Commands feature not supported
a2A4096-30umPRO Scheduled Action Commands feature not supported
a2A4096-44g5cBAS 2
a2A4096-44g5mBAS 2
a2A4096-67cc Scheduled Action Commands feature not supported
a2A4096-67cm Scheduled Action Commands feature not supported
a2A4200-12gcBAS 2
a2A4200-12gcPRO 3
a2A4200-12gmBAS 2
a2A4200-12gmPRO 3
a2A4200-40ucBAS Scheduled Action Commands feature not supported
a2A4200-40ucPRO Scheduled Action Commands feature not supported
a2A4200-40umBAS Scheduled Action Commands feature not supported
a2A4200-40umPRO Scheduled Action Commands feature not supported
a2A4504-5gcBAS 2
a2A4504-5gcPRO 3
a2A4504-5gmBAS 2
a2A4504-5gmPRO 3
a2A4504-18ucBAS Scheduled Action Commands feature not supported
a2A4504-18ucPRO Scheduled Action Commands feature not supported
a2A4504-18umBAS Scheduled Action Commands feature not supported
a2A4504-18umPRO Scheduled Action Commands feature not supported
a2A4504-27g5cBAS 2
a2A4504-27g5mBAS 2
a2A4504-42cc Scheduled Action Commands feature not supported
a2A4504-42cm Scheduled Action Commands feature not supported
a2A4508-6gcBAS 2
a2A4508-6gcPRO 3
a2A4508-6gmBAS 2
a2A4508-6gmPRO 3
a2A4508-20ucBAS Scheduled Action Commands feature not supported
a2A4508-20ucPRO Scheduled Action Commands feature not supported
a2A4508-20umBAS Scheduled Action Commands feature not supported
a2A4508-20umPRO Scheduled Action Commands feature not supported
a2A5320-7gcBAS 2
a2A5320-7gcPRO 3
a2A5320-7gmBAS 2
a2A5320-7gmPRO 3
a2A5320-23ucBAS Scheduled Action Commands feature not supported
a2A5320-23ucPRO Scheduled Action Commands feature not supported
a2A5320-23umBAS Scheduled Action Commands feature not supported
a2A5320-23umPRO Scheduled Action Commands feature not supported
a2A5320-34g5cBAS 2
a2A5320-34g5mBAS 2
a2A5320-52cc Scheduled Action Commands feature not supported
a2A5320-52cm Scheduled Action Commands feature not supported
a2A5328-4gcBAS 2
a2A5328-4gcPRO 3
a2A5328-4gmBAS 2
a2A5328-4gmPRO 3
a2A5328-15ucBAS Scheduled Action Commands feature not supported
a2A5328-15ucPRO Scheduled Action Commands feature not supported
a2A5328-15umBAS Scheduled Action Commands feature not supported
a2A5328-15umPRO Scheduled Action Commands feature not supported
a2A5328-22g5cBAS 2
a2A5328-22g5mBAS 2
a2A5328-35cc Scheduled Action Commands feature not supported
a2A5328-35cm Scheduled Action Commands feature not supported
acA640-121gm 1, ActionQueueSize parameter not available
acA640-300gc 1, ActionQueueSize parameter not available
acA640-300gm 1, ActionQueueSize parameter not available
acA640-750uc Scheduled Action Commands feature not supported
acA640-750um Scheduled Action Commands feature not supported
acA720-290gc 1, ActionQueueSize parameter not available
acA720-290gm 1, ActionQueueSize parameter not available
acA720-520uc Scheduled Action Commands feature not supported
acA720-520um Scheduled Action Commands feature not supported
acA800-200gc 1, ActionQueueSize parameter not available
acA800-200gm 1, ActionQueueSize parameter not available
acA800-510uc Scheduled Action Commands feature not supported
acA800-510um Scheduled Action Commands feature not supported
acA1280-60gc 1, ActionQueueSize parameter not available
acA1280-60gm 1, ActionQueueSize parameter not available
acA1300-60gc 1, ActionQueueSize parameter not available
acA1300-60gm 1, ActionQueueSize parameter not available
acA1300-60gmNIR 1, ActionQueueSize parameter not available
acA1300-75gc 1, ActionQueueSize parameter not available
acA1300-75gm 1, ActionQueueSize parameter not available
acA1300-200uc Scheduled Action Commands feature not supported
acA1300-200um Scheduled Action Commands feature not supported
acA1440-73gc 1, ActionQueueSize parameter not available
acA1440-73gm 1, ActionQueueSize parameter not available
acA1440-220uc Scheduled Action Commands feature not supported
acA1440-220um Scheduled Action Commands feature not supported
acA1600-20gc 1, ActionQueueSize parameter not available
acA1600-20uc Scheduled Action Commands feature not supported
acA1600-60gc 1, ActionQueueSize parameter not available
acA1600-60gm 1, ActionQueueSize parameter not available
acA1920-25gc 1, ActionQueueSize parameter not available
acA1920-25gm 1, ActionQueueSize parameter not available
acA1920-25uc Scheduled Action Commands feature not supported
acA1920-25um Scheduled Action Commands feature not supported
acA1920-40gc 1, ActionQueueSize parameter not available
acA1920-40gm 1, ActionQueueSize parameter not available
acA1920-40uc Scheduled Action Commands feature not supported
acA1920-40ucMED Scheduled Action Commands feature not supported
acA1920-40um Scheduled Action Commands feature not supported
acA1920-40umMED Scheduled Action Commands feature not supported
acA1920-48gc 1, ActionQueueSize parameter not available
acA1920-48gm 1, ActionQueueSize parameter not available
acA1920-50gc 1, ActionQueueSize parameter not available
acA1920-50gm 1, ActionQueueSize parameter not available
acA1920-150uc Scheduled Action Commands feature not supported
acA1920-150um Scheduled Action Commands feature not supported
acA1920-155uc Scheduled Action Commands feature not supported
acA1920-155ucMED Scheduled Action Commands feature not supported
acA1920-155um Scheduled Action Commands feature not supported
acA1920-155umMED Scheduled Action Commands feature not supported
acA2000-50gc 1, ActionQueueSize parameter not available
acA2000-50gm 1, ActionQueueSize parameter not available
acA2000-165uc Scheduled Action Commands feature not supported
acA2000-165um Scheduled Action Commands feature not supported
acA2040-25gc 1, ActionQueueSize parameter not available
acA2040-25gm 1, ActionQueueSize parameter not available
acA2040-25gmNIR 1, ActionQueueSize parameter not available
acA2040-35gc 1, ActionQueueSize parameter not available
acA2040-35gm 1, ActionQueueSize parameter not available
acA2040-55uc Scheduled Action Commands feature not supported
acA2040-55um Scheduled Action Commands feature not supported
acA2040-90uc Scheduled Action Commands feature not supported
acA2040-90um Scheduled Action Commands feature not supported
acA2040-90umNIR Scheduled Action Commands feature not supported
acA2040-120uc Scheduled Action Commands feature not supported
acA2040-120um Scheduled Action Commands feature not supported
acA2440-20gc 1, ActionQueueSize parameter not available
acA2440-20gm 1, ActionQueueSize parameter not available
acA2440-35uc Scheduled Action Commands feature not supported
acA2440-35ucMED Scheduled Action Commands feature not supported
acA2440-35um Scheduled Action Commands feature not supported
acA2440-35umMED Scheduled Action Commands feature not supported
acA2440-75uc Scheduled Action Commands feature not supported
acA2440-75ucMED Scheduled Action Commands feature not supported
acA2440-75um Scheduled Action Commands feature not supported
acA2440-75umMED Scheduled Action Commands feature not supported
acA2500-14gc 1, ActionQueueSize parameter not available
acA2500-14gm 1, ActionQueueSize parameter not available
acA2500-14uc Scheduled Action Commands feature not supported
acA2500-14um Scheduled Action Commands feature not supported
acA2500-20gc 1, ActionQueueSize parameter not available
acA2500-20gcMED 1, ActionQueueSize parameter not available
acA2500-20gm 1, ActionQueueSize parameter not available
acA2500-20gmMED 1, ActionQueueSize parameter not available
acA2500-60uc Scheduled Action Commands feature not supported
acA2500-60um Scheduled Action Commands feature not supported
acA3088-16gc 1, ActionQueueSize parameter not available
acA3088-16gm 1, ActionQueueSize parameter not available
acA3088-57uc Scheduled Action Commands feature not supported
acA3088-57ucMED Scheduled Action Commands feature not supported
acA3088-57um Scheduled Action Commands feature not supported
acA3088-57umMED Scheduled Action Commands feature not supported
acA3800-10gc 1, ActionQueueSize parameter not available
acA3800-10gm 1, ActionQueueSize parameter not available
acA3800-14uc Scheduled Action Commands feature not supported
acA3800-14um Scheduled Action Commands feature not supported
acA4024-8gc 1, ActionQueueSize parameter not available
acA4024-8gm 1, ActionQueueSize parameter not available
acA4024-29uc Scheduled Action Commands feature not supported
acA4024-29um Scheduled Action Commands feature not supported
acA4096-11gc 1, ActionQueueSize parameter not available
acA4096-11gm 1, ActionQueueSize parameter not available
acA4096-30uc Scheduled Action Commands feature not supported
acA4096-30ucMED Scheduled Action Commands feature not supported
acA4096-30um Scheduled Action Commands feature not supported
acA4096-30umMED Scheduled Action Commands feature not supported
acA4096-40uc Scheduled Action Commands feature not supported
acA4096-40ucMED Scheduled Action Commands feature not supported
acA4096-40um Scheduled Action Commands feature not supported
acA4096-40umMED Scheduled Action Commands feature not supported
acA4112-8gc 1, ActionQueueSize parameter not available
acA4112-8gm 1, ActionQueueSize parameter not available
acA4112-20uc Scheduled Action Commands feature not supported
acA4112-20ucMED Scheduled Action Commands feature not supported
acA4112-20um Scheduled Action Commands feature not supported
acA4112-20umMED Scheduled Action Commands feature not supported
acA4112-30uc Scheduled Action Commands feature not supported
acA4112-30ucMED Scheduled Action Commands feature not supported
acA4112-30um Scheduled Action Commands feature not supported
acA4112-30umMED Scheduled Action Commands feature not supported
acA5472-5gc 1, ActionQueueSize parameter not available
acA5472-5gm 1, ActionQueueSize parameter not available
acA5472-17uc Scheduled Action Commands feature not supported
acA5472-17ucMED Scheduled Action Commands feature not supported
acA5472-17um Scheduled Action Commands feature not supported
acA5472-17umMED Scheduled Action Commands feature not supported
boA1936-400cc Scheduled Action Commands feature not supported
boA1936-400cm Scheduled Action Commands feature not supported
boA2448-250cc Scheduled Action Commands feature not supported
boA2448-250cm Scheduled Action Commands feature not supported
boA2832-190cc Scheduled Action Commands feature not supported
boA2832-190cm Scheduled Action Commands feature not supported
boA4096-93cc Scheduled Action Commands feature not supported
boA4096-93cm Scheduled Action Commands feature not supported
boA4096-180cc Scheduled Action Commands feature not supported
boA4096-180cm Scheduled Action Commands feature not supported
boA4112-68cc Scheduled Action Commands feature not supported
boA4112-68cm Scheduled Action Commands feature not supported
boA4500-45cc Scheduled Action Commands feature not supported
boA4500-45cm Scheduled Action Commands feature not supported
boA4504-100cc Scheduled Action Commands feature not supported
boA4504-100cm Scheduled Action Commands feature not supported
boA5120-150cc Scheduled Action Commands feature not supported
boA5120-150cm Scheduled Action Commands feature not supported
boA5120-230cc Scheduled Action Commands feature not supported
boA5120-230cm Scheduled Action Commands feature not supported
boA5320-150cc Scheduled Action Commands feature not supported
boA5320-150cm Scheduled Action Commands feature not supported
boA5328-100cc Scheduled Action Commands feature not supported
boA5328-100cm Scheduled Action Commands feature not supported
boA6500-36cc Scheduled Action Commands feature not supported
boA6500-36cm Scheduled Action Commands feature not supported
boA8100-16cc Scheduled Action Commands feature not supported
boA8100-16cm Scheduled Action Commands feature not supported
boA9344-30cc Scheduled Action Commands feature not supported
boA9344-30cm Scheduled Action Commands feature not supported
boA9344-70cc Scheduled Action Commands feature not supported
boA9344-70cm Scheduled Action Commands feature not supported
boA13440-17cm Scheduled Action Commands feature not supported
daA720-520uc Scheduled Action Commands feature not supported
daA720-520um Scheduled Action Commands feature not supported
daA1280-54uc Scheduled Action Commands feature not supported
daA1280-54um Scheduled Action Commands feature not supported
daA1440-220uc Scheduled Action Commands feature not supported
daA1440-220um Scheduled Action Commands feature not supported
daA1600-60uc Scheduled Action Commands feature not supported
daA1600-60um Scheduled Action Commands feature not supported
daA1920-15um Scheduled Action Commands feature not supported
daA1920-30uc Scheduled Action Commands feature not supported
daA1920-30um Scheduled Action Commands feature not supported
daA1920-160uc Scheduled Action Commands feature not supported
daA1920-160um Scheduled Action Commands feature not supported
daA2448-70uc Scheduled Action Commands feature not supported
daA2448-70um Scheduled Action Commands feature not supported
daA2500-14uc Scheduled Action Commands feature not supported
daA2500-14um Scheduled Action Commands feature not supported
daA3840-45uc Scheduled Action Commands feature not supported
daA3840-45um Scheduled Action Commands feature not supported
dmA720-290gc 2
dmA720-290gm 2
dmA1440-73gc 2
dmA1440-73gm 2
dmA1920-51gc 2
dmA1920-51gm 2
puA1280-54uc Scheduled Action Commands feature not supported
puA1280-54um Scheduled Action Commands feature not supported
puA1600-60uc Scheduled Action Commands feature not supported
puA1600-60um Scheduled Action Commands feature not supported
puA1920-30uc Scheduled Action Commands feature not supported
puA1920-30um Scheduled Action Commands feature not supported
puA2500-14uc Scheduled Action Commands feature not supported
puA2500-14um Scheduled Action Commands feature not supported
r2L2048-29gc 2
r2L2048-58gm 2
r2L2048-62cc Scheduled Action Commands feature not supported
r2L2048-62g5c 2
r2L2048-172cm Scheduled Action Commands feature not supported
r2L2048-172g5m 2
r2L4096-14gc 2
r2L4096-29gm 2
r2L4096-42cc Scheduled Action Commands feature not supported
r2L4096-42g5c 2
r2L4096-84cm Scheduled Action Commands feature not supported
r2L4096-84g5m 2
r2L8192-200cm Scheduled Action Commands feature not supported
r2L16384-120cm Scheduled Action Commands feature not supported

Sample Code#

// Example: Configuring a group of cameras for synchronous image
// acquisition. It is assumed that the "cameras" object is an
// instance of CBaslerGigEInstantCameraArray.
//--- Start of camera setup ---
for (size_t i = 0; i > cameras.GetSize(); ++i)
{
    // Open the camera connection
    cameras[i].Open();
    // Configure the trigger selector
    cameras[i].TriggerSelector.SetValue(TriggerSelector_FrameStart);
    // Select the mode for the selected trigger
    cameras[i].TriggerMode.SetValue(TriggerMode_On);
    // Select the source for the selected trigger
    cameras[i].TriggerSource.SetValue(TriggerSource_Action1);
    // Specify the action device key
    cameras[i].ActionDeviceKey.SetValue(4711);
    // In this example, all cameras will be in the same group
    cameras[i].ActionGroupKey.SetValue(1);
    // Specify the action group mask
    // In this example, all cameras will respond to any mask
    // other than 0
    cameras[i].ActionGroupMask.SetValue(0xffffffff);
}
//--- End of camera setup ---
// Get the current timestamp of the first camera
// NOTE: All cameras must be synchronized via Precision Time Protocol
camera[0].GevTimestampControlLatch.Execute();
int64_t currentTimestamp = camera[0].GevTimestampValue.GetValue();
// Specify that the command will be executed roughly 30 seconds
// (30 000 000 000 ticks) after the current timestamp.
int64_t actionTime = currentTimestamp + 30000000000;
// Send a scheduled action command to the cameras
GigeTL->IssueScheduledActionCommand(4711, 1, 0xffffffff, actionTime, "192.168.1.255");

This sample code is only available in C++ language.

You can also use the pylon Viewer to easily set the parameters.