I need to output a PWM to control a servo motor from the ELVIS II board. I am generating the PWM in LabVIEW using the square signal generator and currently a knob to adjust the duty cycle. I am using continuous samples on the DAQ Assistant and I have tried using a function generator to create a sample clock, but no matter what I do with it I always get the same error.
Some or all of the samples to write could not be written to the buffer yet. More space will free up as samples currently in the buffer are generated.
To wait for more space to become available, use a longer write timeout. To make the space available sooner, increase the sample rate.
I believe this indicates the buffer is not emptying, so the clock is not registering to time the outputs. I'm using a function generator connected to PFI0 to try and create this sample clock.
I used this to help create my VI, but I don't know why it isn't working.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGK5CAO&l=en-US