Greetings,
What are the names of the examples you are attempting to use with the DAQCard-6024E? Error -10401 usually indicates that you are specifying an invalid device number. Additionally, is your DAQCard functioning correctly in Measurement & Automation Explorer (MAX)?
Spencer S.