I can't speak to the VB.NET aspect of programming, but can hopefully help somewhat w.r.t. counter hw capabilities.
Q:
...only 3 counters can use DMA at one time. How will this affect my operation if I want all 24 Counters counting at the same time?A: Only buffered measurements will want to use DMA. Pulse generation won't use it. Are you doing a buffered pos. measurement with all your encoders? If not, no problem but if so, the 4th encoder on each board will need to be explicitly configured to use interrupts instead of DMA, significantly limiting your acq speed. Comments around here suggest you may manage up to a few kHz, maybe less due to having 3 separate interrupt-driven encoder tasks.
Before you invest too much blood, toil, sweat, and tears, can you possibly add another 6602 to your PC? Or swap with another PC that has slot space?
Q:
Also, I know you can setup the Initial Angle... Is there anyway to set this value to a new value later?... Also, can the same thing be done with CountEdgesChannel?A: The hardware method would be to setup the encoders to use Z-channel indexing. Then an external pulse can reset the counter register to 0 or any other value you choose with hardware timing. However it can get tricky to get the proper phasing & timing when this external pulse is not the one inherent to the encoder. Also, this hardware method won't work for an edge counting task. Reply for more details...
The only software method I've gotten to work (at least under DAQmx) is to first stop the task, then assign a count value, then start the task up again, still using the original task id. I do it in LabVIEW so I'm afraid I don't know the syntax for VB.NET
Q:
...I have no Counter Channel left for configuring my SampleClock...A: You can generally route a sample clock from some other DAQ board in your system provided you have a RTSI cable connecting the boards in your PC. However I don't think there is any such clock on the specific boards you mentioned (PCI-6703, PCI-6509).
Are any of your 12 pulse output channels suitable for use as a sample clock?
Good luck!
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.