Hi, I'm using PXI-6514 DIO card with NIDAQmx v8.5.0f3. When I run the code below continuously to read a digital input, the memory usage was increasing. Is there any memory leak issue in NIDAQmx library?
int status
TaskHandle task;
long nRead, nByte;
unsigned char chState;
status = DAQmxCreateTask("", &task);
if ( !status ) status = DAQmxCreateDIChan(task, "DIO2/port0/line0", "", DAQmx_Val_ChanPerLine);
if ( !status ) status = DAQmxStartTask(task);
if ( !status ) status = DAQmxReadDigitalLines(task, 1, 1.0, DAQmx_Val_GroupByChannel, &chState, 1, &nRead, &nByte, NULL);
DAQmxStopTask(task);
DAQmxClearTask(task);
if ( status )
return status;
Thanks
Eric