09-17-2007 01:14 PM
09-17-2007 01:25 PM - edited 09-17-2007 01:25 PM
Your problem is with trying to wire a 2D array to the DAQmx Timing function. This only accepts a single waveform. Since you can only have a single timing source, this makes sense. Try something like the code below. And plese, in the future, just attach your images instead of a word doc.
Message Edited by Dennis Knutson on 09-17-2007 12:26 PM
09-17-2007 01:42 PM
Thank you for your quick reply.
Now I have got an error - Number of samples to write must be the same for every channel.
and I think it's because zero-channel creates only one number, not 1000. Am I right?
09-17-2007 02:01 PM - edited 09-17-2007 02:01 PM
Yes. The number of elements in the array where you want a constant voltage has to match the number of elements in the waveform array. Sorry I didn't show this. Make the modification as shown below and see if that gets rid of the error.
Message Edited by Dennis Knutson on 09-17-2007 01:01 PM
09-17-2007 02:13 PM
Thank you a lot. It works as I want.
Anna