Using MSVC, I need a callback every time any bit of port-C changes state, polling has too great a latency. If I program Port-C as group 2, I can't read valid data from the port using DIG_In_Grp() and get no callbacks via Config_DAQ_Event_Message().
To use the DAQ Event 7 (pattern mismatch) the transfer operation has to be asynchronous and interrupt driven as documented in the NI-DAQ online help. You should use the DIG_Block_In function instead.
The attached example code illustrates how to to use the DAQ event 8 (pattern match) to initiate a callback function.
See also the NI-DAQ help for Config_DAQ_Event_Message.
Thanks for the answer, but I require to read the port every time it changes state and when I try this I can only read two or more bytes into the buffer, not just one.