Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

setup to callback functions with DAQmxRegisterEveryNSamplesEvent

Can the function DAQmxRegisterEveryNSamplesEvent be used to set up 2 different callback functions?  For example, I would to have one callback function service analog input and a second callback function to service digital input.  If this is possible, is there any reason why it is not recommended to setup to different callback functions but instead process both analog and digital input in the same callback function?
 
Thank you for your assistance,
 
Ian
0 Kudos
Message 1 of 2
(2,742 Views)

Hi Ian-

It's not possible to have more than one instance of the same type of NI-DAQmx Event registered at any given time.  This explains why each event type (i.e. EveryNSamples Acquired, Generated, Done, etc) must have a unique callback function.

Hopefully this helps-

Tom W
National Instruments
0 Kudos
Message 2 of 2
(2,736 Views)