Commit b3719ab2 authored by Federico Vaga's avatar Federico Vaga

tools: enable and disable acquisition

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 32e5b310
......@@ -215,6 +215,8 @@ int main(int argc, char **argv)
}
/* Enable acquisition */
fmctdc_set_acquisition(brd, 1);
/* Read Time-Stamps */
n = 0;
while (n < n_samples || n_samples <= 0) {
......@@ -269,6 +271,8 @@ int main(int argc, char **argv)
if (channels[i] > 0)
fmctdc_reference_clear(brd, -1);
}
/* Disable acquisition */
fmctdc_set_acquisition(brd, 0);
fmctdc_close(brd);
exit(EXIT_SUCCESS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment