Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital signal generations

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 

0 Kudos
Message 1 of 2
(4,556 Views)

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

0 Kudos
Message 2 of 2
(4,534 Views)