...."use some other means of having it change the specs at the appropriate time. That's just an idea which really depends on how and what changes those pulse specs."
The pulse specs are being changed manually (with a front panel control) for now, but will eventually be the results of a calculation based on other sensor data and possibly PID control loops. They won't change every revolution of the encoder, but could change often, especially in response to a large change as the control loop settles on a new target value. The "pulse width modulator" uses a pulse-train only function (switch cycle) that doesn't apply to retriggerable pulses...Oh, how I wish it did. Early on, I had the Set Attibute (for the pulse specs) and the Program vi's only being updat
ed in a while loop to minimize the time required to change the specs, but it didn't work well. Now I have all 3 counters Group Config'd, spec'd, and Programmed each time it updates. I believe the programatic updating takes a short enough time that it could happen in my "extra time" that occurs each cycle. I just need a triggering method to time it correctly. I'm imagining using some sort of trigger, like my 3rd pulse, to tell my pulse updating vi when it should execute. Not sure what structure, if any it should be in to minimize the time required to operate. I'm reading about Occurences, and Notifications. If it all operates quickly enough, these might be an approach for me to use. I don't have alot of detailed programming experience, so I don't know all of the nifty programming logic and tools available. I've attached my existing program, if your willing to take a look, you can see what I'm doing (don't laugh too hard). I really appreciate your answers and help! Thanks alot
.
Vern Smith
vsmith@crcwnet.com