That is precisely what I tried, prior to posting my question here. I still get the "10609 transfer in progress error".
For testing of the VIs, I am using an electric motor to drive my encoder, whose pulses are routed to the gate pin of a counter. The pulses come every 24msec, and I've set my phase 1 to 1msec (delay), and my phase 2 to be 5msec (pulse). I've modified the sub-vi "calculate pulse specs" found in the PWM vi to accept phase 1 and 2 time duration directly, rather than frequency and duty-cycle inputs.
As you can see, the pulse generation (6msec total) should be finished by the time the new gate pulse arrives. Therefore, switching cycles while a pulse is in progress should not be a problem.
The oscilloscope shows a 5msec h
igh pulse, followed by a 19msec low pulse. The low pulse becomes longer if the motor speed is decreased slightly, proving that the operation is gated. The VI runs once, and as long as the motor is driving the encoder, the pulses appear. However, their duration cannot be changed without re-starting the vi.
I'm attaching the relevant VIs for reference.
Thank you for your help Geneva.
Regards,
John