Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50103 - Can someone take a look at my code?

I am trying to take measurements from 4 sensors through a data acquision card using analog input, and be able to display the data on 4 different graph. I want to be able to write the results to a file too, but I'm getting the error 50103. I think the problem is with opening the file to write, but I'm not sure. Can someone take a peek at my code and provide feedback?

Thanks!

Andrea
0 Kudos
Message 1 of 2
(2,710 Views)

Your error has nothing to do the file writes. Your error is very common and if you had done a search of the forums before posting, yuo would have found the answer yourself.

You CANNOT have multiple tasks with the same resource. That means you can only have a single DAQmx Read for analog inputs. Get rid of all of the duplicate DAQmx Reads. You can specify multiple channels with a single DAQmx Physical Channel control and if you want each channel to have a different min/max, then use multiple DAQmx Create Channel functions and pass the same task from function to function.

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