02-17-2010 12:52 PM
We have a case where we have many AIs and AOs. When some AIs exceed a threshold, we want one or more AOs to follow a brief waveform (simulating transients) and then settle to a constant value. The waveform samples are 1 ms apart and a typical transient has 20 samples. In the past, we had a task per AI card and a task per AO card. Then our SW would poll the AIs (at 1 kHz) and write all the AOs, generating the waveforms in SW. But it's hard to get precise timing in the waveform this way. It seems to me that we should be using the waveform generation capability of our AO cards and just trigger it to start. But to do this, we would need a separate task for each waveform because it could start at any time (independent of other waveforms). Is there anything wrong with having a bunch of tasks on the same card like that? Are there any examples that are similar to this?
Thanks.
02-22-2010 05:23 PM