02-13-2016 08:22 AM
Hello Community,
I have the following problem (I'm using a myDAQ):
I want to generate an analog output signal, depending on the user input and measure the same signal with an analog input and this to be displayed on the front panel.
Now I recognize a delay between the user input and the measured signal, which is about 10 seconds.
I checked the analog input side with different external signals and I’m sure this is not the problem.
So I think it takes a huge amount of time before the new values are written to the analog output.
I also tried to allow regeneration and write new values in the buffer, but I get nearly the same delay.
Is there a solution to decrease the time between user input and analog output?
Kind Regards
Solved! Go to Solution.
02-13-2016 08:55 AM
02-13-2016 09:37 AM
@CHartman wrote:Now I recognize a delay between the user input and the measured signal, which is about 10 seconds.
I'm guessing your sample rate for the Analog Input is 10Hz. This would make since since 100 samples would then take 10 seconds to gather up. Either increase your sample rate and/or decrease the number of samples you are reading at a time.
02-13-2016 09:39 AM
Hello and thanks for your reply,
the user should be able to change the frequency, amplitude and form of the output signal.
I already found a way: I increased the frequency of the analog output, thereby the buffer could be read / refreshed faster and changes in the output signal were faster transferred to the analog output. Secondly I tried to do the same with using regeneration of the buffer to decrease the bus load.
But I figured out, that I’m limited in the signal frequencies. For example: If I’m using a frequency around 100 kHz for the analog output and a buffer size of 1000 the lowest signal frequency is around 100 Hz.
Is there a way to change the output buffer size or frequency while the task is running?
Kind Regards
02-13-2016 11:06 AM
02-13-2016 12:02 PM
Hi,
the ELVIS program looks great and has fast response to the user input. How do I get the LabVIEW code from the ELVIS function generator?
Kind Regards
02-13-2016 03:10 PM
02-15-2016 07:19 AM
Thanks a lot.
I figured out, that the myDAQ is the problem.
If I'm using a PCIe 6353 card to stop and restart the task it taks around 1ms in contrast to 1-2seconds on the myDAQ with the same LabVIEW code.
Kind Regards