Generate waveform with SMU without delay between iterations

Dear Community,

 

I am supplying current to a motor with a Source Measure Unit (PXIe-4138), and measuring the displacement of the motor with a DAQ (PXIe-8301). 

Following the article (knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000001DcK9SAK&l=en-LU), I implementing the code to create a sinusoidal current output, and run it several times in a While Loop. There is an issue though, as one can see in the picture, every time that the loop iterates, the time needed for the next sequence to start, creates an error. 

 

Is there a way to make the sequence start instantaneously after every iteration?? 

 

Thanks in advance,

Nikos

Read more here: Source link