06-25-2007 03:23 AM
06-25-2007 11:23 AM
The "correlated" DIO on the M-series board do not have their own timing subsystem. So there is no direct way to use an internal sample clock for hardware-timed DIO. Using a counter is one typical way, sharing the AI or AO sample clock is another.
However, you'd probably be better off generating PWM with one of the counters anyway. It's a much more natural fit than trying to do it with DIO. Search examples and this site for PWM to get started...
-Kevin P.
07-03-2007 02:07 AM
Thanks, sorry for the delay!
I checked this with the counter used as an sample clock and it works properly. But I have the next problem: I have to build up 24 channel with different PWM-signals, but I have only one timer for this 24 channels, so the generation of samples will cause some troubles. I can not make a continuos sample waveform of e.g. 1000 samples, because of the different frequencies and duty-cycles.
Does anybody know a NI Hardware which can be controlled by Labview with 24 pwm-channels or counters?
Thanks
Christoph
07-03-2007 11:16 AM
Do the 24 channels of PWM need to be able to adjust independently on-the-fly?
NO: you *might* be able to very carefully define your DO buffer to provide 24 invariant PWM signals. There will likely be compromises, and you'll need to dust off your old math knowledge about Greatest Common Factors and Least Common Multiples to try to get them all defined. Then it will be a bit of a mess to merge all those on/off times into a single array of 32-bit values.
YES: you should think of this as 24 separate counter tasks. Best way I know to get there with NI hardware is to buy 3 of the 6602 boards which have 8 counters each.
- Kevin P.