I am doing a project using usb 6221 and DAQmx.
Using 2 IR Sensors to measure the distance
Everyone of them work good individual but together i get an 50301 error
The problem is I can't use two IR's Together and get the measures from them
How can i solve this problem to get the values from 2 sensors.
You should be able to use two at a time. Do you have any LabVIEW code that we can look at to see what you are doing? Also a sketch of how the sensors are connected to the 6221 will also be very helpful.
You can only have one AI Task running on that device at at time. You can however, configure the Task to have both channels
Where is your code showing this attempt? Do you have the wires hooked up correctly to the second sensor?
This is the code
and yes the wiring is right
my problem when i put the 2 sensors in One Daqmx .. I get one read from 1 sensor .. i can't the other ( The indicator is a numeric data of 1 sensor not an array )