I have compiled a Labview dll (Labview 2013) with standard Daqmx functions in it and am calling the dll from Freemat (Matlab). This dll works well writing & reading from a USB-6501 via the Freemat/Matlab program. However when certain Freemat/Matlab sub routines are called (that don't have Daqmx in them) and then returned to the main Freemat/Matlab program the next read/write I get the Error -200088 'task specified or does not exist'.
NI Daqmx 14.0
Max 14.0
Labview runtime 2013 sp1
Windows 7
What non Daqmx event would cause the Daqmx function to do this?
Attached is the Ni i/o trace.