02-28-2018 08:26 AM
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.
02-28-2018 08:36 AM
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.
02-28-2018 09:15 AM
This is the vi of one IR sensor.
02-28-2018 09:35 AM
You can only have one AI Task running on that device at at time. You can however, configure the Task to have both channels
02-28-2018 09:56 AM
How i can do this?
02-28-2018 11:50 AM
@El-Awny wrote:
How i can do this?
Inside the DAQ Assistant, add another channel. You will need to get rid of the other VI for the second sensor.
02-28-2018 11:59 AM
I have done this already but i can't extract the data of 2 Sensors from the Daqmx.
Only One Sensor i can get its data.
02-28-2018 12:02 PM - edited 02-28-2018 12:02 PM
Where is your code showing this attempt? Do you have the wires hooked up correctly to the second sensor?
02-28-2018 12:14 PM
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 )
02-28-2018 12:29 PM
In the DAQ Assistant select Add to Add the other channel