Project

General

Profile

Actions

Task #3386

open

Sync-ed acquisition with ext. trigger

Task #3386: Sync-ed acquisition with ext. trigger

Added by Thomas Joseph 6 months ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
Start date:
16/03/2026
Due date:
15/04/2026 (about 5 months late)
% Done:

90%

Estimated time:
24:00 h
Spent time:

Description

A. Sync. In
Start acquisition with ext trigger input
Protocol : start acq. when a low to high transition at the input and stop after

a. "N" counts of pulses
b. duration set by application software,
c. input goes low

B. Sync. out (this is always required)
a. Signal to be high during acq.

The options set by GUI application

Updated by Mohan Kashyap 6 months ago Actions #1

  • Due date set to 23/03/2026
  • Estimated time set to 24:00 h

Updated by Thomas Joseph 6 months ago Actions #2

  • Description updated (diff)

Updated by Thomas Joseph 6 months ago Actions #3

  • Description updated (diff)

Updated by Thomas Joseph 6 months ago Actions #4

  • Target version set to RHMS-ISTRAC

Updated by Mohan Kashyap 6 months ago Actions #5

  • Status changed from New to In Progress

Updated by Mohan Kashyap 6 months ago Actions #6

  • % Done changed from 0 to 50

The Standalone application works fine. Needs to be integrated with VAS Embedded application

struct _pin sync_in_pins = {PIO_GROUP_B, PIO_PB28, PIO_INPUT, PIO_PULLDOWN | PIO_DEBOUNCE | PIO_IT_RISE_EDGE};
struct _pin sync_out_pins = {PIO_GROUP_E, PIO_PE5, PIO_INPUT, PIO_PULLDOWN | PIO_DEBOUNCE | PIO_IT_RISE_EDGE};

// pin configuration
pio_configure(&sync_in_pins, 1);
pio_configure(&sync_out_pins, 1);

pulse_count = 0;
uint32_t start_time = timer_get_tick();
while(1)
{
	printf("Waiting for HIGH\n\r");
	while(pio_get(&sync_out_pins));
	printf("Waiting for LOW\n\r");
	pulse_count++;
	while(!pio_get(&sync_out_pins));
	if(timer_get_tick() - start_time >= 1000)
	{
		printf("Pulse Count = %d\n\r", pulse_count);
		pulse_count = 0;
		start_time = timer_get_tick();
	}
}

Updated by Sunder Venugopal 5 months ago Actions #7

  • Due date changed from 23/03/2026 to 02/04/2026

Due date preponed

Updated by Mohan Kashyap 5 months ago Actions #8

  • Due date changed from 02/04/2026 to 15/04/2026

GPIO has to be programmed

Updated by Mohan Kashyap 5 months ago Actions #9

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

The new gpio PC20 has been configured for sync-in and tested

Updated by Thomas Joseph 5 months ago Actions #10

What is the latency in start and stop ?

Updated by Thomas Joseph 3 months ago Actions #11

  • Status changed from Resolved to In Progress
  • % Done changed from 100 to 90

@Mohan Kashyap :

A. Sync. In
Start acquisition with ext trigger input goes low or high or both edges where duration , interval and repetition count set by GUI
Command trigger type (rising, falling , both), duration, interval, count, sampling freq,....

B. Sync. out (this is always required)
a. Signal to be high during acq.

Actions

Also available in: PDF Atom