I am writing some code to be use with a NI 6528 board and I am using the ansi C driver. I was wondering if I can set up multiple input events. For example, I have 2 channels that I need to detect for both rising and falling edges, but there is another channel on the same port that I need to detect only rising edges. Can I separate these two events and have it call 2 separate functions? Following the examples for events, I first create a task (DAQmxCreateTask), add a group of channels to that task (DAQmxCreateDIChan), set the detection for that one set of channels (DAQmxCfgChangeDetectionTiming), then I attach an interrupt function to this task (DAQmxRegisterSignalEvent). Can I create two separate tasks, configure them with different channels and detections, and attach different ISR functions? I couldn't find any example of having multiple tasks and events. Am I only to have one task, do all the configurations, and only have one ISR function? Thanks for the help.