Hi Ethan,
Combining both of your analog inputs into the same task should clear the error. If you want to learn more about DAQmx tasks and DAQmx channels, there is a good section in the NI-DAQmx Help file which is installed with the driver.
Regards,
Kent
Applications Engineer