From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous multi channel voltage data acquisition

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 

0 Kudos
Message 1 of 2
(2,835 Views)

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.

 

0 Kudos
Message 2 of 2
(2,827 Views)