Add some info, returned as messages when pulse is started
This commit is contained in:
parent
f1566b89f9
commit
dce5d5f3e8
|
|
@ -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));
|
out = inull * (exp(-(tcurr-*last_t_value)/talpha) - exp(-(tcurr-*last_t_value)/tbeta));
|
||||||
|
|
||||||
if (tcurr > *last_t_value + tperiod * 0.9) {
|
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;
|
*last_t_value = *last_t_value + tperiod;
|
||||||
(*pulse_number)++;
|
(*pulse_number)++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue