Hello everybody,
I encountered another problem.
I am using Msys gcc on win XP to compile custom c code.
I manage to compile and run the examples no problem, linking fine, Analog I/O working.
I get segfault error when calling
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
but I can call functions such as:
DAQmxErrChk (DAQmxGetExtCalLastDateAndTime ("Dev1",&year,&month,&day,&hour,&minute));
or
DAQmxErrChk (DAQmxResetDevice ("Dev1"));
without any problems and get sensible output.
Does anyone know if there is any particular precaution when doing task creation?
how is the memory allocated by CreateTask?
are there any particular compiler options that should not be used?
Thank you
Francesco