01-22-2015 07:27 PM
When I run the attached VI, which I found the instructions for online, from an university: http://homepages.wmich.edu/~j0stahl/ece2210/Labs/ECE2210_Lab2_PWM.pdf
I get Error 200524, stating that the number of channels in the data does not match the number of channels in the task.
I've tried using different DAQs, 2x 6009 and a 6229, and rewrote the program twice.
What am I missing? Is it the capability of the DAQ, or did I miss anything?
Thank you
01-22-2015 09:44 PM
Are you writing digital output?
This error occurs when you define, for example 8 channel in task and writing less or higher than 8 channnels in daqmx write VI.
01-23-2015 10:06 AM - edited 01-23-2015 10:23 AM
Thank you for your answer.
Yes, digital output. I am meaning to write only 1 channel, but it is giving me the error that I am trying to write 500. I am not sure what to think of that. When I change the frequency when generating the signal inside the program to a lower frequency, the amount of channels I am trying to "write" goes below 500.
Edit: The example I the link provided: http://homepages.wmich.edu/~j0stahl/ece2210/Labs/ECE2210_Lab2_PWM.pdf
is specifying writing an analog output, so that's what I did. When trying to write a digital output, I get the same error.
01-23-2015 05:49 PM
When looking at the VI I included, if I remove DAQ Assistant, the VI runs fine. Seems like DAQ assistant is trying to write each sample to a separate channel, because when I change from 500 samples to 5000, it wants 5000 channels since there are 5000 tasks. How can I make it so everything goes into 1 channel only?
01-23-2015 05:54 PM
01-23-2015 06:24 PM
I am not sure what to do here. Changing it to 1 sample will satisfy the current DAQ Assistant settings but is not the right answer. What did I misconfigure inside the DAQ assistant? I do not know what data to feed it either besides the output of the simulated square signal.
01-23-2015 06:34 PM
01-23-2015 07:00 PM
What would you, or anybody else, suggest for my given VI? I just want this to run, and add data logging later, with or without the DAQ Assitant.
01-23-2015 07:12 PM
01-25-2015 12:31 AM
Any chance to use it on the 6009? There must be a way