12-06-2010 04:54 AM
Hi,
I'm using a USB-4431 to receive a analog signal from an accelerometer and send an analog signal.
I'm trying to implement the synchronization of this two signals, using the manner see in the pictures.
But I notice that this device don't allow synchronization, and exist a delay between the two signals. Is there a way to know through software that delay?
I also use the function "wait" to ensure that the output and the input take the same time to write and read, respectively, but I don't know if it's a good manner.
I hope you can understand my English, and can help me.
Thanks,
Silvia
12-07-2010 04:31 AM
Hi,
The "wait" function only waits a fixed period to execute next iteration. It's used to let time to processor to make other tasks. So you can't fixed the period of your while loop iteration with this function. I advise you to use "Wait Until Next ms Multiple Function".
Another solution is to use "Timed loop" whereas "While loop". Indeed, you can take the time of an iteration and information about it.
I wish it will be helpful for you
Best Regards