06-12-2019 02:41 AM - last edited on 11-05-2019 09:04 PM by Kristi_Martinez
Hello,
I will start by describing my equipment:
I try to make the acquisition of an analog signal, then modify it's amplitude through labview and finally regenerate it on an analog output of the PXI-6341 board. To notice that i make the acquisition on other channels at the same time.
I'd like to reduce to the minimum the delay between the input and the output and this delay must not drift over long time duration.
Any advice?
P.S : I made a lot of tests, i reach a minimum delay of ten milisecondes but it drift.
Thanks you for any answer you may give to me.
06-12-2019 06:37 AM
@Compas wrote:
P.S : I made a lot of tests, i reach a minimum delay of ten milisecondes but it drift.
Post the code.
06-12-2019 07:30 AM
Find attached the code.
This code works fine with approximatively 5ms delay with no drift but when i integrate it in a more complexe software it no longer works and i need to increase output buffer to 20000 samples to avoid writing errors.
06-12-2019 07:42 AM
06-13-2019 05:56 AM
I found the problem yesterday by deleting added elements in the loop.
It was a call of a global variable that is called in multiple other threads.