05-16-2012 01:13 PM
Trying to use a NI 9223 to continuously sample voltage data from three channels the code work for a singel channel but when I added the other two channel I started to get errors.
I have attached my code if anyone can give me some pointer i would appreciate it.
Thank you
05-16-2012 01:30 PM - edited 05-16-2012 01:32 PM
Hi,
Did you try doing a search on the forum for error code 50103? (Leave out the "-" sign.) This question has been asked many, many times before.
You need to put all of your analog input channels into a single task. You only have one clock to work with. You get error code -50103 because you are trying to use that clock for three separate tasks.
Looking at your VI, it seems obvious that's the error you're getting even though you don't specify. Searching the forum for that error code will yield plenty of information for you which should be helpful (although I already told you what the problem is and how to fix it -- some of the posts will go further in-depth for you...I just don't really feel like re-typing all of the information when it's already available).
For examples of how to properly perform a multichannel acquisition, look under "Help...Find Examples...Hardware Input and Output...DAQmx...Analog measurements..." You'll find a lot of example code there which should help you.