07-03-2012 04:40 PM
Hi,
I created a routine to generate two hardware-timed digital signals. In this code, programmed digital waveforms are selected to be produced by digital 1D Wfm NChan NSamp vi and repeated in FOR loops. I attach the file. But, for some reasons, it takes longer as I increase the value N in this example. What I am trying to do is to modify this routine so that the overall time spent to finish this task won't be increased a lot even though I increase the N value. Actually, this example is part of the code I made, but it think this part would induce additional latency in running the entire code as I increase the N value.
Thanks,
Doogie
07-06-2012 04:52 PM
Hello Photton,
Well, is hard to say as you did not saved the values for N and the arrays, but one thing you may modify is not create and destroy the task over and over as the for loop iterates, on a different topic one of the for loops has 2 suto index inputs, so it will iterate the number of elements that the smaller array has.
Warm regards
Mart G