Task #3386
openSync-ed acquisition with ext. trigger
90%
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
- Due date set to 23/03/2026
- Estimated time set to 24:00 h
Updated by Thomas Joseph 6 months ago
- Description updated (diff)
Updated by Thomas Joseph 6 months ago
- Description updated (diff)
Updated by Thomas Joseph 6 months ago
- Target version set to RHMS-ISTRAC
Updated by Mohan Kashyap 6 months ago
- Status changed from New to In Progress
Updated by Mohan Kashyap 6 months ago
- % 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
- Due date changed from 23/03/2026 to 02/04/2026
Due date preponed
Updated by Mohan Kashyap 5 months ago
- Due date changed from 02/04/2026 to 15/04/2026
GPIO has to be programmed
Updated by Mohan Kashyap 5 months ago
- 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
What is the latency in start and stop ?
Updated by Thomas Joseph 3 months ago
- Status changed from Resolved to In Progress
- % Done changed from 100 to 90
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.