Add some info, returned as messages when pulse is started

This commit is contained in:
Holger Vogt 2025-05-21 21:20:40 +02:00
parent f1566b89f9
commit dce5d5f3e8
1 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,11 @@ void cm_seegen(ARGS) /* structure holding parms,
out = inull * (exp(-(tcurr-*last_t_value)/talpha) - exp(-(tcurr-*last_t_value)/tbeta));
if (tcurr > *last_t_value + tperiod * 0.9) {
/* return some info */
char msg[1000];
cm_message_printf(msg, "port no.: %d, port name: %s, time: %e",
*pulse_number, cm_get_node_name("", *pulse_number - 1), *last_t_value);
/* set the time for the next pulse */
*last_t_value = *last_t_value + tperiod;
(*pulse_number)++;
}